Fedora Linux Support Community & Resources Center
  #1  
Old 21st August 2010, 07:01 PM
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 727
linuxfirefox
reduce the size of swap

Hello
my laptop has 2Gb of ram, 4Gb of swap, 40Gb hdd and an intel pentium 1.40GHz cpu, even when compiling stuff or maxing out everything the 4Gb of swap is never touched, with such a small hdd I'd like to reduce the swap to about 2Gb (just in case) to free up some space, does anyone know what commands/tools are available to accomplish this ?
All help is graciously received
__________________
fedora 14 fluxbox and gnome2 hp compaq nx9030 laptop 2Gb ram, helicopter landing pad, jacuzzi, mini fridge, gateway to alternative dimension
Reply With Quote
  #2  
Old 21st August 2010, 07:20 PM
William Haller Online
Registered User
 
Join Date: Jul 2005
Age: 54
Posts: 1,084
linuxfedorakonqueror
Re: reduce the size of swap

If your partitions were laid out with lvm, then consult that suite of commands for more information (lvmreduce and the like). I must mention, though, that if you ever decide to use hibernate or suspend, you may well need the swap space, even if not during normal daily operations.

The space recovered, however, may well not be able to be used as anything other than a 2 G partition depending on how the partitions were laid out. That is, it may not be in a spot where the freed space can be combined with another existing partition. My first hard drive was 40 MBytes and we were happy to have that, so 2 GB still seems like a lot to me, but today it can vaporize pretty fast.
Reply With Quote
  #3  
Old 21st August 2010, 07:58 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,917
linuxfedorafirefox
Re: reduce the size of swap

He can still hibernate so long as swap is the same size as DRAM or larger.

I think this is a good idea. If you ever tarted thrashing for memory so muchthat you needed 4GB you system ywould be pretty unpleasant to use. That's OK for a cheapie server but not a desktop,

LVM is always a thorn in the side - but I suggest (assuming LVM, that you disable the swap (see the swapon, swapoff commands) and then use 'system-config-lvm' command (part of the system-config-lvm package)to resize, then perhas "mkswap -U ,... /dev/..." to re-create the swap withthe corrcet UUID (see your /etc/fstab for the UUID).
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #4  
Old 22nd August 2010, 01:31 PM
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 727
windows_xp_2003firefox
Re: reduce the size of swap

Thank you gentlemen, I didn't think of hibernation or suspend although I think I've disabled hibernation anyway, I'll look into lvmreduce etc, I remember trying to view my lvm partitions with gparted in puppy linux but lvm is not supported
Quote:
The space recovered, however, may well not be able to be used as anything other than a 2 G partition depending on how the partitions were laid out. That is, it may not be in a spot where the freed space can be combined with another existing partition.
I was afraid of that, I'll post back if I can basically move some swap to the file system
__________________
fedora 14 fluxbox and gnome2 hp compaq nx9030 laptop 2Gb ram, helicopter landing pad, jacuzzi, mini fridge, gateway to alternative dimension
Reply With Quote
Reply

Tags
reduce, size, swap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How reduce picture file size in linux ha62607 Using Fedora 8 12th March 2010 02:27 PM
Custom compiled kernel modules is always much bigger, How to reduce its size? yafrank Using Fedora 3 3rd May 2007 05:41 PM
how to reduce the picture size first007boy Using Fedora 2 12th March 2007 08:11 PM
How to reduce Ghost Image file size maxl1961 Using Fedora 0 13th February 2007 05:43 PM


Current GMT-time: 14:40 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Naivasha - Rajpipla Travel Photos - Haiti Photos