LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-07-2003, 04:30 PM   #1
xen_chris
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
memory swap - still needed ???


i have read and read about the fact that linux needs memory swap onto hdd.
now i ask if it is truly necesarry to have swap when you have, lets say, 384 mb sdram ??
my opinion is that swap memory is only needed when you are short of memory, like 8mb till 32mb, but afterwards, it is not necessary.
the reason i ask you is that all of my friends who know linux said that a swap partition is necessary and i do not agree. now you have my point of view. am i good thinking or ... ??
 
Old 04-07-2003, 04:45 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmm...well you certainly MUST create a swap partition in order to install Linux but you seem to be questioning its functionality. In my opinion I say why not have it just in case 500,000 people flood to your web site all of a sudden and you need that extra memory.

I feel its a "Just in Case" kind of thing.
 
Old 04-07-2003, 04:53 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
If you don't find it necessary, just create a 100 meg swap for that just in case like crashed_again stated. It might save you one day. I never exceed 200 megs myself, even with as little as 64 megs of ram and its rarely touched.. but I make it just in case though myself.
 
Old 04-07-2003, 05:25 PM   #4
enderel
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware 8.1
Posts: 4

Rep: Reputation: 0
Thumbs up

hi,

theory says that you can always install linux without a swap partition, but i think that even with 384 ram you will notice the difference

any operating system has this option and if you try runing windows without it you'll see it is much slower

just imagine a movie with a size of 700mb. how's the system going to put that into your ram?

i also read somewhere that it's size should be about the size of your physical ram or double in case you don't have a lot

you can start thinking about turning it off if you have about 1 gb ram
 
Old 04-07-2003, 06:57 PM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
hmmm...well you certainly MUST create a swap partition in order to install Linux
that's not true...at least not in debian.
highly recommended--- yes
forced -- no

A lack of swap hits a intersting point in such stuff as embedded technology, where space costs big $$, and one may not want to waste it on swap.
 
Old 04-07-2003, 06:58 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I stand corrected. Thank you.
 
Old 04-08-2003, 01:30 AM   #7
xen_chris
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
thx 4 your answers. i do believe that from now on i'll be using swap partition. thank you for helping me solve my dilema.
now, another dilema. i am used to installing linux without a swap partition (logic, isn't it ??) and i am asking if its place onto hdd does matter, since linux will come to the last of my partitions onto hdd.
so, if i just put swap near to it, at the end of my hdd, physically, there is no problem ???
and of course, since i do have 384mb, how big should the swap partition be ?? its size or double ??
 
Old 04-08-2003, 09:05 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,941

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
Doesn't matter where the swap partition is placed physically nor does it have to be on the same hdd.

With 384mb ram you could get away with a 512mb swap. If you ever need more just add another swap partition or swap file. You can have up to 8 swap partitions of 2gb each.
 
Old 04-08-2003, 03:48 PM   #9
xen_chris
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
i'll have a swap partition of 512mb, cause i can. :d
thx 4 your help.
my configuration will look this: linux on a 3.5gb partition, and swap on a 512mb partition.
i do believe is ok.
if no reply is needed, you can close the post.
 
  


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
Swap Memory xbill311x Linux - Newbie 2 04-11-2005 01:58 PM
Swap memory is not being used when needed mikeyt_333 Linux - General 13 01-12-2005 12:42 PM
no memory swap os2 Programming 2 06-11-2004 12:32 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM
Swap Memory in use or not? Qebex Linux - Hardware 5 09-21-2002 07:59 AM

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

All times are GMT -5. The time now is 07:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration