LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-09-2004, 06:02 PM   #1
Riddick
Member
 
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?

-Riddick
 
Old 11-09-2004, 06:07 PM   #2
65_289
Member
 
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, 06:08 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"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, 06:22 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 06:26 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
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, 04:51 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

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 04:52 AM.
 
Old 11-10-2004, 05:31 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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, 05:40 AM   #8
zba78
Member
 
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, 05:44 AM   #9
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
hi,

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...
 
  


Reply


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 08:00 PM
Installing Mandrake 9 with >= 1GB RAM shortyzms Linux - Newbie 1 09-23-2004 09:07 AM
Mandrake problem with 1GB RAM vandervagos Mandriva 3 11-16-2003 11:44 AM
Installing/Using Linux with 1GB of RAM HELP Carcustomz2002 Linux - Software 6 10-21-2003 01:10 PM
1GB ram support for suse 9.0 thegreatgatsby Linux - Distributions 5 10-15-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:58 AM.

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