Re: 2.3S2: unlink vs. truncate on Linux/ext2?

From: Duane Wessels <[email protected]>
Date: Mon, 27 Mar 2000 10:10:48 -0700

On Sun, 26 Mar 2000, Henrik Nordstrom wrote:

> Steve Snyder wrote:
> >
> > Has anyone collected statistics on the relative performance of
> > truncate vs. unlink when Squid v2.3S2 is running on a Linux ext2
> > filesystem?
>
> Some preleminary and possibly very inaccurate measurements I have made
> seems to indicate that unlink+create+write is slightly faster than
> truncate+write.. don't ask me why. I expected the reverse.
>
> It would be interesting to have polygraph runs of the two configurations
> to see if there in "real life" is any difference for Squid.

My Polygraph tests with unlink vs truncate showed a very slight edge
for truncate.

http://www.squid-cache.org/Benchmarking/std1/2.2.stable3-unlink/

Duane W.
Received on Mon Mar 27 2000 - 10:13:34 MST

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