This directory contains the "locks.pl" script discussed in my presentation at the 2006 Perforce European User Conference, "Performance and Database Locking at Large Perforce Sites." The locks.pl script reports on p4 commands holding locks, which helps track down the causes of the Perforce server hanging. Notes: - locks.pl must be run on the same machine as the Perforce server. - It must either be run as same Unix user as Perforce server, or it prompts for a password to run "sudo". This is a limitation of the Linux lsof command. - At the beginning of the script there are few constants which may need to be changed for your site. - locks.pl can be run "as is" with the -d for demo mode. The reason this is considered demo mode is that if the server is hanging, the script may hang as well when it tries to execute the "p4 monitor show" command. "Production mode" involves a tiny separate Perforce server running on port 1999. The setup.sh script will set this up. You'll need to set a few constants before running this script. - locks.pl has been tested on Linux and is likely to run on other versions of Unix with minor modification. It will not run on Windows. usage: locks.pl [-dvk] -d demo mode--doesn't require separate server running -v verbose -k kill long-running "p4 integrated" and "p4 changes -i" commands The slides for the presentation are available on Perforce's web site as http://www.perforce.com/perforce/eucon2006/presentations/Google.pdf. Please e-mail comments or suggestions to dbloch@google.com. Dan Bloch Google 29-Sep-2006
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 6020 | Dan Bloch | Add link to slides on paper on Perforce's web site. | ||
#5 | 5931 | Dan Bloch |
Disable -y flag if log location is commented out. Minor tweaks to README. |
||
#4 | 5929 | Dan Bloch |
Initial submission of lockers.pl and updates to README. Presented at Perforce User Conference 2007. |
||
#3 | 5926 | Dan Bloch | add placeholder README text for lockers.pl | ||
#2 | 5684 | Dan Bloch |
First version of locks.pl and supporting scripts and docs, from Europe Users Conference talk. |
||
#1 | 5666 | Dan Bloch | placeholder README file |