Number of cores

Hi,
On AIX 7.2
When I run:
lparstat
I have:
System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=16384MB psize=5 ent=0.20

Considering lcpu=4 , does it mean that I have 4 cores?

Is lparstat the right command? If not what else?

Thanks and regards.

lcpu
Indicates the number of online logical processors

See Also:

https://www.ibm.com/docs/en/aix/7.2?topic=l-lparstat-command

1 Like

Thanks.
How can I see number of cores?

Regards.

The article
How to get Physical processor count on AIX | AIX.
suggests

prtconf
lparstat -i

The "active physical processors" are the cores.
Where the effectiveness of a core depends on the CPU model.

1 Like

Thank you.
The following seems the solution:

 lparstat -i | grep "Online Virtual CPUs"

Regards.

The man page posted above also yields:

Screen Shot 2022-10-11 at 6.37.49 PM

Sometimes taking a minute or two to read the man page can save you a lot of time and energy.

Looks like @MadeInGermany read the man page for you @big123456 .

From the man page posted above:

Screen Shot 2022-10-11 at 6.41.42 PM

See also:

Screen Shot 2022-10-11 at 6.43.05 PM

Hi Neo,
Thank you.
The problem is definition of CORE.
Unless mistaken, I do not see CORE in your extraction of man page.
Best regards.

core, cpu or processor, these are the same thing (according to the blog post below..... )

Reference:

Thanks.
No one knows the TRUTH.
lparstat -i | grep "Online Virtual CPUs"
Online Virtual CPUs : 1

image

And above we have:
image

Best regards.

LOL

What CPU model is in your AIX box?

If you do not know then you can open the box and look on the CPU.

Also, what is the output of

prtconf

??

Reference:

https://www.ibm.com/docs/en/aix/7.2?topic=p-prtconf-command

See Also:

https://www.unix.com/aix/248461-finding-type-aix-server-using-command-line.html