Discussion:
[hercules-390] Why Hercules's CPU usage is always about 20% when it runs under linux and run nothing in zos
cinbo@163.com [hercules-390]
2018-02-26 03:01:36 UTC
Permalink
Why Hercules's CPU usage is always about 20% when it runs under linux and run nothing in zos? But if I run hercules under windows, if nothing runs in hercules and its cpu usage is only about 1%.
cinbo@163.com [hercules-390]
2018-02-26 03:19:20 UTC
Permalink
I Just start hercules, still not ipl zos , then its cpu usage is already 20%, why? top - 11:16:19 up 502 days, 17:42, 3 users, load average: 0.10, 0.04, 0.05
Tasks: 163 total, 2 running, 161 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.5%sy, 0.0%ni, 97.7%id, 0.9%wa, 0.0%hi, 0.0%si, 0.9%st
Mem: 1019472k total, 944068k used, 75404k free, 12572k buffers
Swap: 2097148k total, 652624k used, 1444524k free, 125756k cached


PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4086 root 20 0 894m 5396 2180 S 20.9 0.5 0:03.69 hercules
24191 root 20 0 128m 13m 3376 S 0.7 1.3 76:21.91 AliYunDun
5002 root 20 0 30788 772 472 S 0.3 0.1 89:39.80 AliYunDunUpdate
20171 mysql 20 0 1164m 116m 4088 S 0.3 11.7 431:03.68 mysqld
1 root 20 0 19284 308 104 S 0.0 0.0 0:16.95 init
2 root 20 0 0 0 0 S 0.0 0.0 1:22.79 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 22:31.95 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H





But under windows, cpu is almost zero if I just start hercues and not ipl zos.

---In hercules-***@yahoogroups.com, <***@...> wrote :

Why Hercules's CPU usage is always about 20% when it runs under linux and run nothing in zos? But if I run hercules under windows, if nothing runs in hercules and its cpu usage is only about 1%.
'Mark L. Gaubatz' mgaubatz@groupgw.com [hercules-390]
2018-02-26 08:40:54 UTC
Permalink
That's 20% of one core, about right for everything that has to run while
"idle" in a stopped state. This includes items like the TOD clock,
console management, I/O management, HTTP server, etc., that are not
stopped when the emulated CPU is stopped. Most of the differences
between Windows and *nix here are associated with the performance and
monitoring characteristics of the different interfaces used. Thus trying
to compare certain performance values between Windows and *nix are
effectively trying to directly compare a fruit to a vegetable, when one
is looking for meat. Windows measures CPU time consumed one way with
system and driver calls, *nix, another. Neither is necessarily wrong,
and both are telling "the truth" from individual OS perspectives.


Mark
(dasdman)
Post by ***@163.com [hercules-390]
I Just start hercules, still not ipl zos , then its cpu usage is
already 20%, why?
top - 11:16:19 up 502 days, 17:42,  3 users, load average: 0.10, 0.04,
0.05
Tasks: 163 total,   2 running, 161 sleeping,  0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.5%sy,  0.0%ni, 97.7%id, 0.9%wa,  0.0%hi,  0.0%si, 
0.9%st
Mem:   1019472k total,   944068k used, 75404k free,    12572k buffers
Swap:  2097148k total,   652624k used, 1444524k free,   125756k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4086 root      20   0  894m 5396 2180 S 20.9 0.5   0:03.69 hercules
24191 root      20   0  128m  13m 3376 S  0.7 1.3  76:21.91 AliYunDun
 5002 root      20   0 30788  772  472 S  0.3 0.1  89:39.80
AliYunDunUpdate
20171 mysql     20   0 1164m 116m 4088 S  0.3 11.7 431:03.68 mysqld
    1 root      20   0 19284  308  104 S  0.0 0.0   0:16.95 init
    2 root      20   0     0    0    0 S  0.0 0.0   1:22.79 kthreadd
    3 root      20   0     0    0    0 S  0.0 0.0  22:31.95 ksoftirqd/0
    5 root       0 -20     0    0    0 S  0.0 0.0   0:00.00 kworker/0:0H
But under windows,  cpu is almost zero if I just start hercues and not
ipl zos.
Why Hercules's CPU usage is always about 20% when it runs under linux
and run nothing in zos? But if I run hercules under windows, if
nothing runs in hercules and its cpu usage is only about 1%.
cinbo@163.com [hercules-390]
2018-02-26 09:41:41 UTC
Permalink
Thanks Mark for your explain!

Loading...