Results 1 to 5 of 5
Thread: Optimum Partion setup
Hybrid View
-
04-13-2008, 08:26 PM #1Web Hosting Master
- Join Date
- Dec 2000
- Location
- Chicago, IL
- Posts
- 565
Optimum Partion setup
I just purchased a dell poweredge in order to move my website to its own dedicated server. I have a few questions on the best linux partition setup for a webserver. The system has 8 gigs of ram, raid 10 setup with four 15k rpm drives and two quadcore cpu's.
The os is CentOS 5.1
The server can have up to 30,000 uniques in a single day and can be somewhat database intensive.
Does anyone have a recommend partition setup, besides the default?
With 8 gigs of ram, what is the recommend swap? I've seen rules that say anything over 2 gigs of ram, the rule is S = M+2. So that would put me at 10 gigs swap. Is that overkill?
Should i make a seperate partition for log files? Any advice would be appreciated...
-
04-13-2008, 08:58 PM #2Web Hosting Master
- Join Date
- Nov 2005
- Posts
- 3,944
I doubt you need 10GB of swap, swap should only be used as a backup when your system runs out of RAM. We usually partition about 4GB for swap per 8GB RAM, however we rarely use over a few mb. If you use too much swap, it will end up slowing your site down greatly as hard drive space is ~100X slower than RAM.
-
04-13-2008, 10:01 PM #3Backup Guru
- Join Date
- Feb 2002
- Location
- New York, NY
- Posts
- 4,618
I still follow the old general rule of Swap = 2 * RAM. For 8GB, that would be a 16GB swap partition.
Scott Burns, President
BQ Internet Corporation
Remote Rsync and FTP backup solutions
*** http://www.bqbackup.com/ ***
-
04-14-2008, 04:19 AM #4Temporarily Suspended
- Join Date
- Oct 2003
- Location
- Hanoi
- Posts
- 4,309
I see the rule, but swap is always much slower than RAM. Why not have too much swap meanwhile RAM is not very expensive currently?
-
04-14-2008, 05:46 AM #5Web Hosting Master
- Join Date
- Aug 2000
- Location
- Sheffield, South Yorks
- Posts
- 3,627
2GB swap is the max we ever put on a server - if it's using 2GB swap, it's going to have ground to a halt anyway and most likely locked itself up, so any extra isn't going to do you any good at all.
For a general server, we always have:
/
/boot
/home
/tmp
/usr
/var
swap
That's if it's just a single RAID set. If we've got multiple sets on different drives, then it's most likely for DB work, so we'll split /var/lib/mysql off on to its own RAID set (if it's for mySQL).Karl Austin :: KDAWS.com
The Agency Hosting Specialist :: 0800 5429 764
Partner with us and free-up more time for income generating tasks