Re: [SoC] Jail Resource Limits

2006-08-21 Thread Chris Jones
On 21-Aug-06, at 9:37 AM, Remko Lodder wrote: Before my little question, i would like to take the opportunity to thank you for the hardwork, this is a much requested feature and will greatly appriciated by the crowd :-) Cheers for that!. Thanks! I do some web hosting with jails on the side, a

[SoC] Jail Resource Limits

2006-08-21 Thread Chris Jones
Hi, folks: I've completed the Summer of Code work on the jail resource limits (http://wikitest.freebsd.org/JailResourceLimits); jails can now have soft-ish limits placed on their memory and CPU usage. Briefly, when a jail uses more memory than its limit, pages are clawed back by a new ker

Re: [PATCH] Jail Memory Limits

2006-08-08 Thread Chris Jones
On 6-Aug-06, at 9:08 AM, Alex Lyashkov wrote: I read you patch and see you start N kernel threads for control memory/CPU usage, when each thread in loop count total memory usage. What are reason why not create memory limit similar limit(1)? for this need add pointer to prison structure at each

[PATCH] Jail Memory Limits

2006-08-01 Thread Chris Jones
Hi, folks --- I have a beta patch to add memory limits (on the basis of RSS) to jails, and would love to get some people to test it out. The patch files (below) are against RELENG_6 from earlier this morning, but should work against anything recent. They should be applied under /usr/src

Re: Jail-Aware Scheduling

2006-06-11 Thread Chris Jones
On 11-Jun-06, at 6:50 AM, Pieter de Goeje wrote: For my CS study I picked up "Operating System Concepts" by Silberschatz, Galvin and Gagne. It has a fairly detailed description of the inner workings of a scheduler and the various algorithms involved, but no actual implementation. Yep, we u

Re: Jail-Aware Scheduling

2006-06-11 Thread Chris Jones
On 11-Jun-06, at 6:50 AM, Pieter de Goeje wrote: For my CS study I picked up "Operating System Concepts" by Silberschatz, Galvin and Gagne. It has a fairly detailed description of the inner workings of a scheduler and the various algorithms involved, but no actual implementation. Yep, we u

Jail-Aware Scheduling

2006-06-10 Thread Chris Jones
Hi, folks --- as some of you might know, FreeBSD has a Summer of Code project to bring resource limits to jails, and one part of that is to permit an administrator to put limits on a jail's CPU usage. That's where I come in: I'm the guy doing the project, and I've been spending the last