[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-poweredge
Subject:    Re: [Linux-PowerEdge] /proc/cpuinfo showing more quantity
From:       Jonathan Barber <jonathan.barber () gmail ! com>
Date:       2013-06-17 8:49:41
Message-ID: CAPEiEj79DPVM7898SsdFXXFFbLeXsDF5aNgNEK+Or4Uwn+g_aA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 13 June 2013 15:03, Eric N. Jones <eric.jones@transware.net> wrote:

> I've been trying to write a script to intelligently (and I use the word
> loosely) assign tasks to various cores and sockets using processor affinity
> so I was looking for a tool which would help me decode the number of cores,
> threads, and sockets in the machine.  In addition to the things you guys
> have already commented on, someone else pointed me to the "lscpu" command,
> which outputs most of that information (see example below):
>

Check out the hwloc tools, which both report this kind of information and
allow you to bind processes to CPUs. hwloc will also give you information
about the NUMA architecture, which is probably important to you if you care
about processor affinity.

If you are interested in knowing the currently clock rates of the cores,
you can use the i7z tool.

Cheers

>
> > lscpu
> Architecture:          x86_64
> CPU op-mode(s):        32-bit, 64-bit
> Byte Order:            Little Endian
> CPU(s):                32
> On-line CPU(s) list:   0-31
> Thread(s) per core:    2
> Core(s) per socket:    8
> CPU socket(s):         2
> NUMA node(s):          2
> Vendor ID:             GenuineIntel
> CPU family:            6
> Model:                 45
> Stepping:              7
> CPU MHz:               1200.000
> BogoMIPS:              5799.16
> Virtualization:        VT-x
> L1d cache:             32K
> L1i cache:             32K
> L2 cache:              256K
> L3 cache:              20480K
> NUMA node0 CPU(s):     0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
> NUMA node1 CPU(s):     1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
>
> This is from an R620 with 2 Xeon E5-2690's. The only misleading part is
> that the CPU MHz line is showing the low power state and not the nominal
> full speed of the processor (2900 MHz). But it does show you which cores
> (from Linux's standpoint) are associated with which CPU socket.
>
> --
> Eric N. Jones
>
> -----Original Message-----
> Date: Fri, 7 Jun 2013 18:57:50 +0000
> From: "Howard, Chris" <HowardC@prpa.org>
> Subject: Re: [Linux-PowerEdge] /proc/cpuinfo showing more quantity
>         than    I       expected
> To: Stephen Dowdy <sdowdy@ucar.edu>
> Cc: "linux-poweredge@dell.com" <linux-poweredge@dell.com>
> Message-ID:
>         <
> 8314F8EFE380C74E8DF8FCCC5E5622722C7DE18D@PSO-MailDB.internal.prpa.org>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Thanks everyone.
>
> Frankly,  I don't even know what that is.  Something for me to get
> educated about.  Off to Google I go.
>
> I may be back with more questions about it later.
>
> Thanks again,
>
> Chris
>
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge@dell.com
> https://lists.us.dell.com/mailman/listinfo/linux-poweredge
>



-- 
Jonathan Barber <jonathan.barber@gmail.com>

[Attachment #5 (text/html)]

<div dir="ltr">On 13 June 2013 15:03, Eric N. Jones <span dir="ltr">&lt;<a \
href="mailto:eric.jones@transware.net" \
target="_blank">eric.jones@transware.net</a>&gt;</span> wrote:<br><div \
class="gmail_extra"><div class="gmail_quote"> <blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve been \
trying to write a script to intelligently (and I use the word loosely) assign tasks \
to various cores and sockets using processor affinity so I was looking for a tool \
which would help me decode the number of cores, threads, and sockets in the machine.  \
In addition to the things you guys have already commented on, someone else pointed me \
to the &quot;lscpu&quot; command, which outputs most of that information (see example \
below):<br> </blockquote><div><br></div><div style>Check out the hwloc tools, which \
both report this kind of information and allow you to bind processes to CPUs. hwloc \
will also give you information about the NUMA architecture, which is probably \
important to you if you care about processor affinity.</div> <div \
style><br></div><div style>If you are interested in knowing the currently clock rates \
of the cores, you can use the i7z tool.</div><div style> </div><div \
style>Cheers</div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
&gt; lscpu<br>
Architecture:          x86_64<br>
CPU op-mode(s):        32-bit, 64-bit<br>
Byte Order:            Little Endian<br>
CPU(s):                32<br>
On-line CPU(s) list:   0-31<br>
Thread(s) per core:    2<br>
Core(s) per socket:    8<br>
CPU socket(s):         2<br>
NUMA node(s):          2<br>
Vendor ID:             GenuineIntel<br>
CPU family:            6<br>
Model:                 45<br>
Stepping:              7<br>
CPU MHz:               1200.000<br>
BogoMIPS:              5799.16<br>
Virtualization:        VT-x<br>
L1d cache:             32K<br>
L1i cache:             32K<br>
L2 cache:              256K<br>
L3 cache:              20480K<br>
NUMA node0 CPU(s):     0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30<br>
NUMA node1 CPU(s):     1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31<br>
<br>
This is from an R620 with 2 Xeon E5-2690&#39;s. The only misleading part is that the \
CPU MHz line is showing the low power state and not the nominal full speed of the \
processor (2900 MHz). But it does show you which cores (from Linux&#39;s standpoint) \
are associated with which CPU socket.<br>

<br>
--<br>
Eric N. Jones<br>
<br>
-----Original Message-----<br>
Date: Fri, 7 Jun 2013 18:57:50 +0000<br>
From: &quot;Howard, Chris&quot; &lt;<a \
                href="mailto:HowardC@prpa.org">HowardC@prpa.org</a>&gt;<br>
Subject: Re: [Linux-PowerEdge] /proc/cpuinfo showing more quantity<br>
        than    I       expected<br>
To: Stephen Dowdy &lt;<a href="mailto:sdowdy@ucar.edu">sdowdy@ucar.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:linux-poweredge@dell.com">linux-poweredge@dell.com</a>&quot; \
&lt;<a href="mailto:linux-poweredge@dell.com">linux-poweredge@dell.com</a>&gt;<br> \
Message-ID:<br>  &lt;<a \
href="mailto:8314F8EFE380C74E8DF8FCCC5E5622722C7DE18D@PSO-MailDB.internal.prpa.org">8314F8EFE380C74E8DF8FCCC5E5622722C7DE18D@PSO-MailDB.internal.prpa.org</a>&gt;<br>
 <br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Thanks everyone.<br>
<br>
Frankly,  I don&#39;t even know what that is.  Something for me to get educated \
about.  Off to Google I go.<br> <br>
I may be back with more questions about it later.<br>
<br>
Thanks again,<br>
<br>
Chris<br>
<br>
_______________________________________________<br>
Linux-PowerEdge mailing list<br>
<a href="mailto:Linux-PowerEdge@dell.com">Linux-PowerEdge@dell.com</a><br>
<a href="https://lists.us.dell.com/mailman/listinfo/linux-poweredge" \
target="_blank">https://lists.us.dell.com/mailman/listinfo/linux-poweredge</a><br> \
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jonathan Barber &lt;<a \
href="mailto:jonathan.barber@gmail.com">jonathan.barber@gmail.com</a>&gt; \
</div></div>



_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge@dell.com
https://lists.us.dell.com/mailman/listinfo/linux-poweredge


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic