Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-25-2009, 06:00 PM   #1
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?

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

Rep: Reputation: 57
This has been debated endlessly, but here's a good article that sums it up:
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 06:07 PM. Reason: typos suck
Old 09-25-2009, 08:00 PM   #3
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, 10:38 PM   #4
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 485Reputation: 485Reputation: 485Reputation: 485Reputation: 485
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?
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration