LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2006, 12:51 AM   #1
shweta pandey
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
Setting Kernel parameters for SUSE10 on s390


Hey,
I need to lower the memory available to the Linux kernel.The kernel-parameters.txt in the Linux kernel documentation for information on using the mem=nn parameter wasnt of much help.

Its a SUSE10 system on s390...

-Shweta
 
Old 12-15-2006, 06:02 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I think you can pass that parameter to the kernel at boot time.
I do not know if you are using lilo or grub as your bootloader, but if lilo you'll need to edit /etc/lilo.conf and add that to your kernel boot line eg
Code:
default="MDK9.1-hdb3-MWA"
boot=/dev/hda
map=/boot/map
keytable=/boot/uk.klt
prompt
nowarn
timeout=20
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.4.21-0.13MWAmdk
        label="MDK9.1-hdb3-MWA"
        root=/dev/hdb3
        initrd=/boot/initrd-2.4.21-0.13MWAmdk.img
        append="max_scsi_luns=7 noapic nolapic devfs=mount acpi=off resume=/dev/hdb2"
        vga=788
        read-only
becomes
Code:
default="MDK9.1-hdb3-MWA"
boot=/dev/hda
map=/boot/map
keytable=/boot/uk.klt
prompt
nowarn
timeout=20
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.4.21-0.13MWAmdk
        label="MDK9.1-hdb3-MWA"
        root=/dev/hdb3
        initrd=/boot/initrd-2.4.21-0.13MWAmdk.img
        append="max_scsi_luns=7 noapic nolapic devfs=mount acpi=off resume=/dev/hdb2 mem=nn"
        vga=788
        read-only
Then re-run /sbin/lilo
Then reboot.
I do not know what number you need to put as "nn" - you'll have to experiment!

For grub, the procedure should be similar:
Edit the file /boot/grub/menu.lst
Find the bit that refers to the kernel you are booting and add the mem=nn bit
So
Code:
kernel          /vmlinuz-2.6.15-27-386 root=/dev/hda5 ro quiet splash vga=normal
Becomes:
Code:
kernel          /vmlinuz-2.6.15-27-386 root=/dev/hda5 ro quiet splash vga=normal mem=nn
Again, I do not know what you need to put as "nn"
Then just reboot
Edit: You should check /var/log/messages to see if the parameter was recognised after the next boot,

Last edited by tredegar; 12-15-2006 at 06:04 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting default parameters for commands elviswarhol Linux - Newbie 3 12-06-2006 05:18 PM
Problem pam_radius_auth and ssh on S390/S390x Sles 8 adgi SUSE / openSUSE 0 08-05-2006 08:27 AM
setting nv -> nvidia results freez - suse10 SmallDot Linux - Hardware 12 05-06-2006 03:03 PM
Setting up DNS for domain - suse10 tangy Linux - Networking 1 01-31-2006 10:56 AM
eth0 losing link shortly after 'setting network parameters' on boot scylla Linux - Networking 1 04-13-2005 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration