*SOLVED* Are user beancounters available as separate patch? [message #14004] |
Sat, 09 June 2007 23:25 |
piavlo
Messages: 159 Registered: January 2007
|
Senior Member |
|
|
Hi,
Are user beancounters functionality available as a separate mainline kernel patch? Since i'm interested just in using the UBC functionality without setting any Virtual Environments.
Does the openvz patched kernel allows that?
Or, maybe, someone can suggest other patch which allows similar
functionality?
Thanks
Alex
[Updated on: Thu, 21 June 2007 09:02] by Moderator Report message to a moderator
|
|
|
|
|
Re: Are user beancounters available as separate patch? [message #14072 is a reply to message #14005] |
Thu, 14 June 2007 08:53 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Hello,
You're right, UBC is a separate thing, that can be used as a separate technology. I see now two major ways:
1) You can use pure OpenVZ kernel. There are syscalls: setluid(), setublimit(), ... that allow you to set a UB for a process and manage UB limits. So, actually you can set a separate UB for every user's first process and in this way achieve your aim.
You can consult vzctl soruces and kernel sources for more details.
2) There was an attempt to merge UBC in mainstream, so there were patches and user-space tools that allow to create a UBC-based solutions separated from OpenVZ. Look at lkml and container mailing lists archives.
HTH,
Vasily.
|
|
|