7 messages in com.perforce.perforce-user[p4] Re: p4 verify -q
FromSent OnAttachments
Craig Allsop04 Feb 2004 15:57 
ste...@vance.com04 Feb 2004 16:57 
Craig Allsop05 Feb 2004 20:00 
Rich Ireland05 Feb 2004 20:12 
Robert Cowham06 Feb 2004 00:32 
Craig Allsop06 Feb 2004 01:46 
ste...@vance.com06 Feb 2004 08:21 
Subject:[p4] Re: p4 verify -q
From:ste...@vance.com (ste@vance.com)
Date:02/04/2004 04:57:34 PM
List:com.perforce.perforce-user

You can speed up your first verify by running

p4 verify -q //...#1

The upside of this is that you are only verifying checksums for a single revision. The downside is that this is only a valid optimization for text files.

The reason it works for text files is because of the reverse RCS delta format. The head is stored in full and you have to apply all deltas to reconstruct the first version. The chances of the first version reconstructing with the same MD5 signature if the file is corrupt (and was not corrupt when the signature was stored) is extremely small.

However, because binaries are stored in their entirety, this doesn't perform against binaries in the same way. If your binaries are stored in different trees or with a small number of unique file patterns, you can use two or more verify commands to cover your depot and optimize where possible.

Steve

Craig Allsop writes:

Hello all.

Our nightly checkpoint verifies all depots and checks for errors, updates all
depots and checkpoints, i.e. bascially...

p4 verify -q //... p4 verify -qu //... p4 admin checkpoint -z

The first verify takes 6 hours to perform whereas the update takes 2 minutes and
checkpoint takes 14 minutes. Is this unusually long? Should we only verify from
last verify to #head nightly and the whole lot weekly or something?

The depot stats are:

50 GB of files 4.2 GB of database files

From largest to smallest: 1.4 GB db.have 1.4 GB db.integ 950 MB db.rev 480 MB db.revcx 38 MB db.label

Machine is Linux P4 2.8 Ghz 1Mb Ram IDE Raid 1 - 2 x 80 GB Seagate drives.

Craig.

==================== Stephen Vance http://www.vance.com