From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,d86f44c2176449dd,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: panzerboy@gmail.com (Jeremy Thomson) Newsgroups: comp.unix.tru64 Subject: Efficient way of deleted large directories Date: 22 Sep 2004 18:16:17 -0700 Organization: http://groups.google.com Message-ID: <6425a413.0409221716.55a1cb5@posting.google.com> NNTP-Posting-Host: 210.55.211.10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1095902177 29236 127.0.0.1 (23 Sep 2004 01:16:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 23 Sep 2004 01:16:17 +0000 (UTC) Xref: g2news1.google.com comp.unix.tru64:308 Well I got myself into quite a mess. We have a vdump tape backup, that saved cloned filesets. The vdump was taking soo long it was still going when purge routines kicked into life by cron. So we were backing up directories whilst trying to delete old files from them. Things slowed down. It seems the more activity there is on a cloned fileset the longer it takes to remove the clone, am I right? So I had directories with upwards of 500,000 files in them. Doing ... ls -1 >filelist xargs -i rm -f {}