{{ Project | Multithreaded Weekly Distributed Depot Verify | curator = Kirk McCann and Luke Howell | path = //guest/kirk_mccann/Multithreaded_Verify/ | download = //guest/kirk_mccann/Multithreaded_Verify/p4verify_step2_runverify.cc | language = C++ | license = GPL }} === About This Project === This project was created to perform a P4 verify against all the depots in a perforce instance on a regular basis without the burden of a long downtime.

'''This code does this in these steps:''' #Check to see if its a new week
#Read the log to determine what Depots have been Verified by this process this week
#Get a list of all the Depots
##While getting the list of depots the verified depots are filtered out
#(Multithreaded) Get the number of files and the size of each Depot
#Sort all the Depots by Size
#Distribute the unverified depots across the remaining days it is scheduled to run
#(Multithreaded) Verify the depots that have been allocated to run today
#Log the depots that were verified


'''The following variables may need to be modified before compiling:'''
*LOG_FILE "/var/log/p4verify_log"
**The location of the verify log file
*ERROR_LOG "/var/log/p4verify_error_log"
**The location of the error log file.
*PASSWD
**The token for the perforce account
*PORT
**The host:port for the perforce server
*USERNAME
**The username that will be used to perform the perforce commands
*WEEKLY_START_DAY
**The number that will be used as the first day of the week
*WEEKLY_END_DAY
**The number that will be used as the end of the week
*NUM_WEEKLY_RUNS
**The number of days the process will run
*DAYS_TO_RUN
**A numerical list of the days that the process will run
*NUM_THREADS
**Number of threads to use when getting size and verifying the depots
**This number needs to be adjusted based on the number and speed of your processors and the speed of your storage device. If this number is too high the bandwidth to your storage device may become overloaded.


{{ License | GPL | 2012 | Kirk McCann and Luke Howell }} {{ RecentChanges | //guest/kirk_mccann/Multithreaded_Verify/ }} [[Category:Perforce administrative tools]]