[ale] redhat 9 ramdrive performance problem

Danny Cox danscox at mindspring.com
Thu Apr 29 17:14:22 EDT 2004


John,

On Thu, 2004-04-29 at 08:29, Armsby John-G16665 wrote:
> I have successfully set up a ramdrive with 500 meg of space,
> initialized it, and placed the files I need to regularly access.  I
> have changed the CGI code to look to that directory (/mnt/ramdrive) to
> access the files.  I am dismayed to find that the performance is
> actually less than simply using normal disk access.  
>  
> Previously I have set up an identical configuration on a Dell GX 270,
> 1 Gig of ram, and noticed a 2X increase in performance.  I measure
> performance by having the cgi script simply calculate the number of
> seconds it is running.  Both machines are running redhat 9, both
> machines are running the identical compiled cgi script.  Index files
> are identical.

	Are you perhaps swapping?  See top(1) or even vmstat(8) and look at the
si and so columns (swap-ins/swap-outs).

	I have 512 MB on my desktop, and I can sometimes swap when using
Gnome/Evolution/FireFox/Gnumeric.  I know that's comparing my setup to a
server, but still.

	Also, what do the CGI scripts do?  Mostly read the ramdisk files? 
Write 'em?  Read AND write (database)?

	While it's doing it's thing, run top, and see where the CPU time is
going: user, system, nice, or idle.  That might give you a hint.

	What FS did you build on the ramdisk?

	Okay, I'm beginning to ramble.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny



More information about the Ale mailing list