Multiple Maxresults, Maxscanrows, and Maxlocktime Values

SUMMARY

Which value of MaxResultsMaxScanRows, or MaxLockTime applies to a user who is in more than one group?


DETAILS

The limit that affects a user is the highest MaxResultsMaxScanRows, or MaxLockTime value of all the groups to which a user belongs.

For the purposes of MaxResultsMaxScanRows, and MaxLockTime, a value of 0 or "unlimited" is not a limit. If a user is in a group where either value is set to "unlimited" they are still limited by the highest value of that setting of the other groups to which they belong. User commands are truly unlimited only when they belong to no groups, or when all the groups they belong to have MaxResultsMaxScanRows, or MaxLockTime set to "unlimited".

Any numeric setting overrides the group "unlimited" setting. For example, if user "mike" belongs to the "programmers" group, which has a maxresults setting of 10000, and the "p4admin" group, which has a maxresults setting of "unlimited", his limit is 10000. For this reason we recommend that the settings for MaxResultsMaxScanRows, and MaxLockTime are set to an absolute high value for groups that you don't want to impose a limit on. 

Example

Group:       superusers
Maxresults:  10000000
Maxscanrows: 20000000
Maxlocktime: 1800000

The following is an example showing how to find out all MaxScanRows values for the user "bruno":

C:\>p4 groups -i bruno
qa admin
C:\>p4 groups -v qa
qa 100000 100000 100000 100000
C:\>p4 groups -v admin
p4admin 100000  200000  300000 400000

In this example, bruno's MaxScanRows limit would be 200000.

For more information on using MaxResultsMaxScanRows, and MaxLockTime, refer to the "Tuning Perforce for Performance" chapter of the Perforce System Adminstrator's Guide and KB Article #48: Maximizing Perforce Performance.