LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-03-2003, 02:45 PM   #1
pine0279
LQ Newbie
 
Registered: Jul 2003
Location: On the floor.
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
swap part. question


I am using 384 meg, (128 x 3), of RAM. I read where the swap partition should equal the amount of RAM times two, (384 x 2 = 768). Do I make a single swap partition of 768 meg? Or do I break it up into seperate swap partitions of 128 meg each, (128 x 6 =768)?

I also read somewhere that a swap partition should not be larger than 128 meg. If you wanted more than a 128 meg swap partition you would have to have multiple swap partitions to satisfy the amount you want to use. Is this old or outdated info? Thank you.
 
Old 07-03-2003, 02:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Considering the amount of RAM you got I think
that a swapper of the same size is MORE than
enough. The rule where it said that you need
double the swap of your physical RAM is from
the days where 64MB was considered heaps.

And no, you don't have to make "stripes"
of swappers, one with 256 would do perfectly
well. If you had a SCSI system with several
HDD's making one swap on every disk might
help with performance, but not with one big IDE
HDD.

Cheers,
Tink
 
Old 07-03-2003, 02:56 PM   #3
Anti-Gates
Member
 
Registered: Jul 2003
Distribution: Slackware 9
Posts: 47

Rep: Reputation: 15
I have a 317mb swap parititon (just what was left over after I set up my others {win & slack}) I have NEVER used any part of my swap space, and I always have 6 or 7 programs open. Then again I have 512mb of ram. A 300 or 400 meg swap file should be fine I think. (doesnt matter if you go over 128. I have never heard anything about that being a problem)

NOTE: Although I have been trying to get information and searching the web about linux for awhile I have only been using it for about a week.
 
Old 07-03-2003, 02:59 PM   #4
pine0279
LQ Newbie
 
Registered: Jul 2003
Location: On the floor.
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks Tinkster!
 
Old 07-03-2003, 03:48 PM   #5
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Yeah, I have 256MB of RAM, and on a normal basis, I have 0-10MB of swap being used. Its not a problem like it is in Windows. I know lots of people who get by with 50MB swap partitions and have never had issues.
 
Old 07-03-2003, 11:06 PM   #6
scottwest2
Member
 
Registered: Jun 2003
Distribution: Mac OS X 10.5.7, Athlon 64 X2 4200+, 2GB Ram, nVidia GeForce 9400 GT 1GB --- Ubuntu 9.04 Jaunty x64
Posts: 58

Rep: Reputation: 16
I am using a 1.3ghz athlon and am ready to setup another harddrive as the main harddrive, do u think i am going overboard considering i always make a 512mb swap with a gigabyte of ram
 
Old 07-03-2003, 11:13 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Unless you're running several virtual
hosts under apache, a chubby postgres
database and a squid-proxy on that box
I'd say you won't need a swapper at all ;)

You see, it really depends on the usage :}

If you run OO, Mozilla and a few other small
tools under KDE you'd hardly need a swapper
with 512MB RAM ...

Cheers,
Tink
 
Old 07-03-2003, 11:33 PM   #8
scottwest2
Member
 
Registered: Jun 2003
Distribution: Mac OS X 10.5.7, Athlon 64 X2 4200+, 2GB Ram, nVidia GeForce 9400 GT 1GB --- Ubuntu 9.04 Jaunty x64
Posts: 58

Rep: Reputation: 16
I am using a 1.3ghz athlon and am ready to setup another harddrive as the main harddrive, do u think i am going overboard considering i always make a 512mb swap with a gigabyte of ram
 
Old 07-05-2003, 09:52 AM   #9
pine0279
LQ Newbie
 
Registered: Jul 2003
Location: On the floor.
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Scottwest2 :: From the sound of it, if you put a few wheels on that thing you could drive it around the block. :-)
 
Old 07-06-2003, 11:57 PM   #10
scottwest2
Member
 
