LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-04-2013, 08:52 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Question Does Anyone Omit Swap Partitions


I was building a new system which I have not done in some time. I just wanted to get fresh new updated Debian Linux system so I did a fresh install and during the disk partitioning, I asked myself if I should create a swap partition under Debian, create an actual swap file (which I've never done), or just omit a swap partition/file all together since my machine has 16 GB's of RAM and will likely never use it.

Can someone tell me what is common practice in the Debian world or which would make the most sense? This machine will be a dedicated database server only with no other software / services running on it with the exception of NTP, SSH, and other required system services.
 
Old 01-04-2013, 08:59 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
omit it if you are sure about the usage part.

How is the database being handled?
 
Old 01-04-2013, 09:07 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
If you need a swap solely depends on your amount of RAM and the actual workload this machine has. Without knowing that nobody here will be able to give you serious advice.
On my workstation with 16GB of RAM I have 1GB of swap that rarely ever gets used, but I don't run databases, so this doesn't apply to your case anyways.

So my answer: Since we don't know your workload I would recommend to go for swap, with disk sizes today a few GB of swap won't matter and having swap that won't be used will not affect performance (and can simply be deleted if necessary, especially if you use a swap-file).
The real answer: Monitor your workload and decide based on that data.
 
Old 01-04-2013, 09:08 AM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
I'm not sure but the usage part. I was just wondering if we still need swap and if so, is it better / preferred for partition or swap file?
 
Old 01-04-2013, 09:19 AM   #5
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,391

Rep: Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794
Again, I only have a PC but I've 16GB of RAM and no swap file. Far as I know the only thing you need a swap file for other than if you run out of RAM is to hibernate. I certainly don't have any problems - I specced this machine with more RAM than I ever tend to use so that I didn't need to bother with swap.
 
Old 01-04-2013, 09:21 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Without knowing the usage part nobody can say if you still need it. swap is not a remnant from the past that is not used anymore on modern machines, it depends solely on your use-case if you need it.
So unless you are sure about the usage I would recommend not to omit it.

Regarding which is better, file or partition, it doesn't matter at all.
 
  


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 partitions maxxx15 Linux - Newbie 3 11-03-2011 01:11 PM
About swap partitions reeper13 Linux - Newbie 3 09-20-2008 12:54 PM
Swap and Partitions in 10.2 ian_x Suse/Novell 3 08-31-2007 11:43 PM
Do I need 2 swap partitions? CloudBuilder Linux - Newbie 2 11-14-2003 03:09 PM
swap partitions chappy011 Linux - Newbie 2 03-18-2002 01:44 PM


All times are GMT -5. The time now is 01:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration