Re: unlinkd ??

From: Don Lewis <Don.Lewis@dont-contact.us>
Date: Thu, 3 Apr 1997 03:52:00 -0800

On Apr 3, 11:27am, Oskar Pearson wrote:
} Subject: Re: unlinkd ??
}
} So what happens is there is an external program which goes around and
} deletes files, which basically takes up this slack time, and squid says:
} "delete file x, y and z" and the unlinkd goes and does it, while
} squid continues happily.

It just occured to me that a better strategy might be to just truncate
the file to zero length. That would eliminate the need to update
the directory when removing the object, then updating the directory
again when storing a new object (both of which probably involve
synchronous writes if you're using FFS). Also when a new directory
entry is created, the entire directory must be scanned to see if
that name already exists, whereas reusing an existing directory
entry will on average only scan half the directory.

                        --- Truck
Received on Thu Apr 03 1997 - 03:56:34 MST

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