Re: [squid-users] Configuring Squid v2.4 for GDSF and LFUDA replacement policies

From: Joe Cooper <>
Date: Wed, 13 Feb 2002 02:14:25 -0600

I believe all you need to get the heap replacement policies in any
recent version of Squid is:


Contrary to what you've read, the results of using the heap policies is
rather minimal. In low storage environments, the difference may be
worth noting, but in modern machines with hard disks way too big for web
caching purposes already, any one of the policies will provide nearly
ideal hit ratio. There is probably a small amount of benefit to using
GDSF for memory replacement, because space is at such a premium and the
more popular smaller objects are really best served from RAM. I've only
  done a few benchmarks of the impact of GDSF for memory replacement,
and the impact is small enough to where I don't have any firm
conclusions to draw about it--but it probably makes good sense in the
real world.

So, to put it in other terms: the additional replacement policies are a
neat idea, and fun to poke at, but for most users they aren't going to
really change the way Squid behaves either in hit ratio or in
performance. (If you have a small hard disk, or a lot of memory to play
with GDSF you're probably one of the users it will help.)

Gino LV. Ledesma wrote:

> Hi,
> I've been reading the FAQ and articles about Squid fine-tuning and was
> rather interested in trying out using GDSF and LFUDA for the removal
> policies. I downloaded the stable3 tarball as well as the 12-feb-02
> tarball snapshot to try it out.
> However, upon configuration:
> ./configure --enable-dlmalloc --enable-gnuregex \
> --enable-removal-policies=gdsf,lfuda,heap,lru
> somewhere down configure's output I get a complaint about a missing
> for src/repl/gdsf and src/repl/lfuda. Checking the mentioned
> directories, only Makefile turns out, containing nothing (0 bytes used).
> I've tried checking the TODO, ChangeLog, and other related files, and
> the closest thing I came to was that custom configuration for heap
> replacement policies was a "really nice to have" for Squid (in the TODO,
> I believe).
> Does this imply that Squid v2.4Stable3 and later does not support these
> alternative replacement policies? I find that odd, however, as it keeps
> on getting mentioned in the squid.conf files and other articles.
> Any help is appreciated.
> --------------------------------------
> Gino LV. Ledesma
> Ateneo Cervini-Eliazo Networks (ACENT)
> email :
> web :
> phone : (63)(2) 426-6001 ext. 5925

Joe Cooper <>
Web Caching Appliances and Support
Received on Wed Feb 13 2002 - 01:14:41 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:15 MST