In <[EMAIL PROTECTED]>, on
09/12/2002 at 06:18 AM,
   Kent Borg <[EMAIL PROTECTED]> said:

>What *I* was wondering was where I might see multiple CPU information in
>the /proc file system.  As far as I know, top only looks in the /proc
>file system to get its info anyway, and as top is designed for human
>consumption, it seemed cleaner, faster, and prettier to get the CPU count
>from the /proc file system directly.  The question then is: where in
>/proc?

>I was looking around hoping to find a hint of where such information
>might land in /proc, were I to be runnging on an SMP machine.  I mean, I
>can see where my USB bus is likely to show up were I running a kernel
>that understood my USB hardware (/proc/bus).  I was hoping to find
>something like, say, "/proc/cpus/cpu0" and infer that a "/proc/cpus/cpu1"
>would show up there if I had a second CPU.

It's in /proc/cpuinfo

You'd have to parse the file if all you wanted to know was the number of
cpus, since that file has a whole section for the first cpu and then
another section for the second cpu.




-- 
-----------------------------------------------------------
Steve Garcia   using MR/2 ICE #10133 with Warp 4  
[EMAIL PROTECTED]
For PGP key, send mail to [EMAIL PROTECTED] with subject "PGP key"
-----------------------------------------------------------
The Operating System/2 Version is 4.50
Revision 14.062
There are 39 Processes with 142 Threads.
GHARLANE: uptime is 6 days, 00:12 hours and 44 seconds
 
*  They that can give up essential liberty to obtain a little temporary  safety 
deserve neither liberty nor safety." -- Benjamin Franklin



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to