Registered: Jun 2003
Distribution: Mac OS X 10.5.7, Athlon 64 X2 4200+, 2GB Ram, nVidia GeForce 9400 GT 1GB --- Ubuntu 9.04 Jaunty x64
Posts: 58

Rep: Reputation: 16
sorry for posting twice i was probably using my parents computer and it i a slow winDOZE machine. but i guess i could drive it around the block, the only problem i have is i dont know how to liscense it, is it a vehicle or a trailer?
 
Old 07-07-2003, 03:24 AM   #11
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
My consideration of swap:

So swap space is actually for speed up programs, so if u don't have any it ll not problematics, if ur physical ram is not, 32mb .. like it was in the prior time.

The speed benefit of swap will be achived only in few cases like mentined above running httpd with virtual hosts, compiling kernel, booting time. But X, window managers: kde,gnome use it intensively especially during "starting of their applications".

For those windowing applications, a GraphicCadrs(GC) with great ram is real plus, it relax CPU n RAM activity, so gamers PC spec won't worry too much about swap for windowing aspect, but in those certain cases like booting, kernel compiling, servers/demons.

As commented above, 1:1 of RAM:swap comparison is already good. But if HD capacity is not of problem, n u've only a stick of 128/256 on ur mobo, then u should consider 1:2 of swap for the possible further upgrade of ram (save of repartitioning HD later).

Hope that save ur time by partitioning or designing partitions ..
 
Old 07-07-2003, 03:53 AM   #12
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
i propose a new formula for calculating the amount of
swap you need.
you take (the kernel version X the version of your flavor
of linux X the number of people or connections that
could possibly be made to the machine at any time X
the version number of kde on your machine X the
version number of xfree86) +256 X ( current year -2002).

you take your current amount of ram and subtract the
number from above from that. thats how much swap
you need. if it's a negative number, you don't need
any swap. by the way, thats swap measured in
rupees, not megs. thats how many rupees of swap
you need.
 
Old 07-07-2003, 04:32 AM   #13
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
Quote:
I am using 384 meg
Funny you should ask that, I also happen to have 384 MB of RAM on my laptop. My swap space is about 500 MB if I remember well.

In general, unless you have very little RAM, your swap space should be about the same as your RAM.

If your RAM < 128 MB, then, yes, your swap space should be = to the size of your RAM.

Also, removing the daemons you don't need helps A LOT when it comes to save memory space... I only have sshd running and it makes a difference!
 
Old 07-07-2003, 12:40 PM   #14
pine0279
LQ Newbie
 
Registered: Jul 2003
Location: On the floor.
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Hey thanks everybody! Thats what was missing, I didn't have enough rupee's working. I think I have it fixed now. I figured out the exchange rate for krones and bot for the same amount in rupee's. It seems to work fine only a bit slower but decent nevertheless. My sound card won't stop speaking Japanees but I can live with it. :-) Chin ho!

ps: The gasoline and napalm thing sounds good too.
 
Old 11-17-2003, 02:20 AM   #15
fuelinux
Member
 
Registered: Oct 2003
Location: Tbilisi, Georgia
Posts: 85

Rep: Reputation: 15
I have 64MB (DIMM) + 2x16 (SIMM) = 96 MB (TOTAL) RAM on my PC. But seems like because of true parity issues linux makes use of only 64 MB of RAM. Since I was constrained with HD size (1 GB only), I set up swap partition of size of 32 MB only. And now when I look at swap's use with free or cat /proc/meminfo it shows that swap memory is not used at all.
Do I need any swap? I'd make good use of that 32 MB
 
  


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
Partition Hd fr DSL and Win XP p2 What size for part, & swap file beekers Linux - Newbie 4 06-09-2005 10:14 PM
No medium found: cant mount swap part Dark Elf Linux - Hardware 5 06-02-2005 11:52 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 03:16 PM
swap part. question pine0279 Linux - Hardware 3 07-03-2003 05:17 PM
Two Part Question zuessh Linux - General 2 02-11-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:07 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