Skip to contentSkip to conversation

2.6.10-um, /proc/stat is missing information

uml-devel Christopher S. Aker 2 participants 4 messages Jan 13, 2005 – Jan 14, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

I just verified this on a Debian install and an FC2 install.

Moving from 2.6.9-bb4 to 2.6.10-um vanilla, top reports either 100% user, or 100% idle.

[2.6.10] # cat /proc/stat
cpu 645 1 0 0 0 0 0
cpu0 645 1 0 0 0 0 0
intr 63462 54820 0 174 10 8270 93 0 0 0 0 1 94 0 0 ctxt 108849
btime 1105659428
processes 1542
procs_running 2
procs_blocked 0

[2.6.9-bb4] # cat /proc/stat
cpu 407 0 1989 7536 252 28 1
cpu0 407 0 1989 7536 252 28 1
intr 15430 10185 0 48 1 5035 134 0 0 0 0 0 27 0 0
ctxt 10966
btime 1105660071
processes 1501
procs_running 1
procs_blocked 0

Looks like some information is missing from /proc/stat in 2.6.10.

-Chris

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 25 lines · Christopher S. Aker

I just verified this on a Debian install and an FC2 install.

Moving from 2.6.9-bb4 to 2.6.10-um vanilla, top reports either 100% user, or 100% idle.

[2.6.10] # cat /proc/stat
cpu 645 1 0 0 0 0 0
cpu0 645 1 0 0 0 0 0
intr 63462 54820 0 174 10 8270 93 0 0 0 0 1 94 0 0 ctxt 108849
btime 1105659428
processes 1542
procs_running 2
procs_blocked 0

[2.6.9-bb4] # cat /proc/stat
cpu 407 0 1989 7536 252 28 1
cpu0 407 0 1989 7536 252 28 1
intr 15430 10185 0 48 1 5035 134 0 0 0 0 0 27 0 0
ctxt 10966
btime 1105660071
processes 1501
procs_running 1
procs_blocked 0

Quoted 3 lines

Looks like some information is missing from /proc/stat in 2.6.10.

-Chris

Try retesting after applying update-process-times.patch (the one for the crash you were seeing): that patch was not merged by maintainers in mainline, though IIRC it was sent in the right time frame (maybe because they weren't marked as urgent, or because they were a lot of patches, which is also possible).

About this, we should try for the future (even if this one was a special case, having to merge tens of invasive patches for security purposes is not nice) to merge big things only before -rc1 and -rc2, since after those releases things must calm down. This recommendation must be updated with changes in the release cycle followed by Linus, obviously.

Bye

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw
Quoted 5 lines

Try retesting after applying update-process-times.patch (the one for the crash you were seeing): that patch was not merged by maintainers in mainline, though IIRC it was sent in the right time frame (maybe because they weren't marked as urgent, or because they were a lot of patches, which is also possible).

# cat /proc/stat 
cpu  93 0 0 0 0 4129 0
cpu0 93 0 0 0 0 4129 0
intr 17406 6535 0 90 0 10414 309 0 0 0 0 1 57 0 0
ctxt 20120
btime 1105664741
processes 1564
procs_running 1
procs_blocked 0

Looks like that was the fix. And I see it went in with 2.6.10-mm1.

Thanks BB,
-Chris

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw
In reply to Christopher S. Aker

Forgot to add to my previous mail: maintaining -bb is a pain, and it was intended to be released only when there were big problems in the mainline release.

Maintaining it by including only a handful of fixes would not be a lot of work, instead... I need more time to do some real development, rather than release management - however I hope to learn to manage my time better.

Bye

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel