LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-25-2009, 07:00 PM   #1
beckettisdogg
Member
 
Registered: Mar 2009
Distribution: Slackware 13.0
Posts: 60

Rep: Reputation: 16
Unhappy What happens if


a Linux user does not create a Swap partition while installing Linux?

just curious.

OR very very small swap partition for example around 50 megabytes?


thanks!
 
Old 09-25-2009, 07:07 PM   #2
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 438

Rep: Reputation: 57
This has been debated endlessly, but here's a good article that sums it up: http://www.alexonlinux.com/swap-vs-no-swap
Basically swap, any swap, is a good thing. I would recommend having at least enough to suspend/hibernate if you are using a laptop, and on a system with adequate physical memory you'll rarely even hit swap.

I would recommend having at least a little, and a reasonable amount on a modern disk drive won't even be noticed.

Last edited by MBybee; 09-25-2009 at 07:07 PM. Reason: typos suck
 
Old 09-25-2009, 09:00 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
It depends.....

How much RAM to you have?
What programs/files are open?

While you have some things running, open a terminal and run "top" and you can see how swap is being used.
 
Old 09-25-2009, 11:38 PM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
a Linux user does not create a Swap partition while installing Linux?
just curious.
OR very very small swap partition for example around 50 megabytes?
Answers:
a) It depends on your need. If you have a small RAM you ought to have at least half or equal of its size for the swap.
b) If your system has enough RAM say 1.2Gb but you intend to use it heavily for embedded works you ought to have a swap equal to or half of that RAM size.
c) If you have enough RAM and intends to devote the machine mainly for basic light works then RAM is not needed.

This is only based on my experience as a newbie user. I am not an authority to the subject: the theoretical merits of swap-or-no-swap issue shall be decided by the nerds of the subject as provided by MBybees' link above.

I have observed that at my basic usage, only 15-24% is consumed of my 520Mb swap and this peak can only occur when I am running video files, so that, in bigger rams I was convinced that swap in not a matter of necessity but only of contingency. I have no swap partitions in some linux.

Hope this helps.
 
  


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




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