HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: //opt/perf/examples/adviser/proc_sysutil_adv
# The following adviser syntax helps to track down processes 
# which are spending too much time in system mode (syscalls, I/O):

# Invoke the script as :
# glance -aos proc_sysutil_adv

highest = 0
highestpid = 0
highestname = ""

process loop
  if proc_cpu_syscall_util > highest then {
    highest = proc_cpu_syscall_util
    highestpid = proc_proc_id
    highestname = proc_proc_name
  }

if highest > 20 then {
  print "--- high system cpu (",highest|0|0,"%) detected at ",gbl_stattime,":"
  print "    process id ",highestpid|0|0,", ",highestname
  print "    "
}