Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th November 2012, 07:56 PM
Syncopated Offline
Registered User
 
Join Date: Oct 2011
Posts: 4
linuxchrome
memmap option causes inexplicable hang

My system has 16GB RAM. With memtest86+, I determined that some RAM between 12621M and 12622M is bad, so I tried to block it out using the memmap option on the linux line in grub2. I did so by adding this option to the 'linux' line at bootup:

memmap=4M$12620M

The reason I blocked a larger chunk away than just 1k or 1M is just in case there is any kernel pickiness about what memory boundary granularity is acceptable, and 4M seems like an absolute largest reasonable value for such things.

Anyway, when I tried to boot, the machine got stuck at 'Loading initial ramdisk ...".

Any idea what's going on? Why would this additional option cause a hang?
Reply With Quote
  #2  
Old 6th November 2012, 01:01 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: memmap option causes inexplicable hang

Test your memory modules separately (one at a time) and replace the faulty memory module ;-)
Reply With Quote
  #3  
Old 6th November 2012, 10:08 PM
Syncopated Offline
Registered User
 
Join Date: Oct 2011
Posts: 4
linuxchrome
Re: memmap option causes inexplicable hang

I know that's one approach. It's not available to me because the replacement hasn't arrived. I'm looking for a real solution to the question.
Reply With Quote
  #4  
Old 7th November 2012, 01:53 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
linuxfirefox
Re: memmap option causes inexplicable hang

Quote:
Originally Posted by george_toolan View Post
Test your memory modules separately (one at a time) and replace the faulty memory module ;-)
Neither a borrower nor a lender be.
A stitch in time saves nine.
Use yum clean, uninstall pulse and try again.

This is the george_toolan trite-advice-to-rack-up-post-count thread - no ?
Luvya George, but why post such drivel ?
==========

The hang in initrd when you add this kernel option suggests that the kernel is failing on that option (as in a kernel bug). Does it get any farther if you remove the option ?

OK I tried on a VM and I found something very interesting.
If I add "memtest=4M$500M" in the grub.cfg file ,then the /proc/cmdline shows "memtest=4MM" !!! It seems grub2 is gobbling up the "$500" part.

Changing this to "memtest=4M\$500M" produces the correct result.
So backslash-quotng the '$' dollar sign is needed.


Also - if the memory error is pretty reliable you might want to try "memtest=n" to perform n' memory tests and map out bad pages.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 7th November 2012 at 01:55 AM.
Reply With Quote
  #5  
Old 7th November 2012, 02:26 AM
Syncopated Offline
Registered User
 
Join Date: Oct 2011
Posts: 4
linuxchrome
Re: memmap option causes inexplicable hang

It works fine without the option. Do you mean that when I edit the line in grub during bootup, I have to escape the '$' by putting a '\' in front? Let me try that.
Reply With Quote
  #6  
Old 7th November 2012, 02:31 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
linuxfirefox
Re: memmap option causes inexplicable hang

Yes, it's also needed when you modify grub from the command line
Verify with
cat /proc/cmdline
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #7  
Old 7th November 2012, 12:05 PM
Syncopated Offline
Registered User
 
Join Date: Oct 2011
Posts: 4
linuxchrome
Re: memmap option causes inexplicable hang

The actual option I ended up adding to /proc/cmdline is 'memmap=1m$12621m'. In order to make grub2 use this, I have a line in /etc/default/grub that looks like this:
GRUB_CMDLINE_LINUX="... memmap=1m\\\$12621m ..."

Then, when I run grub2-mkconfig, the generated cfg has 'memmap=1m\$12621m', which is also what shows up if I try to edit the command during boot. After I boot with this, /proc/cmdline has 'memmap=1m$12621m'. Also, /proc/meminfo suggests that I've achieved the intended effect.

(The "..." just represents other things in the line.)

So, in summary, all this confusion is about the escaping requirements in grub2.

Thanks, stevea.
Reply With Quote
Reply

Tags
hang, inexplicable, kernel, memmap, memory, option

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC 10 Hang azharaga Linux Chat 7 2nd June 2009 01:45 PM
FC4 hang every day marxiano533 Servers & Networking 2 7th July 2006 09:27 PM
Inexplicable CD player problem - help! Chris NS Using Fedora 6 23rd December 2005 11:06 PM
Inexplicable freeze on X JayS Using Fedora 14 14th March 2005 03:09 PM


Current GMT-time: 20:47 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat