WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: nozswap question  (Read 4571 times)

Offline paskali

  • Jr. Member
  • **
  • Posts: 71
nozswap question
« 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:
Code: [Select]
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?
« Last Edit: June 17, 2013, 06:38:58 AM by paskali »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: nozswap question
« Reply #1 on: June 03, 2013, 05:29:08 PM »
The only advantage would be faster swapping, but this will be at the expense of RAM.
I see absolutely no reason for waitusb=0.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: nozswap question
« Reply #2 on: June 04, 2013, 12:07:47 AM »
And I see no reason for noswap.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline paskali

  • Jr. Member
  • **
  • Posts: 71
Re: nozswap question
« Reply #3 on: June 04, 2013, 07:00:06 AM »
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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: nozswap question
« Reply #4 on: June 04, 2013, 10:15:33 AM »
Hi paskali
Quote
... if it makes the boot process more quickly by avoiding to scan swap partition.
Boot with the  noswap  code. Then enter:
Code: [Select]
sudo /sbin/swapon -aat the command line and judge for yourself if you think it takes too long.

Offline paskali

  • Jr. Member
  • **
  • Posts: 71
Re: nozswap question
« Reply #5 on: June 04, 2013, 12:02:42 PM »
Hi paskali
Quote
... if it makes the boot process more quickly by avoiding to scan swap partition.
Boot with the  noswap  code. Then enter:
Code: [Select]
sudo /sbin/swapon -aat 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)

Code: [Select]
sudo dd if=/dev/zero of=tc.swp bs=1M count=384
then i have made:

Code: [Select]
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.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: nozswap question
« Reply #6 on: June 04, 2013, 12:03:37 PM »
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

Quote
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.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)