Bugzilla – Bug 920
man for vzctl about numfile should be fixed
Last modified: 2015-04-01 14:42:32 EDT
Denis Lunev said:
а не надо ставить барьер == лимит
оно выделяет квантами до барьера и переходит к честной выдаче после
квант от 5 до 10 дескрипторов на процесс
but in man one can see:
Maximum number of open files. Setting the barrier and the limit to different values does not make practical sense.
actually, barrier for NUMFILE has sense for setting thresholds for NUMFILE precharging to each process (speedup file opening).
More precisely, the system distribute barrier(UB_NUMFILE)/8 of such files.
Here's the current definition, from http://wiki.openvz.org/numfile:
> Number of open files.
> The barrier should be set equal to the limit. The configuration of this
> parameter doesn't affect security and stability of the whole system or
> isolation between containers. Its configuration affects functionality
> and resource shortage reaction of applications in the given container only.
If this one is incorrect or incomplete, let's modify it first and then I'll copy-paste that to the man page.
Den, could you take a look at wiki please?
> If this one is incorrect or incomplete,
Neither. Such a barrier behaviour was done for performance improvements and changing the barrier was never supposed to be a blessed way for a *user* to tune its VEs - it was purely for debugging/testing purposes.
But I agree, that we should reflect this in man pages somehow.
Pavel, please suggest your text, or just edit it in wiki and let me know.
Wiki page updated
So, is the man page correct then it says "Setting the barrier and the limit to
different values does not make practical sense"?
(In reply to comment #7)
> So, is the man page correct then it says "Setting the barrier and the limit to
> different values does not make practical sense"?
OK maybe in the man page we could write something like
"Setting the barrier to 0 effectively disables pre-charging optimization for this beancounter in the kernel, which leads to the held value being precise but could slightly degrade file open performance."
What do you think?
Fixed in GIT:
Will be available in vzctl >= 3.0.24
Bug was fixed more than one year ago and there were no complains from reporter after fix. We believe bug fix helped and mark bug as closed.