Portal Home > Knowledgebase > Articles Database > /proc/cpuinfo


/proc/cpuinfo




Posted by HostSentry, 07-07-2007, 08:55 PM
What do you guys think of this? I see that there is clearly 2 processors. However, in the section for each processor it says cpu cores :2. Does that make this a dual core dual processor (4 cores)? I also see a core ID, which makes me think possibly it is just 1 processor with 2 cores. Does anyone know what the flags means?

Posted by TMS - JoseQ, 07-07-2007, 08:59 PM
No, it's a single processor with 2 cores. There's no Dual Pentium system.

Posted by HostSentry, 07-07-2007, 09:01 PM
Your right I did not even think of that. Another question while I am at it: /proc/loadavg : 0.00 0.06 0.07 2/151 20308 What do the 4th and 5th values (assuming you start counting at 1)

Posted by luki, 07-07-2007, 09:17 PM
Number of running processes / total number of process. PID of last started process.

Posted by HostSentry, 07-07-2007, 09:52 PM
I am hoping you will read this one last time. I see in /proc/partitions you can see how many blocks are partitioned. How do you determine block size in bytes? Also, is there a way to see the used space on each partition? Edit: Oh crap this is a double post. Sorry Mods please merge this, I can't edit the one above this. Sorry Edit 2: I see /proc/swaps has one of the partitions in it. Probably the one that hosts apache accounts. I guess again, all I need to know is block size. (1024?)

Posted by Justin, 07-08-2007, 01:48 AM
typically on linux variants the ssh2 command 'free' will work to display space in use/total space. Also on most (if not all unix based distros) 'df -h' will work for a human-readable output of the usage on all mount points.

Posted by sirius, 07-08-2007, 03:22 PM
Moved to Technical and Security Issues.... Sirius

Posted by BigGorilla, 07-09-2007, 04:54 PM
free' is for memory, not disk. That is really the one you need. 'man df' for additional options like displaying block in kilobytes (-k) or whatever which is useful within scripts when you need a consistent readout. 'sfdisk -l' will also display blocksize. Last edited by BigGorilla; 07-09-2007 at 05:05 PM.

Posted by BigGorilla, 07-09-2007, 05:01 PM
proc/swaps references the swap partition. That's where your memory swapping occurs.

Posted by HostSentry, 07-09-2007, 05:14 PM
Problem with getting the disk usage from a command is I don't have shell access in this certain case. I guess the answer cannot be gathered from the /proc directory.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
OpenVZ 32bit centos? (Views: 717)
Ecatel down??? (Views: 777)


Language: