LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2001, 11:16 AM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
Right size swap?


Hi evrybody

I have a question on swap partitioning .

1. what are the right size for swap : double ; the same ; as much as you want : more than one? My reason for asking this is because i sized my swap partition in different ways during many instalations and i realized that if you widen it for about 1Gb the system becomes very slow and instable(?). tell me if i'm wrong, please. Does slowliness have really something to do with swap size?

PS : Can i be disconnected from the net by someone on your site ? hacked (i mean)?
 
Old 11-10-2001, 11:21 AM   #2
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
dunno about the hacked thing. I doubt it though.

General rule of thumb that I've heard is twice the amount of RAM. Anymore than that and your system will bog down...I have 196mbRAM and 380mb Swap. I tried it with more, but found I got diminishing returns (ie greater slow down the bigger the swap).
 
Old 11-10-2001, 11:25 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
But then, if you're running 512 meg of RAM, then the chance of ever getting near a swap file a pretty small. well i've got 256, and my box has been up a few days, been compiling code etc, but i';ve onyl used 4meg of swap... 156mb currently doing sod all, could easily be used elsewhere.
 
Old 11-10-2001, 06:12 PM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Quote:
Originally posted by acid_kewpie
But then, if you're running 512 meg of RAM, then the chance of ever getting near a swap file a pretty small.
Very true...I've got 512MB and the swap almost doesn't need to be there. But agree that one should even if a small 100 or something.
 
Old 11-11-2001, 05:45 AM   #5
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
IT WORKED


Thanks alot people now i have just 512MB and things seem to work much faster.


PS I just installed MDRK 8.1 really nice i think i'll stick with it (gnome has lots of new stuff)
 
Old 11-11-2001, 10:09 AM   #6
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
Here's another take on the whole swap issue, written by someone in a local LUG: (thanks Alan, if you read this)

Both Linux Weekly Newsletter and Kernel Traffic News have covered swap
requirements of recent kernels so to get the exact story consult those
references. IIRC, it was a strong recommendation that 2.4.x kernels with
the "Rik" VM demand should always have swap >= 2x RAM. With the AA VM used
in kernel 2.4.10 and beyond (but not ac kernels, yet, which still have the
"Rik" VM), I believe this recommendation is relaxed, but I don't know how
far. With virtual memory systems, there are no hard and fast rules. Thus,
running without swap or a small swap that violates the "rules" is certainly
possible, but you could run into trouble if you ever start too many jobs so
it is not recommended in general.
 
Old 11-11-2001, 02:39 PM   #7
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
That's a good take. I think it comes down to preference though if you have enough RAM. If not then sure, swap away. Having 512M of ram and a swap of 115MB I have yet to even use the swap...So with newer higher performance machines it is debatable I think. But that's just my 2 pents...
 
Old 11-12-2001, 12:12 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
i was taught from a linux guru a long time ago, when making your swap space, it was then you usually doubled your swap space according to your ram size, in those days most had usually 16 or 32 was common, now with most machines using 256 or more, there is no need to double your swap of your ram as it will never be used totally and your wasting hard drive space then.
so to make it short, there is never a need to usually go over 100 megs of space for swap, it should always work fine using 100 meg to 125 meg. anything more is just waste.
 
  


Reply



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
Why should you give the size of the swap disk as twice the size of RAM vmniza Linux - Newbie 3 09-17-2004 02:13 AM
SWAP memory size ust Linux - Software 3 12-02-2003 06:42 PM
swap disk size Triple-B Slackware 2 02-10-2003 03:04 PM
swap size kodiakmook Linux - Software 6 01-05-2002 12:52 AM
Swap Size ajtaus Linux - General 3 12-19-2001 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 PM.

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