Re: Problem with git-daemon and mmap.
- From
Gerrit Pape <pape@smarden.org>
- Date
- Apr 25, 2007, 08:11 UTC
- Message-ID
- <20070425081136.9611.qmail@f75c6e4144fd72.315fe32.mid.smarden.org>
- In-Reply-To
- <1177488073.12689.30.camel@localhost>
On Wed, Apr 25, 2007 at 05:31:13PM +0930, Tim Ansell wrote:
Show 7 quoted lines
> > In the debian package version 1.4.4.4, git-daemon's memory by default is > > limited to 64MB. I changed that with 1.5.0, but maybe you chose to not > > accept the changes to the run script when upgrading to 1.5.5.1-1. > > > > Check /var/service/git-daemon/run, if it has 'exec chpst -m64000000 > > git-daemon ...'. If so, remove 'chpst -m64000000', and restart the > > git-daemon service through 'sv restart git-daemon'.
> It appears that after upgrading the git-daemon-run from 1.4.4 to 1.5.1, > I didn't do a "sv restart git-daemon".
Probably the package upgrade should have done this for you, my fault.
Show 7 quoted lines
> After running the command I can now do a checkout form the web > repository, yay! > > It appears to use 128m of virtual memory when checking out the > repository (which is why it would be hitting the 64Mb limit). > > Would adding a "chpst -m256000000" be a good idea?
I personally think so, yes, limiting the memory for long running processes (services) generally is a good idea. But finding a good default for git-daemon isn't easy, as it depends on the repositories it serves, and requires lots of memory per se. So on Debian, it's now unlimited by default.
Regards, Gerrit.