Skip to contentSkip to conversation

Getting garbage in ps, as expected...

uml-devel Rob Landley 2 participants 3 messages Oct 12, 2005 – Oct 13, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Great fun. So I'm using UML in -skas0 mode built from 2.6.13.2, and it's putting fun garbage in the ps display:

 7284 ?        S      0:00 [pdflush]
10480 pts/3    R      0:06 ?@???            ?   ?   ?    ???s   F?! @???{
12783 ?        S      0:00 [pdflush]
 8454 pts/3    R      0:03  @???{        " ? ???

Also, sometimes when my script hits an error and init exits, and of course the thing panics and exits, it doesn't actually exit. Instead it remains alive spinning and eating CPU. "killall linux" makes it stop eating CPU, but that leaves T threads, and when you unblock them you get the above garbage (and _they_ start spinning eating CPU)...

No easy way to script a cleanup for this...

Rob

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 7 lines · Rob Landley

Great fun. So I'm using UML in -skas0 mode built from 2.6.13.2, and it's putting fun garbage in the ps display:

 7284 ?        S      0:00 [pdflush]
10480 pts/3    R      0:06 ?@???            ?   ?   ?    ???s   F?! @???{
12783 ?        S      0:00 [pdflush]
 8454 pts/3    R      0:03  @???{        " ? ???

The garbage is irrelevant.

UML is supposed to clean up after itself. How reproducable is this, and how do you do it?

Jeff

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw
Quoted 10 lines · Jeff Dike
Quoted 7 lines · Rob Landley

Great fun. So I'm using UML in -skas0 mode built from 2.6.13.2, and it's putting fun garbage in the ps display:

 7284 ?        S      0:00 [pdflush]
10480 pts/3    R      0:06 ?@???            ?   ?   ?    ???s   F?! @???{
12783 ?        S      0:00 [pdflush]
 8454 pts/3    R      0:03  @???{        " ? ???

The garbage is irrelevant.

But annoying. It's corrupting the ps display and there's no way to killall those threads.

Quoted 2 lines

UML is supposed to clean up after itself. How reproducable is this, and how do you do it?

I normally run the build:
(cat /dev/zero | ./buildscript.sh > out.txt 2>&1 &) && tail -f out.txt

(Because the standard "tee" is buggy; it stops sending to a pipe if that pipe is ever full, which can happen due to the process it's feeding not getting scheduled fast enough. This includes your xterm. I fixed this in the busybox version...)

In the above, buildscript runs UML, which exits (with a panic) but doesn't _stop_. Also "killall linux" will sometimes leave the garbage threads in T state, and when you -CONT them they turn into CPU hogs.

Rob

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel