View previous topic :: View next topic |
Author |
Message |
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Wed Oct 08, 2008 12:51 am Post subject: [SOLVED] Funky /proc/*/stat output |
|
|
For whatever reason I can't get more helpful information from /proc/*/stat. Instead of showing up with field names it's just showing up as the appname (argv[0]), the process state, plus a series of not-so-helpful integers without any sort of explanation.
Can anyone explain this phenomenon?
My info --
Running kernel:
Code: |
* sys-kernel/vanilla-sources
Latest version available: 2.6.25.14
Latest version installed: 2.6.25.14
|
.config SMP info:
Code: | headless-horseman linux # grep SMP /usr/src/linux/.config
CONFIG_X86_SMP=y
CONFIG_X86_32_SMP=y
CONFIG_SMP=y
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VSMP is not set
CONFIG_PM_SLEEP_SMP=y
CONFIG_X86_FIND_SMP_CONFIG=y
|
CPU info:
Code: | headless-horseman linux # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips : 4658.48
clflush size : 64
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
bogomips : 4655.00
clflush size : 64
|
Example:
(Session #1)
Code: |
headless-horseman linux # taskset -c 0,1 firefox
|
(Session #2)
Code: |
gcooper@headless-horseman ~ $ cat /proc/5575/stat
5575 (firefox-bin) S 5569 5566 12758 34833 5566 4202752 13117 0 1 0 605 13 0 0 20 0 8 0 71839459 143749120 10102 4294967295 134512640 134517912 3219007136 3219005016 4294960164 0 0 4096 17455 4294967295 0 0 17 0 0 0 0 0 0
|
The only thing I can say with some sense of clarity, is -- is the CPU mask set the 5 digit from the end in the .../stat output, e.g.
17 0 (<-- this one) 0 0 0 0 0
I really would like to know why it's so different for me though...
Last edited by yaneurabeya on Thu Oct 09, 2008 9:19 am; edited 2 times in total |
|
Back to top |
|
|
absoluteflatness Tux's lil' helper
Joined: 21 Jan 2007 Posts: 138 Location: Blacksburg or Falls Church, VA
|
Posted: Wed Oct 08, 2008 5:40 am Post subject: |
|
|
Pretty sure that's just what /proc/*/stat looks like.
Sure you weren't thinking of /proc/*/status instead? |
|
Back to top |
|
|
yaneurabeya Veteran
Joined: 13 May 2004 Posts: 1754 Location: Seattle
|
Posted: Thu Oct 09, 2008 9:18 am Post subject: |
|
|
Ah.... I misread the webpages.
There's a top level /proc/stat file which aggregates the statistics and data for /proc/*/stat. That's what I was looking for... |
|
Back to top |
|
|
|