LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-18-2003, 01:43 PM   #1
whitefox
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: slackware 9.1
Posts: 55

Rep: Reputation: 15
why swap should be twice of RAM?


why swap should be twice of RAM?

Thanks a lot.
 
Old 04-18-2003, 01:52 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
it shouldn't be, that rule was based around systems in the days when a stick of ram cost half a months salary... forget it. if you have the ram you won't need the swap... alwasy a good idea to have some anyway... a coupla hundred megs can't hurt...
 
Old 04-18-2003, 01:52 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
In short - it doesn't need to be. It was a sort of unwritten rule that people followed as a guide when creating swap partitions. If you have plenty of ram 1GB+ then you prbably don't need 2GB swap. Swap files are useful though when working with large amounts of data though - like large graphics etc. There was a similar thread not that long ago.
http://www.linuxquestions.org/questi...658#post275658
 
Old 04-18-2003, 02:08 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
Quote:
why swap should be twice of RAM?
LOL
That's only one of many rules of thumb.

Here are the 2 things I wresle with when deciding how much swap to use.
1. If you don't have enough swap your programs or operating system could freeze or crash.
2. If you have too much swap, you waste disk space.

I have heard the 2 times rule (4 times on really low RAM), 2 times up to 256MB (then equal or half, down to 256), and that people doing heavy compiling use 1GB or more.

Consider, how much RAM you have, how much do your programs and OS require.

Say you have 256MB RAM and a 40GB hard drive.
What's the difference between using 256 or 512? Not much.

Good Luck.
 
Old 04-18-2003, 02:08 PM   #5
whitefox
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: slackware 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
yeah, that helps a lot.

I heard that for linux gui is not built in?
Even though I donot exactly know what it means, i think it implies i may have the freedom to select GUIs. if so, what are those available options, and how much memory do they need( is swap necessary)?

Thanks a lot.
 
Old 04-18-2003, 02:14 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Swap is not neccessary but nobody would advise you not to use it. If you have a large HDD just use a gig and be done with it.

Out of the GUIs - I prefer KDE but I am starting to use Enlightenment now.

Last edited by david_ross; 04-18-2003 at 02:15 PM.
 
Old 04-18-2003, 02:15 PM   #7
whitefox
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: slackware 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
is there any website which describes those popular GUIs?

Thanks, i am just keen to learn.
 
Old 04-18-2003, 02:21 PM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
http://xwinman.org/

http://www.linux.org/apps/all/GUI/Window_Managers.html
 
Old 04-18-2003, 02:28 PM   #9
whitefox
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: slackware 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
thanks.
 
Old 04-18-2003, 05:27 PM   #10
contrasutra
Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
Unlike Windows, which needs Swap, no matter how much RAM you have, Linux might not use any swap at all.

I have 256MB of RAM, and when just Word processing, 2d games, and other basic stuff, my swap is at 0.

I have 200MB of swap, and UT2003 runs great, and thats a pretty resource intensive game.
 
Old 04-18-2003, 05:58 PM   #11
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
A gig of swap?!?!?! no, thats insane. For swap do this.
500 ram - no swap
256 ram - 128 swap
128 ram - 256 swap

I have 256 ram and have never seen more than 40mb of swap used. Right now I have 3 days uptime and used swap in 1k
 
Old 04-19-2003, 11:26 AM   #12
Gnute
Member
 
Registered: Apr 2003
Location: Kuwait
Distribution: NetBSD x86; Slackware Linsux i686 (A billion kilometers away)
Posts: 101

Rep: Reputation: 15
i used 5GB for swap, what's the punrpose? Virtual Memory?
 
Old 04-19-2003, 12:39 PM   #13
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
gnute, are you serious?? yes, swap is just extra incase the ram fills up. but it really doesnt get touched. So if you have 5 gigs swap, thats about 4.75 gigs wasted to nothing.
 
Old 04-19-2003, 01:54 PM   #14
Gnute
Member
 
Registered: Apr 2003
Location: Kuwait
Distribution: NetBSD x86; Slackware Linsux i686 (A billion kilometers away)
Posts: 101

Rep: Reputation: 15
Quote:
Originally posted by wr3ck3d
gnute, are you serious?? yes, swap is just extra incase the ram fills up. but it really doesnt get touched. So if you have 5 gigs swap, thats about 4.75 gigs wasted to nothing.
I open over 20 Browser Windows, And A Whole Lot Of Software, You DON'T KNOW How Much I Use PCs, so you can see for yourself why i need so much swap.
 
Old 04-19-2003, 02:00 PM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
How much of it do you actually use though?
 
  


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
Use RAM as swap??? oneandoneis2 Linux - General 3 08-19-2004 04:48 AM
Not using RAM and Swap much ? ruwach Linux - Hardware 2 06-11-2004 07:26 AM
RAM and Swap shiny_spoon Linux - General 5 01-13-2004 02:27 PM
No SWAP but all RAM!! hari_seldon99 Linux - General 3 01-13-2004 10:48 AM
Swap and RAM ? mikeshn Linux - General 1 09-18-2002 09:33 PM


All times are GMT -5. The time now is 08:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration