What is the fastest way to cleanup very large cache dirs over SMB ?

Posted by sneedy on 2007-01-19 12:24

Hi,

I looked through several pages of the forum archive, did all the standard searches for my answer so please point me to a resource if you know of one..

I have cache servers on a black box CIFS share, cleanup cannot run locally to the FS and is based on a mod time of >24hrs. Some of these directories have 100k or more files. I need to be sure the Modules and algorithms I use are fast and efficient to get through the job as quickly as possible. As it stands I am using File::Find which keeps it cross platform but since this program now accounts for huge spikes on the share It needs to be as efficient as possible.

I have a few ideas but I'm sure someone has already "skinned" this cat.

Thanks
Scot