On Fri, 22 Oct 1999, Urban Grena wrote:
> Hi!
>
> I would like to ask you a question:
> Why does squid prefer truncating files to deleting them ? Is it because of
> speed? And what can I expect if I change this default behavior? (Anybody
> tried to measure this?)
People report different things for unlink vs truncate. In my
tests, truncate proved to give a little higher throughput.
See http://www.squid-cache.org/Benchmarking/std1/2.2.stable3-unlink/
Other people report that truncate is the same, or worse. It probably
depends on your particular operating system and how the filesystem
works.
Duane W.
Received on Fri Oct 22 1999 - 12:04:22 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:02 MST