LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-26-2007, 09:41 PM   #1
AP81
Member
 
Registered: Mar 2005
Posts: 38

Rep: Reputation: 15
Do I really need a swap?


Hi all,

Just wanted your opinion on this...

I have a dual-boot setup (boots Windows and Linux) and the Linux partition only serves one function: to backup / restore the windows partition. The Linux partition is a very minimal setup- minimal packages,no X, just runs ntfsclone via command line (also uses ntfs-3g to copy some windows files).

This setup is used on all our client systems, so they can backup restore snapshots of Windows.

My question is, having such minimal requirements and all systems having a minimum of 512MB RAM, is a swap really necessary?

Thanks,
Adam
 
Old 11-26-2007, 10:06 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Swap is required if you are short of physical RAM.
512MB is good enough for most programs.
 
Old 11-26-2007, 11:22 PM   #3
AP81
Member
 
Registered: Mar 2005
Posts: 38

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the response.

I understand that a swap is only required if you are short of physical RAM, but I am still undecided about whether I should keep a swap just for a precaution.

I ran the 'top' command after doing a full ntfsclone backup(the most memory intensive operation the system will perform) and top showed:

Quote:
swap: total: 522104K used: 0K Free:522104K cached:245204K
My concern is with the cached value. Does this indicate that the swap file has been used?

Thanks.
 
Old 11-27-2007, 02:26 AM   #4
AP81
Member
 
Registered: Mar 2005
Posts: 38

Original Poster
Rep: Reputation: 15
What about just using a swap file rather than a dedicated swap partition? I think that would suffice...
 
Old 11-27-2007, 03:28 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Cached data is not swappable, but Linux can still elect to swap out valid memory in favor of more cache space. There is no difference from using a file or partition. If you already have a partition, then why create a file? Given your requirements, i don't think you need any swap space.
 
Old 11-27-2007, 03:58 PM   #6
AP81
Member
 
Registered: Mar 2005
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks for the advice.

I am creating a new master drive (for all the others to be cloned off), so I thought that now is the time to get rid of the swap partition. I think I'll just use a swap file instead of a dedicated partition.
 
Old 11-27-2007, 07:44 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
My feeling is that it's probably smart to give the operating-system the option...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 03:20 AM
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 - General

All times are GMT -5. The time now is 11:42 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
Open Source Consulting | Domain Registration