You are not logged in.

#1 2009-02-20 07:08:10

DreamAxe
Member
Registered: 2009-02-19
Posts: 22

Disable swap in rc.sysinit on eee with no swap partition?

I'm trying to tweak my boot speed on the Asus eee. The root partition is formated as ext2 and I didn't create a swap partition.
Inside rc.sysinit I found the following line:

status "Activating Swap" /sbin/swapon -a

Since I have no swap partition, is it nessesary to have this line or can I just comment it out?

Offline

#2 2009-02-20 07:24:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Disable swap in rc.sysinit on eee with no swap partition?

From "man swapon"

       -a     All devices marked as ``swap'' in /etc/fstab are made available,
              except for those with the ``noauto'' option.  Devices  that  are
              already being used as swap are silently skipped.

So, given you have no partitions marked as swap, this is doing nothing.

Offline

#3 2009-02-20 08:07:13

DreamAxe
Member
Registered: 2009-02-19
Posts: 22

Re: Disable swap in rc.sysinit on eee with no swap partition?

Thanks, I'll just disable it then

Offline

#4 2009-02-21 00:57:29

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: Disable swap in rc.sysinit on eee with no swap partition?

DreamAxe wrote:

Thanks, I'll just disable it then

I think you missed what Allan said there. You don't have to do anything at all, as that line will do nothing. It is best not to modify rc.sysinit as it isn't backed up...

Edit: and your total time savings from commenting this line out is going to be like 0.01 seconds, if that. It isn't worth it. Using a custom kernel and limiting the amount of work udev has to do would be much more effective; booting my Eee using my custom kernel takes ~12 seconds to an X login screen from hitting the power button.

Offline

Board footer

Powered by FluxBB