LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2008, 01:43 AM   #1
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
SWAP is Neccassry ?


Hi All,

Why we create swap partition? Generally we create twice of RAM. if we create 1.5 times of RAM, then there is any performance effected on processor?

Thanks,
 
Old 06-05-2008, 01:45 AM   #2
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Original Poster
Rep: Reputation: 17
SWAP is Necessary ?

Hi All,

Why we create swap partition? Generally we create twice of RAM. if we create 1.5 times of RAM, then there is any performance effected on processor?

Thanks,
 
Old 06-05-2008, 01:50 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by deepak_message View Post
Hi All,

Why we create swap partition? Generally we create twice of RAM. if we create 1.5 times of RAM, then there is any performance effected on processor?

Thanks,
If the memory is full and there's swap, the kernel swaps partly the ram contents to the swap partition. If there isn't swap, the kernel starts closing programs without any previous warning. You decide.
 
Old 06-05-2008, 01:56 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
There must be hundreds of previous threads by now concerning the necessity of swap. I suggest you look at a few. But in short, think of swap space as "emergency RAM". It shouldn't be necessary most of the time, but when your system needs more memory than you have available, swap is good to have. The 1~2x RAM number is just a rule of thumb. It all really depends on how often and how much you expect you will use it. If you have a lot of RAM, then 2x is probably too much.
 
  


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
swap file vs. swap partition verndog Ubuntu 16 07-09-2012 08:49 PM
Need Help Increasing Swap by creating a swap file froggo Red Hat 3 06-13-2006 08:04 AM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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