Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Hardware

Linux Hardware All about Hardware Post your questions here about Hardware Issues and Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-2008, 12:49 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 364
Tor is on a distinguished road
Default Add more swap space?

Is it possible to add more swap space to my Linux installation? I think this will help Linux run better because I only have 512mb with 2gb of actual ram. I've been reading that I should have at least 4gb, is this true?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-24-2008, 02:05 PM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

As far as I know, 200 mb is enough swap space. Personally, I use 200 mb, and I've never had any problems, not even when I've played 3D-heavy games.

If you want to change/modify your swap space anyway, then this looks like a nice guide.
Reply With Quote
  #3 (permalink)  
Old 01-24-2008, 03:53 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 507
Jordan is on a distinguished road
Default

I've always heard and doubled my swap space compared to my physical RAM. So if I have 2 gigs I use 4 gigs of space. I've never used more than 4 gigs of swap though. If you run Oracle or similar then you will about 20gb of swap.

v0id's link should show you how to add more swap.
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 11:51 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 364
Tor is on a distinguished road
Default

So I have 1 gig of ram. Should I use 2 gigs of swap or go ahead an up to 4 gigs?
Reply With Quote
  #5 (permalink)  
Old 02-22-2008, 07:25 AM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

Wow. I've never been aware of this. My 200mb of swap-space is working fine.
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 06-19-2008, 10:46 AM
Member
 
Join Date: Jun 2008
Posts: 67
EugenS is on a distinguished road
Default

What's the difference between swap partition and swap file?
Reply With Quote
  #7 (permalink)  
Old 06-19-2008, 03:30 PM
Senior Member
 
Join Date: Jun 2008
Posts: 110
rumen is on a distinguished road
Default

I think the swap file is an artificially created swap space to fill up when you run out of your actual swap partition. You have to rename a regular file, adjust its size and use it as a backup to your existing swap space.
Reply With Quote
  #8 (permalink)  
Old 06-20-2008, 01:09 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 364
Tor is on a distinguished road
Default

A swap file is simply a file on your local partition. A swap partition is an entire new partition used as swap space. The reason a partition is better is because a swap file can become fragmented but you can't defrag a system file (swap file) so it slows down your computer.
Reply With Quote
  #9 (permalink)  
Old 06-21-2008, 09:08 PM
Member
 
Join Date: Jun 2008
Posts: 67
EugenS is on a distinguished road
Default

Ok, I got it now. Thanks for the info, guys.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Label a Linux Swap Partition erik Linux Hardware 1 10-11-2007 11:25 PM
Pain-free disk space management with LVM kernel Linux News 0 08-22-2007 08:27 AM
HD Space Left Prog Linux General 2 06-18-2007 11:21 PM


All times are GMT. The time now is 12:15 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.