[p4] backup strategy

Nick Barnes Nick.Barnes at pobox.com
Sat Mar 19 14:24:31 PST 2005

At 2005-03-18 21:43:39+0000, Dave Lewis writes:

> yes, and tar also slows down a lot when its creating lots of
> little files.  Also, if a directory has about 1,000 files, the
> file system slowdown is very significent. (on unix)

Kinda irrelevant now, but just a note that this sort of thing is
strongly dependent on filesystem type.  FreeBSD made a minor change to
the UFS2 filesystem code a couple of years ago which caused a huge
speed up (more than ten times) with some such operations
(e.g. untarring the "ports collection", which at the time was a
shallow broad directory hierarchy with maybe 40K small files in maybe
12K directories, 3 levels deep).

The moral being: if you find that some directory layouts give really
poor performance on a Linux or Unix box, try tweaking your filesystem.

Nick B

More information about the perforce-user mailing list