LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-22-2007, 08:15 PM   #1
vas77
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
2.6.19 hangs after "Freeing unused kernel memory"


There are quite a few postings on the web with similar problems. I've tried fsck on the current disk partitions, a newer sysvinit rpm, etc. but still the system I have hangs after "Freeing unused kernel memory ...".

I have a 2.6.19 kernel on a standard x86 machine instead of the 2.6.10 kernel I had before.

I have some printfs in init.c (in sysvinit-2.78) but it never prints those.

Any suggestions on how to debug this further?

Thanks much in advance.
 
Old 02-25-2007, 11:25 AM   #2
hal_2001
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Mandriva, Red Hat, Fedora Core, MontaVista
Posts: 23

Rep: Reputation: 16
Sounds like you are able to build your own kernel ?

In the Linux source code, linux/init/main.c there is a function called init.

You could try adding some printk messages into init. Don't use printf as that is for user-space programs. printk should print to the console, note that it does have logging levels so watch out, KERN_ERR is the highest log level. However, all printks will appear in dmesg.

Remember that a hang may prevent the last few printk messages from being seen. You could try adding delays by using ssleep() to allow time for the printks to be output.

The "Freeing unused kernel memory" message is output by free_initmem() called from the init function. Perhaps the hang happens at the point of "unlocking the kernel" ? or maybe the init function can not spawn the init program off the root file system ?
 
Old 02-26-2007, 03:01 PM   #3
vas77
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks.

The problem was that the init (the parent of all) we had was modified from the default sysvinit and had something broken.

_Sri
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel hangs at "Freeing unused kernel memory :126k" raklo Linux - Kernel 1 09-22-2006 08:14 PM
xen hangs when freeing unused kernel memory camlinux Linux - Server 1 08-09-2006 03:34 PM
'Freeing Unused Kernel Memory: 224k Freed - Laptop Hangs nutnut Linux - Laptop and Netbook 1 10-21-2005 07:09 PM
hang after freeing unused kernel memory darkcloud Linux - Laptop and Netbook 13 04-11-2005 10:18 PM
Hang after "Freeing unused Kernel Memory" tmg Linux - Distributions 0 05-06-2003 07:27 PM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration