|
Title: 64-Bit Linux Swap Partition Size Recommendation Post by: Seen 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. Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: TheXero 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 Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: vekarman 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. Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: Seen 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. Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: eth3real 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. Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: Seen 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 Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: eth3real 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.
Title: Re: 64-Bit Linux Swap Partition Size Recommendation Post by: vekarman 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.
Powered by SMF 1.1.18 |
SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com |