Skip to content

Instantly share code, notes, and snippets.

@stgraber

stgraber/juju Secret

Created July 26, 2022 20:32
Show Gist options
  • Save stgraber/28b6e704cea2a317667ce95bea100b9f to your computer and use it in GitHub Desktop.
Save stgraber/28b6e704cea2a317667ce95bea100b9f to your computer and use it in GitHub Desktop.
health-check
root@r01-amd64-06:~# health-check -d 15 -f -c -p 791
CPU usage (in terms of 1 CPU):
PID Process USR% SYS% TOTAL% Duration
791 jujud 0.47 6.00 6.46 15.01 (light load)
Page Faults:
PID Process Minor/sec Major/sec Total/sec
791 jujud 0.00 0.00 0.00
Context Switches:
PID Process Voluntary Involuntary Total
Ctxt Sw/Sec Ctxt Sw/Sec Ctxt Sw/Sec
940 jujud 1577.23 2.46 1579.69 (high)
968 jujud 842.80 0.60 843.40 (quite high)
935 jujud 675.47 1.07 676.53 (quite high)
933 jujud 513.06 0.13 513.20 (quite high)
943 jujud 0.00 0.00 0.00 (idle)
942 jujud 0.00 0.00 0.00 (idle)
941 jujud 0.00 0.00 0.00 (idle)
936 jujud 0.00 0.00 0.00 (idle)
934 jujud 0.00 0.00 0.00 (idle)
791 jujud 0.00 0.00 0.00 (idle)
Total 3608.56 4.26 3612.82
File I/O operations:
No file I/O operations detected.
System calls traced:
PID Process Syscall Count Rate/Sec Total μSecs % Call Time
791 jujud futex 1 0.0666 0 0.0000
933 jujud nanosleep 1319 87.8642 13423456 26.3280
933 jujud futex 1250 83.2678 1463103 2.8696
933 jujud sched_yield 1 0.0666 26 0.0001
933 jujud restart_syscall 1 0.0666 42 0.0001
934 jujud futex 1 0.0666 0 0.0000
935 jujud epoll_pwait 2724 181.4573 2407238 4.7214
935 jujud futex 1413 94.1260 12423952 24.3676
935 jujud read 22 1.4655 555 0.0011
935 jujud write 14 0.9326 597 0.0012
935 jujud sched_yield 1 0.0666 67 0.0001
936 jujud futex 1 0.0666 0 0.0000
940 jujud epoll_pwait 7211 480.3555 7427640 14.5682
940 jujud futex 2638 175.7284 7131719 13.9878
940 jujud read 35 2.3315 821 0.0016
940 jujud write 28 1.8652 1648 0.0032
941 jujud futex 1 0.0666 0 0.0000
942 jujud futex 1 0.0666 0 0.0000
943 jujud futex 1 0.0666 0 0.0000
968 jujud epoll_pwait 4095 272.7854 4462589 8.7527
968 jujud futex 1230 81.9355 2241171 4.3957
968 jujud write 19 1.2657 746 0.0015
968 jujud read 5 0.3331 79 0.0002
Total 22012 1466.3133 50985449
Top polling system calls:
PID Process Syscall Rate/Sec Infinite Zero Minimum Maximum Average
Timeouts Timeouts Timeout Timeout Timeout
933 jujud nanosleep 87.8642 0 0 10.0 msec 10.0 msec 10.0 msec
935 jujud epoll_pwait 181.4573 0 1894 0.0 sec 3.2 sec 11.0 msec
940 jujud epoll_pwait 480.3555 0 4621 0.0 sec 4.9 sec 9.8 msec
968 jujud epoll_pwait 272.7854 0 2531 0.0 sec 13.1 sec 5.3 msec
Total 1022.4624 0 9046
Distribution of poll timeout times:
10.0 100.0 1.0 10.0 100.0 1.0 10.0 100.0
up to to to to to to to to or more
Zero 9.9 99.9 999.9 9.9 99.9 999.9 9.9 99.9 Infinite
PID Process Syscall sec usec usec usec msec msec msec sec sec sec Wait
933 jujud nanosleep 0 - - - - 1319 - - - - 0
935 jujud epoll_pwait 1894 - - - 810 3 2 15 - - 0
940 jujud epoll_pwait 4621 - - - 2558 - 7 25 - - 0
968 jujud epoll_pwait 2531 - - - 1560 - 1 2 1 - 0
Polling system call analysis:
jujud (935), epoll_pwait:
1894 immediate timed out calls with zero timeout (non-blocking peeks)
808 repeated timed out polled calls with non-zero timeouts (light polling)
1063 repeated immediate timed out polled calls with zero timeouts (heavy polling peeks)
jujud (940), epoll_pwait:
4621 immediate timed out calls with zero timeout (non-blocking peeks)
2555 repeated timed out polled calls with non-zero timeouts (light polling)
2031 repeated immediate timed out polled calls with zero timeouts (heavy polling peeks)
jujud (968), epoll_pwait:
2531 immediate timed out calls with zero timeout (non-blocking peeks)
1559 repeated timed out polled calls with non-zero timeouts (light polling)
966 repeated immediate timed out polled calls with zero timeouts (heavy polling peeks)
Filesystem Syncs:
None.
Inotify watches added:
None.
Memory:
Per Process Memory (K):
PID Process Type Size RSS PSS
791 jujud Stack 132 16 16
791 jujud Heap 705744 14728 14728
791 jujud Mapped 146916 76128 76124
Change in memory (K/second):
No changes found.
Heap Change via brk():
None.
Memory Change via mmap() and munmap():
None.
Open Network Connections:
PID Process Proto Send Receive Address
791 jujud UNIX 0.00 B 0.00 B @jujud-machine-165
791 jujud UNIX 0.00 B 0.00 B /var/snap/lxd/common/lxd-user/unix.socket
791 jujud UNIX 0.00 B 0.00 B /run/systemd/journal/stdout
791 jujud UNIX 0.00 B 0.00 B /run/dbus/system_bus_socket
791 jujud TCP 0.00 B 0.00 B 172.17.40.184:17070
Total 0.00 B 0.00 B
root@r01-amd64-06:~# health-check -d 15 -f -c -p 115967
CPU usage (in terms of 1 CPU):
PID Process USR% SYS% TOTAL% Duration
115967 lxd 0.00 0.00 0.00 15.01 (idle)
Page Faults:
PID Process Minor/sec Major/sec Total/sec
115967 lxd 0.00 0.00 0.00
Context Switches:
PID Process Voluntary Involuntary Total
Ctxt Sw/Sec Ctxt Sw/Sec Ctxt Sw/Sec
116004 lxd 6.00 0.00 6.00 (low)
115981 lxd 0.40 0.00 0.40 (very low)
115982 lxd 0.33 0.00 0.33 (very low)
116033 lxd 0.00 0.00 0.00 (idle)
116031 lxd 0.00 0.00 0.00 (idle)
116030 lxd 0.00 0.00 0.00 (idle)
116029 lxd 0.00 0.00 0.00 (idle)
116028 lxd 0.00 0.00 0.00 (idle)
116027 lxd 0.00 0.00 0.00 (idle)
116006 lxd 0.00 0.00 0.00 (idle)
116002 lxd 0.00 0.00 0.00 (idle)
115989 lxd 0.00 0.00 0.00 (idle)
115986 lxd 0.00 0.00 0.00 (idle)
115985 lxd 0.00 0.00 0.00 (idle)
115984 lxd 0.00 0.00 0.00 (idle)
115983 lxd 0.00 0.00 0.00 (idle)
115967 lxd 0.00 0.00 0.00 (idle)
Total 6.73 0.00 6.73
File I/O operations:
No file I/O operations detected.
System calls traced:
PID Process Syscall Count Rate/Sec Total μSecs % Call Time
115967 lxd futex 1 0.0666 0 0.0000
115981 lxd restart_syscall 1 0.0666 2709487 13.3622
115981 lxd futex 1 0.0666 0 0.0000
115981 lxd nanosleep 1 0.0666 10133 0.0500
115982 lxd epoll_pwait 4 0.2665 2711881 13.3740
115983 lxd read 1 0.0666 0 0.0000
115984 lxd futex 1 0.0666 0 0.0000
115985 lxd read 1 0.0666 0 0.0000
115986 lxd futex 1 0.0666 0 0.0000
115989 lxd futex 1 0.0666 0 0.0000
116002 lxd futex 1 0.0666 0 0.0000
116004 lxd epoll_wait 31 2.0655 14845773 73.2139
116006 lxd futex 1 0.0666 0 0.0000
116027 lxd futex 1 0.0666 0 0.0000
116028 lxd futex 1 0.0666 0 0.0000
116029 lxd futex 1 0.0666 0 0.0000
116030 lxd futex 1 0.0666 0 0.0000
116031 lxd futex 1 0.0666 0 0.0000
116033 lxd futex 1 0.0666 0 0.0000
Total 52 3.4648 20277274
Top polling system calls:
PID Process Syscall Rate/Sec Infinite Zero Minimum Maximum Average
Timeouts Timeouts Timeout Timeout Timeout
115981 lxd nanosleep 0.0666 0 0 10.0 msec 10.0 msec 10.0 msec
115982 lxd epoll_pwait 0.2665 0 2 0.0 sec 50.0 sec 13.2 sec
116004 lxd epoll_wait 2.0655 0 0 327.0 msec 500.0 msec 494.4 msec
Total 2.3987 0 2
Distribution of poll timeout times:
10.0 100.0 1.0 10.0 100.0 1.0 10.0 100.0
up to to to to to to to to or more
Zero 9.9 99.9 999.9 9.9 99.9 999.9 9.9 99.9 Infinite
PID Process Syscall sec usec usec usec msec msec msec sec sec sec Wait
115981 lxd nanosleep 0 - - - - 1 - - - - 0
115982 lxd epoll_pwait 2 - - - - - - 1 1 - 0
116004 lxd epoll_wait 0 - - - - - 31 - - - 0
Polling system call analysis:
lxd (115982), epoll_pwait:
2 immediate timed out calls with zero timeout (non-blocking peeks)
1 repeated timed out polled calls with non-zero timeouts (light polling)
Filesystem Syncs:
None.
Inotify watches added:
None.
Memory:
Per Process Memory (K):
PID Process Type Size RSS PSS
115967 lxd Stack 132 16 16
115967 lxd Heap 1642304 40820 40820
115967 lxd Mapped 46852 31776 30646
Change in memory (K/second):
No changes found.
Heap Change via brk():
None.
Memory Change via mmap() and munmap():
None.
Open Network Connections:
PID Process Proto Send Receive Address
115967 lxd UNIX 0.00 B 0.00 B /var/snap/lxd/common/lxd/seccomp.socket
115967 lxd UNIX 0.00 B 0.00 B /run/systemd/journal/stdout
115967 lxd UNIX 0.00 B 0.00 B /var/snap/lxd/common/lxd/unix.socket
115967 lxd NETLINK 0.00 B 0.00 B netlink:[408896]
115967 lxd UNIX 0.00 B 0.00 B @0000e
115967 lxd UNIX 0.00 B 0.00 B /run/dbus/system_bus_socket
115967 lxd UNIX 0.00 B 0.00 B /var/snap/lxd/common/lxd/devlxd/sock
Total 0.00 B 0.00 B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment