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 " "
}