[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ways to keep users from checking out too much.

From: Paul Querna <chip_at_force-elite.com>
Date: 2006-02-23 06:19:10 CET

Brian Behlendorf wrote:
> On Wed, 22 Feb 2006, Garrett Rooney wrote:
>> It might be possible to do some magic in apache modules to make that
>> work, but I'm not sure how off the top of my head. Would certainly be
>> nice though.
>
> mod_throttle? mod_bandwidth?
>
> Brian

These existing modules wouldn't actually fix much, since they are
generally designed to limit the number of concurrent requests, and/or
bandwidth used, neither of which is causing the load problem.

One thing you can do, is drop the priority of the Subversion HTTPD
Process, so it doesn't starve the machine for IO and CPU.

So, I hacked up a 'mod_renice' tonight:
  http://paul.querna.org/~chip/mod_renice.c

Basic flow is to call setpriority() when we detect a REPORT method on
any repo path matching a regular expression. When the request ends, we
restore our original priority.

Its only been tested lightly on FreeBSD 6. YMMV.

-Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 23 06:19:30 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.