Skip to contentSkip to conversation

test12 + initrd = swapper at 99.8% CPU time

DISCUSSION Joseph Cheek 4 participants 5 messages Dec 13, 2000 – Dec 15, 2000

lore
Share & tools
lore
#0 lore raw

hi all,

i'm using test12 to perform a clean linux install. as soon as i get to a command prompt, ps axufw shows swapper at 99.8% CPU usage. this didn't repro with test11, and doesn't repro if i don't use an initrd.

my load avg stays above 1 even if nothing [a couple gettys and a shell] is running.

what can i do to debug this? any ideas?

--
thanks!

joe

--

Joseph Cheek, Sr Linux Consultant, Linuxcare | http://www.linuxcare.com/
Linuxcare.  Support for the Revolution.      | [email protected]
CTO / Acting PM, Redmond Linux Project       | [email protected]
425 990-1072 vox [1074 fax] 206 679-6838 pcs | [email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 10 lines · Joseph Cheek

hi all,

i'm using test12 to perform a clean linux install. as soon as i get to a command prompt, ps axufw shows swapper at 99.8% CPU usage. this didn't repro with test11, and doesn't repro if i don't use an initrd.

my load avg stays above 1 even if nothing [a couple gettys and a shell] is running.

what can i do to debug this? any ideas?

Boot with "profile=2" kernel option and read readprofile (1) man page to know how to use it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to Joseph Cheek
Quoted 3 lines · Joseph Cheek

i'm using test12 to perform a clean linux install. as soon as i get to a command prompt, ps axufw shows swapper at 99.8% CPU usage. this didn't repro with test11, and doesn't repro if i don't use an initrd.

What pid does this task have? The only process that should be "swapper" is pid0, and pid0 should be hidden from view.

If its not pid0, then I'd guess that it may be a rogue program...
_____

  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        [email protected]      --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw

hi,

ps axufw shows it as pid 1.

Quoted 10 lines · Russell King
Quoted 3 lines · Joseph Cheek

i'm using test12 to perform a clean linux install. as soon as i get to a command prompt, ps axufw shows swapper at 99.8% CPU usage. this didn't repro with test11, and doesn't repro if i don't use an initrd.

What pid does this task have? The only process that should be "swapper" is pid0, and pid0 should be hidden from view.

If its not pid0, then I'd guess that it may be a rogue program...
_____

Quoted 7 lines
  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        [email protected]      --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

--
thanks!

joe

--

Joseph Cheek, Sr Linux Consultant, Linuxcare | http://www.linuxcare.com/
Linuxcare.  Support for the Revolution.      | [email protected]
CTO / Acting PM, Redmond Linux Project       | [email protected]
425 990-1072 vox [1074 fax] 206 679-6838 pcs | [email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw

Re: test12 + initrd = swapper at 99.8% CPU timer

Quoted 3 lines · Joseph Cheek

hi,

ps axufw shows it as pid 1.

Interesting.. init running out of control. I've seen that, and it was init taking endless page faults.

I wager (one virtual brew) that you'll see an endless stream of output if you apply this.

signal.c renamed from signal.c.org +3 -0
@@ -564,6 +564,9 @@
 {
 	unsigned long int flags;
 
+	if (sig == SIGSEGV)
+		printk(KERN_ERR "SIGSEGV pid %d\n", t->pid);
+
 	spin_lock_irqsave(&t->sigmask_lock, flags);
 	if (t->sig == NULL) {
 		spin_unlock_irqrestore(&t->sigmask_lock, flags);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/