Skip to contentSkip to conversation

URGENT : System hands on "Freeing unused kernel memory: "

DISCUSSION Thomas Foerster 4 participants 4 messages Mar 27, 2001

lore
Share & tools
lore
#0 lore raw

Hello folks,

i have a realy strange and annyoing problem here.

I have a very busy webserver. Around 2 weeks ago i upgraded from 2.2.18 to 2.4.2-ac20 (SCSI-System, 512 MB RAM, 3 SCSI-Disks, P-III-500). Everything worked fine, the 2.4x Kernel boosted the box a lot :)

But suddenly the box was offline. One technical assistant from our ISP tried to reboot our server (he couldn't tell me if there had been any messages on the screen), but the system always hangs on

Freeing unused kernel memory: xxk freed

So we took the box home and tried to boot it from a bootdisk (generated as we installed the box, redhat 7.0). The SAME problem occurs ...

Freeing unused kernel memory: xxk freed

The system hangs (i've tried 2.2.18 AND 2.4.2-ac20, 2.2.16 is on our bootdisk). I thought it could be the swap-partition ... so we inserted an IDE Disk, installed a small system so that i was able to mount the SCSI-Disks. So i rebuild the swap-parition with
mkswap /dev/sda5 and activated it via swapon /dev/sda5 ... worked.

So i tried to boot it again from the SCSI-Disks ... nothing! The same odd failure ...

I've never hat such Problems before .. we've already changed every piece of hardware that's been in the box (except the disks, but theire looking ok because i can mount them and run e2fsck over it :) )

I need help, because we're already down for 3 Days now. What causes the system to hang at this point?? What must i do the be able to boot the system from the scsi-disks again?

Thanx a lot,
Thomas

#1 lore raw
Quoted 9 lines · On 03.27 Thomas Foerster wrote:

But suddenly the box was offline. One technical assistant from our ISP tried to reboot
our server (he couldn't tell me if there had been any messages on the screen), but the
system always hangs on

Freeing unused kernel memory: xxk freed

Try booting with init=/bin/bash, it looks like kernel gets a bad /sbin/init, and gets stuck. Perhaps the shutdown damaged init, it starts to run and get hung.

Signature · 4 lines
J.A. Magallon                                          #  Let the source
mailto:[email protected]                              #  be with you, Luke... 

Linux werewolf 2.4.2-ac25 #5 SMP Mon Mar 26 17:46:56 CEST 2001 i686
#2 lore raw
In reply to Thomas Foerster

From: "Thomas Foerster" <[email protected]>

Quoted 1 line

But suddenly the box was offline. One technical assistant from our ISP

tried to reboot

Quoted 1 line

our server (he couldn't tell me if there had been any messages on the

screen), but the

Quoted 3 lines

system always hangs on

Freeing unused kernel memory: xxk freed

I have a customer with the same symptom. They have stock Mandrake 7.2 (kernel 2.2.17-21mdk) and have installed serial-5.05 into it. The kernel boots to the Freeing message and hangs. I noticed ctl-alt-del still works, so I configured in magic sysrq (Documentation/sysrq.txt). sysrq-p allowed me to get the eip, which checking against the System.map I find is mod_timer(). A quick printk showed me that the kernel isn't hung, it's in an infinite loop, with mod_timer() being one of the calls in the loop.

YMMV, but hopefully this method can help you find your problem.

..Stu

#3 lore raw
In reply to Thomas Foerster
Quoted 5 lines

Freeing unused kernel memory: xxk freed

So we took the box home and tried to boot it from a bootdisk (generated as we installed the box, redhat 7.0). The SAME problem occurs ...

Quoted 8 lines

Freeing unused kernel memory: xxk freed

The system hangs (i've tried 2.2.18 AND 2.4.2-ac20, 2.2.16 is on our bootdisk). I thought it could be the swap-partition ... so we inserted an IDE Disk, installed a small system so that i was able to mount the SCSI-Disks. So i rebuild the swap-parition with
mkswap /dev/sda5 and activated it via swapon /dev/sda5 ... worked.

So i tried to boot it again from the SCSI-Disks ... nothing! The same odd failure ...

Boot off the ide disk and fsck the scsi disks. See if that helps