Re: mod_mem_cache & mod_disk_cache Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/21/07, Paul <paul.marsh@xxxxxxxxx> wrote:
> Joshua,
>
> Thank you for the reply. I'll dig deeper into the list for the
> disk_cache not storing files for the specified time.
>
> I was under the impression that mem_cache would be faster. I had
> planned on storing files that are accessed many times from a couple of
> directories, ie, /xml/ or /images/ in memory so they'd just sit there
> happily. Then for the dynamic parts of the site disk_cache could store
> those requests.

It may or may not be a little faster. But the issue is that mem_cache
needs to keep a separate copy in memory for each apache process.
disk_cache, on the other hand, takes advantage of the OS disk cache
buffers, which will probably wind up keeping the files in memory as
well. But the OS is smart enough to keep only one copy, and can
potentially do zero-copy IO (with sendfile).

Add to that the fact that mem_cache seems a little less stable
overall, and I think disk_cache is the best choice for most people.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux