Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

How do I limit the amount of ram to 1536M?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
DingbatCA
Guru
Guru
User avatar
Posts: 384
Joined: Wed Jul 07, 2004 2:17 pm
Location: Portland Or

How do I limit the amount of ram to 1536M?

  • Quote

Post by DingbatCA » Mon Aug 31, 2009 4:01 pm

How do I limit the amount of ram to 1536M?
The system has 4096M I want the system to only see 1536M

Code: Select all

cat /proc/meminfo 
MemTotal:      3556296 kB
...

Code: Select all

title Gentoo 2.6.30-gentoo-r1
root (hd0,0)
kernel /linux-2.6.30-gentoo-r1 root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 mem=1536M max_cpus=2
Top
Roman_Gruber
Advocate
Advocate
Posts: 3854
Joined: Tue Oct 03, 2006 8:43 am
Location: Austro Bavaria

  • Quote

Post by Roman_Gruber » Mon Aug 31, 2009 4:03 pm

Hi,

You are right its a boot parameter, but I think its mem, ...
Sry I also have to check google now
Top
DingbatCA
Guru
Guru
User avatar
Posts: 384
Joined: Wed Jul 07, 2004 2:17 pm
Location: Portland Or

  • Quote

Post by DingbatCA » Mon Aug 31, 2009 8:46 pm

Any luck?
Top
poly_poly-man
Advocate
Advocate
User avatar
Posts: 2477
Joined: Wed Dec 06, 2006 9:59 pm
Location: RIT, NY, US
Contact:
Contact poly_poly-man
Website

  • Quote

Post by poly_poly-man » Mon Aug 31, 2009 8:53 pm

any reason why?
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see [topic]838248[/topic]. Potentially still a WiP.
Top
jongeek
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Fri Jul 13, 2007 11:12 pm
Location: The Humid, Festering Swamps of Florida

Re: How do I limit the amount of ram to 1536M?

  • Quote

Post by jongeek » Mon Aug 31, 2009 9:04 pm

DingbatCA wrote:

Code: Select all

title Gentoo 2.6.30-gentoo-r1
root (hd0,0)
kernel /linux-2.6.30-gentoo-r1 root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 mem=1536M max_cpus=2
The kernel line in your grub config should work fine. I've used the "mem=" option on a couple of machines to test low-memory conditions. I just tested on a box in my cube, and it worked fine. Its also listed in /usr/src/linux/Documentation/kernel-parameters.txt.

What does

Code: Select all

cat /proc/cmdline
say after you've booted using the grub config you listed ?
Top
DingbatCA
Guru
Guru
User avatar
Posts: 384
Joined: Wed Jul 07, 2004 2:17 pm
Location: Portland Or

  • Quote

Post by DingbatCA » Mon Aug 31, 2009 9:19 pm

Code: Select all

cat /proc/cmdline 
root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 selinux=0
WTF?!
Top
jongeek
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Fri Jul 13, 2007 11:12 pm
Location: The Humid, Festering Swamps of Florida

Re: How do I limit the amount of ram to 1536M?

  • Quote

Post by jongeek » Tue Sep 01, 2009 10:07 am

DingbatCA wrote:

Code: Select all

title Gentoo 2.6.30-gentoo-r1
root (hd0,0)
kernel /linux-2.6.30-gentoo-r1 root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 mem=1536M max_cpus=2
What else is in your grub config ? Can you post the whole file ?
Top
DingbatCA
Guru
Guru
User avatar
Posts: 384
Joined: Wed Jul 07, 2004 2:17 pm
Location: Portland Or

  • Quote

Post by DingbatCA » Tue Sep 01, 2009 4:28 pm

cat /boot/grub/grub.conf

Code: Select all

default=0
serial --unit=0 --speed=38400
terminal --timeout=2 console serial

title Gentoo 2.6.30-gentoo-r1
root (hd0,0)
kernel /linux-2.6.30-gentoo-r1 root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 mem=1536M max_cpus=2 
cat /proc/cmdline

Code: Select all

root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 selinux=0
Why is my mem argument and my CPU argument not working, not even showing up!
Top
jongeek
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Fri Jul 13, 2007 11:12 pm
Location: The Humid, Festering Swamps of Florida

  • Quote

Post by jongeek » Tue Sep 01, 2009 5:09 pm

You don't happen to also have LILO installed, do you ? I can't think of any reason why your grub config would not be honored, unless it is not grub that is booting your system.
Top
DingbatCA
Guru
Guru
User avatar
Posts: 384
Joined: Wed Jul 07, 2004 2:17 pm
Location: Portland Or

  • Quote

Post by DingbatCA » Tue Sep 01, 2009 5:33 pm

This is a clean install. So there are no strange packages installed.
Top
jongeek
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Fri Jul 13, 2007 11:12 pm
Location: The Humid, Festering Swamps of Florida

  • Quote

Post by jongeek » Tue Sep 01, 2009 5:46 pm

Bizarro. Two other things I thought of.

1) Is menu.lst a symlink pointing to grub.conf (the way it should be), or are they two separate files ? Maybe its not reading the grub.conf you think it is.

Code: Select all

ll /boot/grub/menu.lst
lrwxrwxrwx 1 root root 9 2008-11-07 08:49 /boot/grub/menu.lst -> grub.conf
2) Do you have more than one Linux install on your computer ? Its possible grub is reading the grub.conf from a different partition if you have some sort of multi-boot setup.

Neither of these sound likely from what you've posted, but I'm grasping at straws here.
Top
DingbatCA
Guru
Guru
User avatar
Posts: 384
Joined: Wed Jul 07, 2004 2:17 pm
Location: Portland Or

  • Quote

Post by DingbatCA » Tue Sep 01, 2009 5:49 pm

single boot, nothing special

Code: Select all

ls -la /boot/grub/ | grep menu.lst
lrwxrwxrwx 1 root root     11 Aug 18 16:51 menu.lst -> ./grub.conf
Top
platojones
Veteran
Veteran
User avatar
Posts: 1602
Joined: Wed Oct 23, 2002 10:48 pm
Location: Just over the horizon

  • Quote

Post by platojones » Tue Sep 01, 2009 6:46 pm

DingbatCA wrote:

Code: Select all

cat /proc/cmdline 
root=/dev/md3 vga=0x318 console=tty0 console=ttyS0,38400 selinux=0
WTF?!
It's pretty obvious it dropped the second line....looks to me like you have a newline character at the end of the first line...put it all on one line and let it wrap.
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

  • Quote

Post by cyrillic » Tue Sep 01, 2009 9:02 pm

HINT : Look at your grub.conf with /boot mounted, then look at your grub.conf with /boot unmounted.
Top
Post Reply

14 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy