Apache-ASP
view release on metacpan or search on metacpan
site/articles/perlmonth3_tune.html view on Meta::CPAN
<h3>Tuning</h3>
After running the first bench, and watching the system under
top, it becomes strikingly clear that disk i/o is the bottleneck,
with 50%+ of the time spent waiting for disk. The reason
is that state management for $Session and $Application uses
SDBM_File, or optionally DB_File, databases on disk to store data,
and is highly i/o intensive.
<p>
The <i>trick</i> then is to relocate the <tt>StateDir</tt>
to a fast cached file system. On Solaris, this happens to
be /tmp/... by default, but on Linux and WinNT, the file systems seem
to be cached automatically, so you may not need to do anything
except locate <tt>StateDir</tt> to a secure, non-browsable, location.
Using a cached or RAM file system will also spare your disk, which is good
as it is often the first thing to go on your box.
<center>
( run in 1.111 second using v1.01-cache-2.11-cpan-71847e10f99 )