Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 85 guests and 4 members online
EH-Net News Feeds
Latest Additions
 
Advertisement

You are here: Home arrow Forum arrow Ethical Hacking Discussions and Related Certificationsarrow Otherarrow 64-Bit Linux Swap Partition Size Recommendation
EH-Net
May 26, 2012, 08:15:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Advertise on EH-Net!! - Reasonable Rates, Highly Targeted Audience.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: 64-Bit Linux Swap Partition Size Recommendation  (Read 4582 times)
0 Members and 1 Guest are viewing this topic.
Seen
Jr. Member
**
Offline Offline

Posts: 96


View Profile
« on: December 12, 2011, 11:39:26 PM »

So I've finally decided to setup a dual-boot for OpenSuse x64 and Windows 7 on my new notebook.  (I've been running OpenSuse in a VM just because I like that my new system can run multiple VMs simultaneously!)

I was wondering, what should the size of the swap partition be?  I used to make it double the amount of RAM, so when I had 512 MB I made it 1 gig.  But now I have 8 gigs of RAM, which would make the swap 16 gigs which seems too big.  I've never used a 64-bit version of linux before, so does anyone have any suggestions as to how big the swap should be with 8 gigs of RAM?  Also, my OpenSuse system will be on an SSD drive if that matters.

I did a Google search on this first and (surprisingly) didn't really come up with any useful tips.
Logged

Sec+, eCPPT
TheXero
Full Member
***
Offline Offline

Posts: 112


Try Harder!


View Profile WWW
« Reply #1 on: December 13, 2011, 02:55:54 AM »

To be honest, I don't even have a swap partition (I have 6GB of ram)

I've not had a problem with my machine unless all of the ram is used, then it just goes really slow for a few minutes until some is free
Logged

vekarman
Newbie
*
Offline Offline

Posts: 25



View Profile
« Reply #2 on: December 13, 2011, 05:43:58 AM »

@Seen,

In old days, when memory cost was sky high, we used to have double-the-ram size swap partitions. Now as they are cheaper, swap size is not of concern. I had seen server with 64GB Ram running Unix flavors with very small swap partition. However, it entirely depends on what you are going to do with system. If it is a dbserver or something heavy, then we need to consider swap size.
Logged

CISSP
Seen
Jr. Member
**
Offline Offline

Posts: 96


View Profile
« Reply #3 on: December 13, 2011, 08:53:03 AM »

I'm primarily going to use it as an attacking machine.  So running john the ripper, nmap, nessus, metasploit, etc.  In fact, I'm considering either triple booting OpenSuse, Backtrack 5, and Windows.  Or I might just use Backtrack instead of OpenSuse.

I also tend to have a lot of Firefox tabs open, which I know uses up a lot of memory in Windows at least.
Logged

Sec+, eCPPT
eth3real
Sr. Member
****
Offline Offline

Posts: 295



View Profile WWW
« Reply #4 on: December 13, 2011, 09:32:29 AM »

My laptop was setup with Linux, plenty of hard drive space, 6 GB of RAM, and no swap partition. I was getting ready for a presentation on WEP cracking last month. I had no problem until I started collecting IV packets. I would only get to about 3,000 or so before the laptop would just crash.

It took me a while to figure out the problem, but all I did was use GParted on a LiveCD to shrink my Linux partition and add a 2 GB swap partition. No more problem.
Logged

Put that in your pipe and grep it!
Seen
Jr. Member
**
Offline Offline

Posts: 96


View Profile
« Reply #5 on: December 13, 2011, 02:14:55 PM »

Thanks eth3real, I think I'll add a 2 or 4 gig partition to be safe.

If I decide to triple boot Backtrack, OpenSuse and Windows 7, can Backtrack and OpenSuse use the same swap partition?  I assume so, but I've never had 2 linux installations before
Logged

Sec+, eCPPT
eth3real
Sr. Member
****
Offline Offline

Posts: 295



View Profile WWW
« Reply #6 on: December 13, 2011, 06:31:48 PM »

Glad I could help. I believe that if you have a swap partition, any distro will utilize it (unless you use some bootup option like noswap on Knoppix). Not sure if this will work if you put the swap partition in LVM.
Logged

Put that in your pipe and grep it!
vekarman
Newbie
*
Offline Offline

Posts: 25



View Profile
« Reply #7 on: December 16, 2011, 12:33:57 AM »

I agree with eth3real. As you would be using it as an attacking machine, many tools at many times, it is advisable to keep a swap partition. You never know when you need it. May be any new utility may require more memory. Then swap partition can come handy.
Logged

CISSP
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.068 seconds with 22 queries.
 

gk_static-ad_feb2012.jpg
Global Knowledge: Build Security Skills to Protect & Defend

els_130x200fixed2.gif
eLearnSecurity Student Course Now Live!
5% Off with Code
ELS-EH-5

SANS Deals 4 EH-Netters
$150 OFF Any SANS Course in Any Format!
Coupon Code: EHN_Connect Including SANS Security West 2012 & SANSFIRE 2012
Recent Forum Topics

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!

Vote For EH-Net

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2012 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.