On 22/06/07 06:15 AM, Christian Kujau wrote:
> On Tue, June 19, 2007 18:08, Skiiiks wrote:
>> I have simple static files in /dev/shm...
>
> Isn't /dev/shm world-writable? I would not serve from
www-data from this
> directory...
/dev/shm is just a tmpfs (ram) filesystem. If you want to
serve web data
from a ram fs you should create your own (i.e. add a fstab
entry) with
the permissions you want.
>> in that case, mod_mem_cache and mod_cache are
unuseful , arent they ?
>
> For static content probably not. But only test would
tell for sure, IMHO.
>
IMO either solutions are useless for this particular case.
Even when
serving the files from a standard filesystem, unless your
server is
badly missing ram (i.e. lot of swap activity under normal
load)
everything will be in the system's cache.
On most of my servers I can run a full updatedb in a few
seconds without
any disk read. That's because we have plenty of ram free and
all file's
statistics are in the system cache (from previous daily
runs). Of course
the first run after boot takes much longer (about 5 minutes
at least).
Thomas
|