Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: paskali on June 03, 2013, 05:19:05 PM
-
Hi all, i have a simple question about the boot option code "nozswap".
I boot my tiny core linux by lilo on a sistem with 768Mb of ram and a swap file of 384Mb.
As follow:
boot = /dev/sda
root = /dev/sda3
lba32
compact
prompt
timeout = 300
vga = 773
initrd = /boot/core.gz
read-only
image = /boot/vmlinuz
label = Normal
append = "tce=sda1 waitusb=0 swapfile=sda2 home=sda2 opt=sda2 norestore kmaps=qwerty/us-acentos
noswap nodhcp noutc host=zemir tz=CET-1CEST,M3.5.0,M10.5.0/3 user=paskali laptop nozswap multivt
acpi_backlight=vendor quiet"
image = /boot/vmlinuz
label = Embed
append = "waitusb=0 base norestore superuser noswap nodhcp noutc tz=CET-1CEST,M3.5.0,M10.5.0/3
embed laptop nozswap multivt acpi_backlight=vendor quiet"
image = /boot/vmlinuz
label = Restore
append = "tce=sda1 restore=sda1 waitusb=0 swapfile=sda2 home=sda2 opt=sda2
kmaps=qwerty/us-acentos noswap nodhcp noutc host=zemir tz=CET-1CEST,M3.5.0,M10.5.0/3 user=paskali
laptop nozswap multivt acpi_backlight=vendor quiet"
other = /dev/sda1
label = FreeDOS
As well as you see, i select "nozswap" boot option.
My question is simple:
Can i get any sort of advantage by omitting this boot code?
-
The only advantage would be faster swapping, but this will be at the expense of RAM.
I see absolutely no reason for waitusb=0.
-
And I see no reason for noswap.
-
Ok thanks, i have guessed that.
This configuration i have copy and paste from an old system with a previous tinycore version in which i did have some problem with my usb pendrive modem and that i have solved, strangely, with waitusb=0;
as well as i did have problems with a pcmcia usb port adding card.
of course, noswap should be useless, but i do not know if it makes the boot process more quickly by avoiding to scan swap partition.
May be swapfile code is equivalent in the my case.
-
Hi paskali
... if it makes the boot process more quickly by avoiding to scan swap partition.
Boot with the noswap code. Then enter:
sudo /sbin/swapon -a
at the command line and judge for yourself if you think it takes too long.
-
Hi paskali
... if it makes the boot process more quickly by avoiding to scan swap partition.
Boot with the noswap code. Then enter:
sudo /sbin/swapon -a
at the command line and judge for yourself if you think it takes too long.
I do not have swap partition on my computer; i have made an empty file on my ext2 linux partition (in which i have opt, home and boot directories only)
sudo dd if=/dev/zero of=tc.swp bs=1M count=384
then i have made:
sudo mkswap tc.swp
I have noticed that lilo shows an error if i boot (from dos with linld or loadlin) without nozswap and/or noswap when i try to install it on mbr.
I dislike grub, i do not know to use it and i do not really want to learn that. I have always used lilo and i always will use it.
-
some problem with my usb pendrive modem and that i have solved, strangely, with waitusb=0;
as well as i did have problems with a pcmcia usb port adding card.
Note relevant change in 5.x
http://forum.tinycorelinux.net/index.php/topic,14983.msg86687.html#msg86687
of course, noswap should be useless, but i do not know if it makes the boot process more quickly by avoiding to scan swap partition.
Point taken, I didn't think that far, noswap cannot harm, disregard my comment above please.