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 - 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 04-08-2002, 02:03 PM   #1
freezinbutt
Member
 
Registered: Mar 2002
Location: Fairbanks, Alaska
Distribution: Ubuntu 9.04
Posts: 55

Rep: Reputation: 15
Dumb question about the SWAP partition


Does Mandrake (or any distro for that matter) really need the SWAP partition in order to work? My understanding of SWAP is that it is used in the event you run out of RAM and the system uses the SWAP as virtual memory. Is this right or am I all #$@**! up here. If that IS what the SWAP is used for and you have more than enough RAM to handle everything, do you need the SWAP partition?

Hey, what can I say? I'm new. Gotta learn somehow.

Thanks,
freezinbutt
 
Old 04-08-2002, 02:06 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
When you put it like that, then I s'pose you could do with out the swap partition, but that is not to say that Mandy would not use SWAP. In the even of not having a dedicated swap partition, Mandy does a very Windows type thing and uses a swap file on the current partition (I think - that's certainly what it looks like to me, although I could be wrong).

You do, however, have to ask yourself: Do I really, really, absolutely need, and couldn't live without, that extra 100-200Meg of harddisk? I certainly don't miss it out of 41Gig.
 
Old 04-08-2002, 02:25 PM   #3
freezinbutt
Member
 
Registered: Mar 2002
Location: Fairbanks, Alaska
Distribution: Ubuntu 9.04
Posts: 55

Original Poster
Rep: Reputation: 15
Yeah, your right. I thought the same thing; am I really going to miss the couple hundred meg. Not really. I was just wondering if it was totally necessary in order to install Linux. I have 512MB of RAM and I doubt that Mandy will strain my system that much that the SWAP will come into play (at least I hope not). Heck, maybe it will. It's got a lot of bells and whistles, and B&W's take up lots of memory.

Anyway, I was just wondering..........
freezinbutt
 
Old 04-08-2002, 09:33 PM   #4
justiceisblind
Member
 
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242

Rep: Reputation: 30
I didn't have a swap partition for the quite sometime in RH and I had no problems at all. I set up a small (100 mb) swap now and i don't really recgonize much difference.
 
Old 04-09-2002, 12:50 AM   #5
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
Quote:
Originally posted by freezinbutt
I have 512MB of RAM and I doubt that Mandy will strain my system that much that the SWAP will come into play (at least I hope not). Heck, maybe it will. It's got a lot of bells and whistles, and B&W's take up lots of memory.
So what you actually planning run to run under Mandy??
 
Old 04-09-2002, 01:00 AM   #6
freezinbutt
Member
 
Registered: Mar 2002
Location: Fairbanks, Alaska
Distribution: Ubuntu 9.04
Posts: 55

Original Poster
Rep: Reputation: 15
Not planning on running anything special at this time. I'm new to Linux so I need time to see what is out there. I was just wondering if the SWAP partition was really needed in order to do an install. Sounds like it really is not. There has to be a reason for everything and I wanted to know the real reason for the SWAP partition and what it does.

freezinbutt
 
Old 04-09-2002, 05:01 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Historically, when computers routinely came with like 8 or 16Mb RAM, a swap partition was necessary for multitasking (and multiuser) environments because not much would fit. Many books on Linux still recommend that SWAP=2xRAM, even taking into consideration that it's not too uncommon for people to have 256+Mb RAM. Mostly, you won't need more thant about 100-200Mb SWAP.

Unlike Windows, where I once went to a 3Gb SWAP file. What was I doing? Trying to load about 100 Jpegs (all 1600x1200) into Paint Shop Pro at once! But we're not gonna go there: this question is about SWAP, not ms v linux.
 
Old 04-09-2002, 05:46 AM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You can always create a swap file and use it instead of swap partition...
 
Old 04-09-2002, 12:36 PM   #9
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
I know in some flavors of unix, the OS likes to make sure there is enough swap available for whatever it's doing in the event that it should need it. I don't know if this is the case with Linux or not, but why chance it?
 
  


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
LFS 6.1 - a question on SWAP partition satimis Linux From Scratch 12 07-18-2005 08:08 AM
Quick/Dumb partition question. DR_K13 Linux - Newbie 5 02-23-2005 05:48 PM
Swap Partition Question snatale1 Debian 1 09-21-2003 10:10 PM
Swap partition question. Mr_Floppy4 Linux - General 4 10-14-2002 10:15 PM
Swap Partition Question Chijtska Linux - Newbie 13 02-20-2002 10:38 AM

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

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