LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-26-2003, 07:49 PM   #1
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Debian Stretch
Posts: 424

Rep: Reputation: 48
Question Should I resize swap partition?


I'm overhauling my machine and upgrading from ram from 256 to 512. With the possibility of 1gb in the future. My current swap partition is 500mb. I know the swap is generally double the ram, would there be a noticible performance difference if I stretch it out a little more?
 
Old 12-26-2003, 07:53 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
No - the swap partition is only really important if you have low RAM. With your present (and projected) size, the swap partition is fine as it is.

Incidentally, this isn't really a Success Story, it belongs in Hardware or similar.
 
Old 12-27-2003, 07:49 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Moved: Not a Success Story. Seems suitable in Newbie as this is a very common question which could have been found with a simple search. Regards.

And to add to XavierP's answer, you most likely won't see any improvement in performance either, as most of the time you don't even want swap to be used. When swap is not being used, that means your RAM is doing its job properly.

Last edited by trickykid; 12-27-2003 at 11:16 AM.
 
Old 12-27-2003, 08:25 AM   #4
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
I thought that swap is used even when the ram is not completely utilised because,
linux only uses the ram for processes that are running constantly and if the process or application has been inactive for some time then it is shifted to the swap so that the ram is free for important processes.
 
Old 12-27-2003, 08:30 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by LinuxLala
I thought that swap is used even when the ram is not completely utilised because,
linux only uses the ram for processes that are running constantly and if the process or application has been inactive for some time then it is shifted to the swap so that the ram is free for important processes.
No that is not totally true. I learned even in a server envrionment if swap is ever used, you need more RAM...
 
Old 12-27-2003, 08:33 AM   #6
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Thanks for making that clear trickykid
 
Old 12-27-2003, 10:26 AM   #7
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Debian Stretch
Posts: 424

Original Poster
Rep: Reputation: 48
Quote:
Originally posted by trickykid
[i]Moved: Not a Success Story. Seems suitable in Newbie as this is a very common question which could have been found with a simple search. Regards.[./i]
I did search, all posts pertaining to swap partitions are questions about size for new installs. Been there done that, my question as you saw was whether to resize due to ram upgrade. As you know searching doesn't help that much thanks to the idiots that name there threads "OH KNOW: or "WHAT NOW!"I can't search all text of every post and reply If you can't find an answer within a page or too the search was useless. As far as the post being in succccess storys...beats me i was on like 10 min. sleeep, lucky i didn't fall on the keyboard and post "difhferhgt9432h9th34ohg43t43"
 
Old 12-27-2003, 11:18 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by snatale1
I did search, all posts pertaining to swap partitions are questions about size for new installs.
I would think with the explanations that most will give also on these new install questions pertaining swap, you would have come to the conclusion you wouldn't need to resize your swap or if you did, you could downsize it even since you were actually upgrading your RAM, not downgrading it...

Cheers.
 
Old 12-27-2003, 12:02 PM   #9
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by snatale1
As you know searching doesn't help that much thanks to the idiots that name there threads "OH KNOW: or "WHAT NOW!"
lmao. sorry trickykid but he has a point and it's funny as hell to boot
 
Old 12-27-2003, 12:29 PM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
But the search function doesn't have to search the thread titles. I believe that the default is to search the body of the posts and so renders the objections irrelevant.

I just ran a search for "swap partition size" (minus the quotes) and came up with 260 results. Going by the criteria established by Snatale1 (that of only looking in the first 2 pages) I found 4 references in the first 10 posts to having the swap partition be twice the size of your ram.

After the search, the question could have been "I am about to upgrade my swap partition to 1gb. Searches on LQ have brought up results suggesting that twice the size of my ram is a good swap partition size. I think 2gb of swap is a little excessive. Can anyone advise me on whether I need to expand my current 500mb partition?"

At the same time, being unwilling to read the text of the search results is a bit of a failing. Often the solution to a problem isn't found until 2 pages of posting. If you go to a library, you don't complain that the answers you seek aren't found by reading the book titles, do you?
 
  


Reply


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
Swap file & Boot Partition Resize surfer2k3 Linux - Newbie 4 07-17-2008 07:50 PM
Is it possible to resize the swap partition after installation is completed? Akhran Linux - Newbie 5 08-07-2005 02:58 PM
How do I resize my linux swap partition? sdat1333 Fedora 5 12-06-2004 01:04 PM
resize swap and Reiserfs wutever Slackware 6 10-15-2004 12:08 AM
resize swap partiton ? qwijibow Linux - Software 3 11-26-2003 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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