List Info

Thread: mod_mem_cache and mod_cache Vs /dev/shm




mod_mem_cache and mod_cache Vs /dev/shm
country flaguser name
Germany
2007-06-19 11:08:20
Hi:

I have simple static files in /dev/shm...
in that case, mod_mem_cache and mod_cache  are unuseful , arent they ?

thank you

Re: mod_mem_cache and mod_cache Vs /dev/shm
country flaguser name
Germany
2007-06-19 20:12:49
TUX maybe the fastest one for you.

On 6/20/07, Skiiiks <skiiiksgmail.com> wrote:
>
>  Hi:
>
>  I have simple static files in /dev/shm...
>  in that case, mod_mem_cache and mod_cache  are
unuseful , arent they ?
>
>  thank you
>
>


Re: mod_mem_cache and mod_cache Vs /dev/shm
country flaguser name
Germany
2007-06-21 04:02:18
tux is giving 2500 req/s average with a 1K file, lighttpd
reach easily 
3000 :P


my benchmarks does not say the same ;)

Snailfly.Yin wrote:
> TUX maybe the fastest one for you.
>
> On 6/20/07, Skiiiks <skiiiksgmail.com> wrote:
>>
>>  Hi:
>>
>>  I have simple static files in /dev/shm...
>>  in that case, mod_mem_cache and mod_cache  are
unuseful , arent they ?
>>
>>  thank you
>>
>>
>


Re: mod_mem_cache and mod_cache Vs /dev/shm
country flaguser name
Germany
2007-06-22 05:15:05
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...

> 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.

-- 
BOFH excuse #442:

Trojan horse ran out of hay


Re: mod_mem_cache and mod_cache Vs /dev/shm
country flaguser name
Germany
2007-06-23 22:41:02
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


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )