Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 11-09-2004, 07:02 PM   #1
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
1Gb or Ram - Do I need Swap?

Is swap really necessary if I have 1Gb of Ram?

Old 11-09-2004, 07:07 PM   #2
Registered: May 2002
Distribution: Ubuntu 5.04, Kanotix
Posts: 163

Rep: Reputation: 30
I would say probably. Our IBM P650 servers at work have swap space, and they have 8 1.45Ghz POWER4 processors with 24GB of RAM. If they need it, I bet you might too.
Old 11-09-2004, 07:08 PM   #3
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,864

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"Is swap really necessary if I have 1Gb of Ram?"

Probably not. I have 512M. Once I installed a new version of SuSE and forgot to set up swap. I ran quite nicely for about two weeks before I noticed that swap was missing and put it in /etc/fstab.

Steve Stites
Old 11-09-2004, 07:22 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Some applications assume that there is a swap partition. Also, linux will move memory which hasn't been accessed for a while to swap to free up real memory for active processes. You could make a smaller swap partition if you want, perhaps just 500MB.
Old 11-09-2004, 07:26 PM   #5
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
I would say No. Swap was important when 32Mg RAM was considered a big deal, but these days, if you've got say 256Mg of RAM, your actual swap usage is probably close to zero. With 1G of RAM, unless you work for NASA and will be launching the Space Shuttle from your PC, I'd bet cash money that swap will go unused.

I'd create a minimal (128Mg) swap space just in case, but realistically I doubt you'd ever use it. Keep in mind that swap only comes into play when your RAM is pushed past capacity, and the system is forced to write memory pages out to disk. With 1G RAM, that scenario is highly unlikely. -- J.W.
Old 11-10-2004, 05:51 AM   #6
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
To 99% I would say no, but I've already had a badly programmed, memory eating application, that filled my RAM and SWAP (512 + 1GB) quite fast. So if you do not lack HDD space, why not beeing on the safe side with a 500MB swap space?

EDIT: Okay, I must admit it was a very specialized application and had to deal with the data from a whole genome

Last edited by abisko00; 11-10-2004 at 05:52 AM.
Old 11-10-2004, 06:31 AM   #7
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
make a 1 meg swap file just for fun and you can watch if it ever gets used with top. that way you'll have a gig of ram and a meg of swap.
# dd if=/dev/zero of=/swapfile.swp bs=1M count=1
# mkswap /swapfile.swp
# swapon /swapfile.swp
# top
Old 11-10-2004, 06:40 AM   #8
Registered: Oct 2004
Location: Birmingham, England
Distribution: OpenSuSE 10.2
Posts: 50

Rep: Reputation: 15
I've got 512 MB Ram and 1gb swap. To be honest I can't remember the last time I saw my swap usage rise above 0%.

And if you're using a lightweight window manager/desktop environment (e.g. XFce, fluxbox) then you definitely won't need a swap
Old 11-10-2004, 06:44 AM   #9
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 32

the suse 9.0 administration guide suggests that you should never do without any swap memory because of the use of hard-drive memory buffers; however, with 1GB of RAM, you should be able to shrink the size of swap to, say, 64MB, possibly less - it depends on what sort of apps you hope to run...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sarge + 1GB RAM how? KaraK Debian 9 01-07-2005 09:00 PM
Installing Mandrake 9 with >= 1GB RAM shortyzms Linux - Newbie 1 09-23-2004 10:07 AM
Mandrake problem with 1GB RAM vandervagos Mandriva 3 11-16-2003 12:44 PM
Installing/Using Linux with 1GB of RAM HELP Carcustomz2002 Linux - Software 6 10-21-2003 02:10 PM
1GB ram support for suse 9.0 thegreatgatsby Linux - Distributions 5 10-15-2003 01:22 PM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration