Re: Total reducing of cache misses after preloading accel-squid...

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 07 Mar 1999 22:56:29 +0100

Joachim wrote:

> i want serve with the squid accel option a static number of files which
> i want preload in the squid cache. after the preloading, the files will
> never change (otherwise i will do this by hand).

You are most likely much better of setting up a standard HTTP server
then. There are HTTP servers which are both faster and smaller than
Squid. Also spend some time on getting the object headers right to make
best possible use of user or ISP cache servers.

> so i need help to set my config to reduce the cache misses to zero for all requests.

If you think Squid is the most suitable tool after all, then the
offline_mode paramenter may do what you want, or aggresive tuning of
refresh_patters combined with ignore-reload.

> also i will serve this files only from ram-cache and don't want to "swap"
> them out to disk (i have enough ram).

Squid always stores the cached content on disk, and the current "memory
cache" is not very smart, especially not in your situation. However, if
you have plenty of ram then any modern OS will cache the files in ram.

---
Henrik Nordstrom
Spare time Squid hacker
Received on Sun Mar 07 1999 - 14:53:37 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:10 MST