Jeff Dike wrote: > sysconf seems to be looking at /proc/stat, which looks like this here: > > cpu 80 0 157 12771 984 0 0 0 0 > cpu0 80 0 157 12771 984 0 0 0 0 > intr 15259 12519 0 75 0 2590 0 0 0 0 0 0 74 0 0 1 > ctxt 8081 > btime 1217881784 > processes 1144 > procs_running 3 > procs_blocked 0 > > I'd guess it's looking at the cpu0 (and cpu<n>) lines.
# cat /proc/stat cpu 38822 537 3376 46871329 174924 0 9 0 0 cpu0 38822 537 3376 46871329 174924 0 9 0 0 intr 47644940 47088997 0 5 0 395871 160067 0 0 0 0 0 0 0 0 0 ctxt 9822902 btime 1217412992 processes 26529 procs_running 2 procs_blocked 0 Hmmm... so I have cpu0 similar to yours. What version of UML and libc do you have? -- Stano ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel