I noticed when having some trouble with code I was testing that the CPU was becoming exhausted and I would have to reboot. After rebooting a couple times I decided to check for other problems before trying my code again. That's when I noticed that the CPU with the idle process was through the roof:
I wanted to use lsof on the process, but apparently that is not an option with kFreeBSD. I tried using sockstat, but it seemed that no parameters I tried worked. I tried searching online, but all the documentation seemed to be for FreeBSD and not kFreeBSD. The man page didn't seem to be much help either.
Dear All,
Our HPUX 8 GB 8CPU database server is behaving abnormally for the last 4+ weeks. I have generated a sar output and it is here-
11:46:52 %usr %sys %wio %idle
11:46:53 1 1 6 92
11:46:54 0 1 0 99
11:46:55 0 1 0... (3 Replies)
Since yesterday the vmstat command is displaying the cpu idle time at 100%At each time interval. It never changes. Not sure what it means other than it Quit calculating that stat. And I'm curious why. Using sar I can display a correctCpu idle percent, but vmstat does not. Any ideas why or... (2 Replies)
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Hi, I checking yesterday's SAR logs for one of our servers and it was showing that utilisation was down to 0% for 10 minutes at 2am. We're unaware of any jobs running at this time so need to find out which process caused this spike.
Is there anything built into SAR (or does anything else exist)... (11 Replies)
I am using Ubuntu 9.04. I want to write a shell script to get the information about cpu idle from top command at the real time when i call it, compare cpu idle with 20 (20%), if cpu idle > 20 exit 1, vice versa exit 0. Anybody can help me to resolve it ?
Thanks alot. (7 Replies)
I need a shell script that will monitor a few conditions and not execute until the these conditions are met. The problem I'm having is that I can not perform a database snapshot (backup) of a sybaseIQ database unless the CPU Status Idle % is above 60% or the snapshot (backup) fails.
If... (2 Replies)
Hi Everybody,
Can anybody explain how CPU idle% is about 50%, but runq-sz more than 1?
sar from Solaris 10:
00:00:05 %usr %sys %wio %idle
17:00:08 27 12 0 61
17:20:05 40 15 0 45
17:40:05 27 12 0 61
18:00:05 23... (2 Replies)
Discussion started by: sant
2 Replies
LEARN ABOUT FREEBSD
pmccontrol
PMCCONTROL(8) BSD System Manager's Manual PMCCONTROL(8)NAME
pmccontrol -- control hardware performance monitoring counters
SYNOPSIS
pmccontrol [-c cpu | -d pmc | -e pmc] ...
pmccontrol -l
pmccontrol -L
pmccontrol -s
DESCRIPTION
The pmccontrol utility controls the operation of the system's hardware performance monitoring counters.
OPTIONS
The pmccontrol utility processes options in command line order, so later options modify the effect of earlier ones. The following options
are available:
-c cpu Subsequent enable and disable options affect the CPU denoted by argument cpu. The argument cpu is a number denoting a CPU in the
system, or ``*'', denoting all unhalted CPUs in the system.
-d pmc Disable PMC number pmc on the CPU specified by -c, preventing it from being used till subsequently re-enabled. The argument pmc is a
number denoting a specific PMC, or ``*'' denoting all the PMCs on the specified CPU.
Only idle PMCs may be disabled.
-e pmc Enable PMC number pmc, on the CPU specified by -c, allowing it to be used in the future. The argument pmc is a number denoting a
specific PMC, or ``*'' denoting all the PMCs on the specified CPU. If PMC pmc is already enabled, this option has no effect.
-l List available hardware performance counters and their current disposition.
-L List available hardware performance counter classes and their supported event names.
-s Print driver statistics maintained by hwpmc(4).
EXAMPLES
To disable all PMCs on all CPUs, use the command:
pmccontrol -d*
To enable all PMCs on all CPUs, use:
pmccontrol -e*
To disable PMCs 0 and 1 on CPU 2, use:
pmccontrol -c2 -d0 -d1
To disable PMC 0 of CPU 0 only, and enable all other PMCS on all other CPUs, use:
pmccontrol -c* -e* -c0 -d0
DIAGNOSTICS
The pmccontrol utility exits 0 on success, and >0 if an error occurs.
SEE ALSO pmc(3), pmclog(3), hwpmc(4), pmcstat(8), sysctl(8)HISTORY
The pmccontrol utility first appeared in FreeBSD 6.0.
AUTHORS
Joseph Koshy <jkoshy@FreeBSD.org>
BSD November 9, 2008 BSD