LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-15-2003, 12:06 PM   #1
rajorshi
Member
 
Registered: Jun 2003
Location: Calcutta, India
Distribution: Slackware 9.0
Posts: 34

Rep: Reputation: 15
Question is swap partition really needed ?


hi all,
i use slack 9.0 on my system. I have 384 MB RAM, and my / is about 2GB. My question is : is the swap partition (in mycase 192 MB) really necessary ? Whenever I do "cat /proc/meminfo" or "free", the amount of swap space actually used is zero. So can I remove swap partition?
Also, I tried this cmd first : "swapoff /dev/ha8". Even after that all progs including KDE were working fine without any delay.
 
Old 07-15-2003, 12:14 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
You can remove it if you want.
But I do NOT recommend it.

The minimum recommended size for Swap is 32 MB.

If you do bring it down and something goes wrong , DO NOT blame me.
 
Old 07-15-2003, 12:15 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I believe the newer kernels don't need (as much) swap if you have a decent amount of memory, but I usually make a 128 mb swap. When I do tons of stuff (compiling, listening to audio, moving files around, surfing and emailing), I use a little swap, usually less than 50 mb. I have 512MB RAM.
 
Old 07-15-2003, 01:15 PM   #4
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
I have 512mb of ram and I have always had about the same results with or without swap.
 
Old 07-15-2003, 01:46 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi rajorshi

Depends on what you use your computer for - With that much RAM you could certainly try it.
 
Old 07-27-2003, 05:58 PM   #6
tobz
Member
 
Registered: Jul 2003
Location: MN
Distribution: Redhat 9/Fedora Core 2/Slack
Posts: 53

Rep: Reputation: 15
related to his post...

My server is a Dual P3 850mhz with 2GB of ECC RAM
I have never actually used any of my 2GB swap drive ( i was listening to old conventions of 1-2xRam).
I wouldn't mind getting rid of my swap file, but a couple of questions first...

One, if I don't have a swap file, and for some reason my system uses all 2GB, what happens? The program trying to access the "non-existent" ram will just crash? Even with my webserver, ftp, ssh, and hlds I never get more than like, 4% of Ram used.

secondly, can I get rid of my 2gb swap w/o doing a reinstall? or even just resize my swap file to say, 512mb, or something much smaller? I don't want to reinstall everything. I've used Partition Magic in windoze, and I'm sure it's super easy but I couldn't find anything during my brief search.

Thirdly, what are some other cool things to run on my server? I have lots of unmanaged bandwidth, cpu power, Ram, and HD space, but not much stuff to use it on. Give me some ideas Thanks.

tobz
 
Old 07-27-2003, 06:24 PM   #7
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
You can always run SETI@home on your idle CPU power. That is, if you are interested in Science and Space.

SETI@home

If you are interested in a daemon, you could run an IRC server or something.
 
Old 07-27-2003, 06:39 PM   #8
tobz
Member
 
Registered: Jul 2003
Location: MN
Distribution: Redhat 9/Fedora Core 2/Slack
Posts: 53

Rep: Reputation: 15
Thanks. Can I run an IRC server that will allow me to connect to all of the channels? I am having trouble finding an IRC server, all of them are timing out as I go down the list. I'm not a big fan of SETI, but you reminded me of GIMPS, so I might take part in that. Thanks again!

tobz
 
Old 07-27-2003, 06:54 PM   #9
tobz
Member
 
Registered: Jul 2003
Location: MN
Distribution: Redhat 9/Fedora Core 2/Slack
Posts: 53

Rep: Reputation: 15
btw, what exactly do you mean by daemon, it's probably simpler than i'm making it out to be, but i did a google search and can't figure out exactly what one is...

tobz
 
Old 07-27-2003, 07:04 PM   #10
Riley
Member
 
Registered: Feb 2003
Location: SC, USA
Distribution: Mandrake 10.0 Powerpack
Posts: 178

Rep: Reputation: 30
When I used Slack 9 I only had 256 MB of RAM and was running without a swap partition. I even ran KDE and it didn't even seem slow.
 
Old 07-27-2003, 07:12 PM   #11
tobz
Member
 
Registered: Jul 2003
Location: MN
Distribution: Redhat 9/Fedora Core 2/Slack
Posts: 53

Rep: Reputation: 15
Ok, thanks

I've decided to get rid of my swap file for a while, and see how things go. Can I get rid of it "gently" ? Or will I end up having to reinstall something?

TIA

tobz
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap partition needed for every drive? lagu2653 Linux - Hardware 2 06-21-2005 05:15 PM
Swap memory is not being used when needed mikeyt_333 Linux - General 13 01-12-2005 12:42 PM
SWAP partition fix needed for funky configuration BarkingBonefish Linux - Software 2 02-12-2004 09:15 AM
memory swap - still needed ??? xen_chris Linux - Newbie 8 04-08-2003 03:48 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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