But on a virtualized system, at least on POWER, user/sys/idle/wait are all relative to the column "pc" and/or "ec" when using shared processors.
On a system (this one idle) with a dedicated processor(s) the values you see for cpu consumption can be used in the "normal" way.
Code:
System configuration: lcpu=1 mem=9216MB
kthr memory page faults cpu
------- --------------------- ------------------------------------ ------------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
6 0 773317 1494583 0 0 0 0 0 0 0 701 195 1 1 98 0
7 0 773324 1494576 0 0 0 0 0 0 0 1004 186 0 2 98 0
6 0 773324 1494576 0 0 0 0 0 0 0 629 197 0 2 98 0
However, when using shared processors, if your (summed) entitlement - which is what vmstat is showing (use mpstat or sar for a per logical processor breakdown - and total at the end) AND the summed entitlement is less than 100% you have at least the rest of your entitlement for additional processing.
While the number is less than entitlement AND user+sys is near 95% or higher, what this says is WHEN active, the processor is doing "user or sys" activities - "idle" time is being given back to the hypervisor for other activities.
Code:
$ lparstat 5 2
System configuration: type=Shared mode=Uncapped smt=On lcpu=2 mem=1024MB psize=1 ent=0.20
%user %sys %wait %idle physc %entc lbusy app vcsw phint
----- ----- ------ ------ ----- ----- ------ --- ----- -----
0.2 0.8 0.0 98.9 0.00 1.9 1.0 1.00 310 0
0.5 0.8 0.0 98.8 0.00 2.1 0.0 1.00 329 0
$ vmstat -w 5 2
System configuration: lcpu=2 mem=1024MB ent=0.20
kthr memory page faults cpu
------- --------------------- ------------------------------------ ------------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
3 0 241787 3751 0 0 0 0 0 0 16 1123 245 5 3 92 0 0.02 10.2
2 0 241787 3751 0 0 0 0 0 0 3 36 166 0 1 99 0 0.00 1.8
The same "user+sys" times when above entitlement could be a problem if the app number is getting very small (my system only has 1 cpu, so it is always small - )
Hi, iam new to AIX and had a basic question.
I was asked to give a chart of CPU utilization in percentage for every hour.
where can i look for information and which column should i look at?
I would be very thankful if somebody could respond.
Thanks!
karthik (1 Reply)
Dear friends,
I am doing a report daily for all most 30 more serves... i need to check out CPU utlization bu (top command, 100 - (ideal value))
and Memory utilization too
could some one help me how can i get it directly, if scripts also no problem..
i will very thankful if some one... (3 Replies)
Hi to All,
Would you please help me.
I would like to know, In Unix How to know CPU utilization for every process.
Thanks in Advance.
Thanks,
Divyang (3 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)
Hello,
We just purchased two new 4-way (one active one failover) 5Ghz Power6 Servers (failover) with 64GB RAM (32GB per node) runing AIX 6.1 with two LPARs per node connected to our SAN with two 4GB HBAs. The PROD LPAR has 2 dedicated CPUs (4 virtual) and the TEST LPAR has 2 dedicated CPUs.
... (3 Replies)
I know how to check the CPU utilization and memory space
like:
vmstat
top
free
What i want ot check on my linux system is...
how much CPU are available on my system and do i need to put extra CPU.
Also need to check the hardware configuration and the space related to the same
... (3 Replies)
Could you please explain about calculate CPU utilization of aix server using lparstat command?
Here below i have provided example output from aix test server.
System configuration: type=Shared mode=Uncapped smt=On lcpu=4 mem=4096 psize=63 ent=0.50
%user %sys %wait %idle physc %entc ... (1 Reply)
i am using the below command in order to find the cpu utilization by a user..now i want to mail if the cpu utilization goes beyond 5%....can someone please help me ?
ps auxw | sort -r +2 | awk '{ print $3,$1 }' | head -6 | egrep "USER|#anonymous#"
%CPU USER
2.0 anonymous
Regards,... (6 Replies)
Hi,
i am new to linux/RHEL 6.0 and i have two questions.
1) How to get the CPU utilization and Memory Utilization of all Services running currently?
2) How to get the CPU utilization and Memory Utilization of all Applications running currently?
Please help me to find the script.
... (2 Replies)
Discussion started by: nossam
2 Replies
LEARN ABOUT PLAN9
cpu
CPU(1) General Commands Manual CPU(1)NAME
cpu - connection to cpu server
SYNOPSIS
cpu [ -h server ] [ -c cmd args ... ]
DESCRIPTION
Cpu starts an rc(1) running on the server machine, or the machine named in the $cpu environment variable if there is no -h option. Rc's
standard input, output, and error files will be /dev/cons in the name space where the cpu command was invoked. Normally, cpu is run in an
81/2(1) window on a terminal, so rc output goes to that window, and input comes from the keyboard when that window is current. Rc's cur-
rent directory is the working directory of the cpu command itself.
The name space for the new rc is an analogue of the name space where the cpu command was invoked: it is the same except for architecture-
dependent bindings such as /bin and the use of fast paths to file servers, if available.
If a -c argument is present, the remainder of the command line is executed by rc on the server, and then cpu exits.
The name space is built by running /usr/$user/lib/profile with the root of the invoking name space bound to /mnt/term. The service envi-
ronment variable is set to cpu; the cputype and objtype environment variables reflect the server's architecture.
FILES
The name space of the terminal side of the cpu command is mounted on the CPU side on directory /mnt/term.
SOURCE
/sys/src/cmd/cpu.c
SEE ALSO rc(1), 81/2(1)BUGS
Binds and mounts done after the terminal lib/profile is run are not reflected in the new name space.
CPU(1)