[mdlug] System call to get CPU Info
Ron Blanchett
muteid10t at gmail.com
Thu Apr 17 10:54:53 EDT 2008
Just about all of that info is available in /proc/cpuinfo
On 4/17/08, David Lane <dcl400m at yahoo.com> wrote:
> I just need to discover:
>
> 1. CPU brand
> 2. Clock Speed
> 3. Number of Cores
> 4. RAM
> 5. Cache L1, L2, L3
>
>
> David C. Lane
>
>
> ----- Original Message ----
> From: "Ingles, Raymond" <Raymond.Ingles at compuware.com>
> To: MDLUG's Main discussion list <mdlug at mdlug.org>
> Sent: Thursday, April 17, 2008 10:32:44 AM
> Subject: Re: [mdlug] System call to get CPU Info
>
> > From: David Lane
>
> > Is there a system call to get CPU information?
>
> Depends on what you're looking for. Linux generally avoids syscalls for
> that stuff,
> and uses the /proc filesystem. For information on the physical CPUs
> installed in the
> system, you can use "cat /proc/cpuinfo". For information on CPU usage, you
> can try
> "cat /proc/stat" and "cat /proc/loadavg", though you'll need to do some
> digging to
> understand what all the numbers mean.
>
> Sincerely,
>
> Ray Ingles (313) 227-2317
>
> "Loyalty to the country always. Loyalty to the government when it
> deserves it." - Mark Twain
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or disclose
> it to anyone else. If you received it in error please notify us immediately
> and then destroy it.
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
--
Sent from Gmail for mobile | mobile.google.com
More information about the mdlug
mailing list