How to disable a Ram Swap permanently
Lawrence Tsang
tkwinfo at gmail.com
Sun Mar 7 13:40:06 UTC 2010
Hi All,
Thanks for the answers.
Following Tony's link, I have now updated my initramfs and have removed
the compcache (Ram Swap) permanently. [I might have installed some packages
(e.g casper, etc) that might have changed my initramfs while not noticing
me.]
However, using "swapon -s", it still tells me that my Swap Partition
has a priority of -1.
Does this negative priority hurt? I could see that while my 2G on-board
ram has a 1.6G utilization, my 2G Swap Partition only takes up about 10M.
Does this negative priority let my system use less swap space?
Any suggestion.
Regards
Lawrence
On Sun, Mar 7, 2010 at 7:15 PM, Tony Arnold <tony.arnold at manchester.ac.uk>wrote:
> Lawrence,
>
> Maybe this will help:
>
>
> http://odzangba.wordpress.com/2009/10/12/how-to-disable-compcache-and-fix-swap-errors-in-ubuntu-9-04/
>
> Regards,
> Tony.
>
> Lawrence Tsang wrote:
> > Hi Steve and All,
> >
> > In fact, I have added a line in /etc/fstab to install my Swap
> > Partition. The listing of my fstab is :
> >
> > # /etc/fstab: static file system information.
> > proc /proc proc defaults 0 0
> > UUID=5a715fd8-c9d0-4523-a213-eff956d2d798 / ext3
> > errors=remount-ro 0 1
> > UUID=a5662716-31ad-4c28-abab-f0e323d5ae2c none swap sw
> > 0 0
> > /dev/scd0 /media/cdrom0 udf,iso9660
> > user,noauto,exec,utf8 0 0
> >
> > These settings in fstab install my Swap Partition with -1 priority
> > and would not let my Ram Swap go away.
> >
> > Any concrete procedure to disable the Ram Swap?
> >
> > Regards
> > Lawrence
> >
> >
> > On Sun, Mar 7, 2010 at 6:46 PM, Steve <yorvik.ubunto at googlemail.com
> > <mailto:yorvik.ubunto at googlemail.com>> wrote:
> >
> > On Sun, 07 Mar 2010 10:36:01 -0000, Lawrence Tsang
> > <tkwinfo at gmail.com <mailto:tkwinfo at gmail.com>>
> > wrote:
> >
> > > Hi All,
> > >
> > > Originally I am using Ubuntu Karmic with no swap partition /
> swap
> > > file.
> > > The Ubuntu system automatically initializes a 500M Ram Swap for me.
> > > Recently
> > > I manage to create a 2G Swap Partition and install the Swap
> > Partition by
> > > adding a line in /etc/fstab.
> > >
> > > However, after booting my system, I find that there are in
> fact 2
> > > swaps
> > > on my system --- the Ram Swap and the Swap Partition. The listing
> > after
> > > running the "swapon -s" command is :
> > >
> > > root at tkwinfo-desktop:/home/tkwinfo# swapon -s
> > > Filename Type Size Used Priority
> > > /dev/ramzswap0 partition 515288 0
> > 100
> > > /dev/sdc3 partition 2216960 0
> > -1
> > >
> > > The Swap Partition (/dev/sdc3) has only a priority of -1
> > while the
> > > Ram
> > > Swap (/dev/ramzswap0) is still installed.
> > >
> > > I want to know that :
> > > (1) Is the Ram Swap still necessary? If not, how to remove it.
> > > (2) How to increase the priority of the Swap Partition.
> > >
> > > Any idea? Thanks in advance.
> > >
> > > Regards
> > > Lawrence
> > >
> > All you need to do is edit /etc/fstab
> >
> > --
> > Steve
> >
> > Yorvyk
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com <mailto:ubuntu-users at lists.ubuntu.com>
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> >
>
> --
> Tony Arnold, Tel: +44 (0) 161 275 6093
> Head of IT Security, Fax: +44 (0) 870 136 1004
> University of Manchester, Mob: +44 (0) 773 330 0039
> Manchester M13 9PL. Email: tony.arnold at manchester.ac.uk
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100307/9857aa6e/attachment.html>
More information about the ubuntu-users
mailing list