Cheatsheet: Difference between revisions
Content added Content deleted
(→ProcFS) |
(→ProcFS) |
||
Line 552: | Line 552: | ||
== ProcFS == |
== ProcFS == |
||
*Procfs or /proc is a special FS under Linux used to present process information and kernel processes. |
|||
*Much of the information for kernel level of 2.6 & above have been moved to "sysfs" generally mounted under /sys. |
|||
*/proc is stored in memory. |
|||
*On multi-core CPUs, /proc/cpuinfo contains the fields for "siblings" and "cpu cores": |
|||
"siblings" = (HT per CPU package) * (# of cores per CPU package) |
|||
"cpu cores" = (# of cores per CPU package) |
|||
*A CPU package means physical CPU which can have multiple cores (single core for one, dual core for two, quad core for four). |
|||
*This allows a distinction between hyper-threading and dual-core, i.e. the number of hyper-threads per CPU package can be calculated by siblings / CPU cores. |
|||
*If both values for a CPU package are the same, then hyper-threading is not supported. |
|||
*For instance, a CPU package with siblings=2 and "cpu cores"=2 is a dual-core CPU but does not support hyper-threading. |
|||