Re: [squid-users] Large Files

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 07 Sep 2006 03:51:01 +0200

fre 2006-09-01 klockan 17:17 -0700 skrev Mark Nottingham:

> - squid.conf says that memory is used for "in-transit objects."
> What exactly is kept in memory for in-transit objects; just metadata,
> or the whole thing?

metadata + what is currently being proxied.

> - if something is in memory cache, does it get copied when it is
> requested (because it is in-transit)?

memory cache is the in-transit memory. The cache is by simply not
removing the data from the in-transit buffers.

> - How does sendfile support in 2.6 affect this?

It doesn't. Not really usable for Squid. Using sendfile outside one
thread/process per request designs is not trivial. So it works quite
nicely for most traditional servers, but not that well for event loop
based ones..

> - Does anyone have any experiences they'd care to relate regarding
> memory-caching very large objects?

Perfomance in Squid-2 on very large in-memory objects sucks a quite bit
in terms of CPU usage due to poor design of the in-memory "cache" in
Squid. It wasn't intended to be used for objects >8KB.

Regards
Henrik

Received on Wed Sep 06 2006 - 19:51:07 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:03 MDT