Review your favorite Linux distribution.
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 11-28-2006, 07:47 PM   #1
Registered: Nov 2006
Distribution: Fluxbuntu
Posts: 67

Rep: Reputation: 15
Adding Swap Partition Post-Install

so i had some trouble making a new partition for a swap during Ubuntu install. now looking at my cpu usage graph, i think i need a swap.

-does swap significantly reduce the CPU load? if so does the size of the partition matter? (if it helps, i have a Pentium 4 2A Ghz processor and 512mb of RAM)

-how to i set it up? i'm on Xubuntu.
Old 11-28-2006, 08:10 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Swap comes into play when the amount of ram isn't sufficient to handle the load. If ram usage doesn't hit 100%, you probably won't use swap. Graphics and sound editing apps may need swap, but most other won't unless ram is maxed out.

For example: I have 2 Gig ram; I never see swap in use. My last box had 256 meg ram; I saw swap used quite a lot.

Sise your swap partition to two or three times the amount of ram. That should work.

Will swap reduce CPU load? I don't know. I think it's more a function of the amount of ram you have to work with.
Old 11-28-2006, 08:47 PM   #3
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Swap has nothing to do with CPU usage. It's a place for a memory swap (hence the name}.

If you're using a lot of CPU run top to see what process is making so much use of the CPU. That can tell you whether there is an actual problem or not.

As for making a swap partition, some specifics about your drive, existing partions, and available space would be required as well as what "problems" you had.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I install linux without a swap partition? jbeedham Linux - General 26 11-16-2010 02:58 AM
Create swap partition after install BobNutfield Fedora 6 02-22-2006 02:24 AM
install Linux without swap partition? leduytien Linux - Software 19 02-02-2005 01:21 PM
adding & formating partition - post install synfield Linux - Networking 5 05-13-2003 06:11 AM
RH 7.2 install and swap partition hedstrom Linux - Software 2 12-31-2001 10:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 AM.

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
Open Source Consulting | Domain Registration