OpenVZ Forum - RDF feed
type: channel
items: NUMFLOCK Max
items: Re: NUMFLOCK Max

NUMFLOCK Max
type: item
description: Hi, I have our first client live now on openvz and ran into a problem due to the number of users. when i checked /proc/user_beancounters i noticed we were hitting the numflock limit. This was set at 1000 with a limit of 1100. I increased this to 2000:2200 and have solved the problem for now. I would like to know how can i check the maximum number of file locks avaliable on the host server so that i can set this number reliably? Thanks Mark Kernel 2.6.8-022stab077-smp
creator: molliver
date: 2006-07-12T10:19:31-00:00

Re: NUMFLOCK Max
type: item
description: Hi, "ulimit -a" on the host should show current limits. AFAIK, normally file locks are "unlimited". I believe file locks are directly related to numproc/numfile.. though not 100% sure.
creator: aistis
date: 2006-07-12T11:31:38-00:00

Re: NUMFLOCK Max
type: item
description: Hi, If that were the case why do we care about a max limit on NUMFLOCK ??? regards Mark
creator: molliver
date: 2006-07-12T12:12:52-00:00

Re: NUMFLOCK Max
type: item
description: no. you can set almost aribtrary number of flocks on files, so that's why VE should be limited. if you VE is trusted however, you can safely set nuflock limit to an arbitrary high value.
creator: dev
date: 2006-07-12T12:44:29-00:00