Sponsored Content
Full Discussion: Newbie & LPAR
Operating Systems AIX Newbie & LPAR Post 302493607 by zaxxon on Thursday 3rd of February 2011 10:38:22 AM
Old 02-03-2011
I had a similar question about the monitoring of CPU usage on logical CPUs. I was trying to sort out some nmon reports and came to no conclusion. So I asked Nigel Griffiths (coder of nmon) in the IBM developerWorks forum about it:

https://www.ibm.com/developerworks/f...557461�
Quote:
...
I agree the logical CPU stats are largely meaningless for shared CPU partitions because the logical CPUs don't really exist as we think of them (they are sharing in unpredictable ways the underlying physical CPUs and certainly don't have fixed percentages of CPU time like 50:50) and especially when uncapped as its reported as 100% busy when its really say 5 times the entitlement which you could call 500% !!

Pay attention to the Physical CPU use (also called CPU used).
...
---------- Post updated at 04:38 PM ---------- Previous update was at 02:17 PM ----------

In addition to my previous somewhat general post:

Your assumption sounds correct to me, if the process is single threaded. If it is multithreaded and SMT is enabled, it should be dispatched by different logical CPUs and so take advantage being able to run multiple threads on multiple logical CPUs.
You can check dispatching with mpstat -s 1 for example.
There is also a "Virtualization best practices" Redbook - maybe this has information about it.

A single threaded process will most probably not take any advantage of SMT or having more than 1 virtual CPU available, if it is running mainly alone on the system. It can only be handled by one virtual CPU at a time. Though a second virtual CPU can meanwhile handle other operating system tasks etc. In that case turn of SMT and monitor it's performance.

For tests you could try out nstress.

You might want to check out what is best for your environment/application.
To check out if your application is multithreaded, check it out with svmon -P| grep -p Pid. There will be a Y in the column for Mthrd.

In our environments we have SMT turned on, because on every LPAR there is usually running single and multithreaded processes and we had no need to turn SMT yet off.

Last edited by zaxxon; 02-03-2011 at 11:42 AM.. Reason: changed "virtual" to "logical"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Newbie ? Need Help with If/Then & Line Breaks...

I hope this makes sense, but I need help with what is indicated with %%, below : A.) ####List active servers and send to file#### # ps -ef | grep jboss | grep sh | awk '{if ($14) {print $12;}else {print $11}}' | sort > /export/home/kthatch/script_results client302 client306 client309... (1 Reply)
Discussion started by: kthatch
1 Replies

2. UNIX for Dummies Questions & Answers

Newbie help with New Line & Blank Line

I have this in my script: usercount=`ldapsearch -L -b"ou=people,ou=$ou,dc=paisleyhosting,dc=com" -h"$server" -p"1391" cn=* nothing | grep -c dn` admincount=`ldapsearch -b"ou=groups,ou=$ou,dc=paisleyhosting,dc=com" -h"$server" -p"1391" cn=USERADMIN* uniquemember | grep... (5 Replies)
Discussion started by: kthatch
5 Replies

3. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

4. Shell Programming and Scripting

perl newbie . &&..programming newbie

Hi, I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script. I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies

5. SCO

newbie - CUPS installation & C compiler

Ok new in here so be gentle: I'm a programmer with the need to also be a sys admin on a box running: Client has purchased a Kyocera KM-4035 do it all machine. However, no driver exists for SCO and when I contacted their Kyocera rep he told me to install CUPS. I downloaded CUPS and ran... (2 Replies)
Discussion started by: bbxguy
2 Replies

6. Red Hat

newbie: Linux Server Names & Types..!!!

Any one tell me about the list of Redhat Linux Enterprise 5 SERVERS and their functions. thanks (3 Replies)
Discussion started by: salman103
3 Replies

7. AIX

DUAL VIOS & Client LPAR hangs at 25b3

I have a DUAL VIO ( IBM Virtual I/O ) setup on p 570. Two Vio server ( VIOS ) and many LPAR clients. VIO ( latest version + service pack + applied the fix ) and AIX 6.1 ML2 When both VIOs are running, and if I turn on a Client LPAR, the LPAR hangs at LED 25b3 for more than 1 hour then it... (2 Replies)
Discussion started by: filosophizer
2 Replies

8. AIX

LPAR freezes after switching of storage (lpar is mirrored)

Hi all, I have the following configuration 2 ds3524 storage disk systems located over 2 locations 2 P720 server located over 2 locations DS3524 are connected to san switch. Each vio server has 1 fc adapter attached to a san switch. per p720 server 2 virtual io servers. Vio 1 has 1 lun... (2 Replies)
Discussion started by: markiemark
2 Replies

9. AIX

Newbie - AIX LPAR performance problem

Running into performance issues with WAS application servers on two of LPAR's or like configuration under high load web pages crawl. Please forgive me I'm new to AIX and most my expertise is in the Linux space. Thanks for your help!! Here's the run down: The problem appears to be CPU... (3 Replies)
Discussion started by: margeson
3 Replies

10. AIX

How to differentiate between a standalone LPAR and a VIOC (which again is a lpar)?

There can be configurations in IBM Server wherein a standalone partition is created on some supported IBM Server Or A VIOS - VIOC LPARs created. Now in both cases they are lpars. But if I want to differentiate b/w a standalone LPAR vs an VIOC LPAR how can I do..? On a... (2 Replies)
Discussion started by: Manish00712
2 Replies
CHCPU(8)							   User Manuals 							  CHCPU(8)

NAME
chcpu - configure CPUs SYNOPSIS
chcpu [-e] [-d] [-c] [-g] cpu-list chcpu [-p] mode chcpu -r chcpu [-h] [-V] DESCRIPTION
chcpu can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying hypervisor, and request CPUs from the hypervisor (configure) or return CPUs to the hypervisor (deconfigure). Some options have a cpu-list argument. Use this argument to specify a comma-separated list of CPUs. The list can contain individual CPU addresses or ranges of addresses. For example, 0,5,7,9-11 makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and 11. OPTIONS
-r, --rescan Trigger a rescan of CPUs. Use this option on systems that do not automatically detect newly attached CPUs. The Linux kernel then recognizes the new CPUs. -c, --configure cpu-list Configure all specified CPUs. Configuring a CPU means that the hypervisor takes a CPU from the CPU pool and assigns it to the vir- tual hardware on which your kernel runs. -e, --enable cpu-list Enable all specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see -c, before it can be enabled. -p, --dispatch mode Set the CPU dispatching mode (polarization). This option has an effect only if your hardware architecture and hypervisor support CPU polarization. Available modes are: horizontal The workload is spread across all available CPUs. vertical The workload is concentrated on few CPUs. -d, --disable cpu-list Disable all specified CPUs. Disabling a CPU means that the kernel sets it offline. -g, --deconfigure cpu-list Deconfigure all specified CPUs. Deconfiguring a CPU means that the hypervisor removes the CPU from the virtual hardware on which the Linux instance runs and returns it to the CPU pool. A CPU must be offline, see -d, before it can be deconfigured. -h, --help Display help information and exit. -V, --version Display version information and exit. AUTHOR
Heiko Carstens <heiko.carstens@de.ibm.com> COPYRIGHT
Copyright IBM Corp. 2011 SEE ALSO
lscpu(1) AVAILABILITY
The chcpu command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils/util- linux/>. Linux June 2012 CHCPU(8)
All times are GMT -4. The time now is 09:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy