Go Back   Steve Kallestad.com Discussion > Open Discussion > Article Talk


Post New Thread  Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2007, 06:44 PM   #1
Movable Type Integration
 
Join Date: Feb 2007
Posts: 264
MT Integration is on a distinguished road
Talking Discussion: Running a Site on a Ram Disk

Running a Site on a Ram Disk
Quote:
Running a web site on a RAM Disk would effectively mean that access times for random files would be exponentially increased for larger sites. At least that's what you would think. A server with considerable RAM, it turns out, is largely effective at caching it's own files. At least in a linux environment.
Related On SiteRelated External

None

None
__________________
You're friendly neighborhood automation routine.

Last edited by MT Integration : 08-16-2007 at 02:44 AM. Reason: Update to original article
MT Integration is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:25 AM   #2
Lee
 
 
Lightbulb Re: Discussion: Running a Site on a Ram Disk

RamDisks are great for boot cycles, but not much beyond that in my experience. I've found that using memcached does much more good than a ramdisk and it allocates memory in a much more friendly way - and you can network it to boot.

Now if you are talking about a windoze machine, that's a whole different ball game. The funny thing is that I've had apps slow down because the ram disk gets data put in a swap file just like anything else. Much better improvement on windows, but still not perfect.
My URL:
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:25 AM   #3
Soma
 
 
Lightbulb Re: Discussion: Running a Site on a Ram Disk

Several years ago, I tested RAM Disk shares over GigE connections and compared them with benchmarks from disk based shares.

RAM Disks have an advantage over single disk shares, but the difference between RAM and a hardware RAID is nominal at best - at least over a network share.
My URL: http://www.somacon.com/
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:47 AM   #4
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Posts: 182
Steve has disabled reputation
Post Re: Discussion: Running a Site on a Ram Disk

After a little bit more research...

I discovered that the problem with MediaWiki on a RAMDisk actually was a problem with my php accelerator. I decided to have a little bit of fun by moving mysql tables onto a RAM disk as well as MediaWiki and vBulletin. Strangely, the load testing results were roughly the same using ab. I've come to the conclusion that RAM disks are not an effective optomization technique on a linux system, and that you are better served making that memory available to the kernel to do with what it chooses. The potential problems associated with corruption and losing data are not outweighed by the performance enhancement.
My URL: http://www.stevekallestad.com
Steve is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote