LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Setting Kernel parameters for SUSE10 on s390 (https://www.linuxquestions.org/questions/linux-general-1/setting-kernel-parameters-for-suse10-on-s390-510602/)

shweta pandey 12-15-2006 12:51 AM

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

tredegar 12-15-2006 06:02 AM

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,


All times are GMT -5. The time now is 06:56 PM.