git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problem with git-daemon and mmap.

From
Gerrit Pape <pape@smarden.org>
Date
Apr 25, 2007, 07:42 UTC
Message-ID
<20070425074233.7494.qmail@076ec8c0ddad74.315fe32.mid.smarden.org>
In-Reply-To
<1177483875.12689.22.camel@localhost>
On Wed, Apr 25, 2007 at 04:21:15PM +0930, Tim Ansell wrote:
Show 5 quoted lines
> I am trying to use git-daemon on a Debian stable machine. We converted
> our repositories from darcs to git using tailor (which seemed to work
> well). Most of the repositories work fine, however our web repository
> which is quite large (about ~126Mb) is causing problems when trying to
> clone via git-daemon.
> The machine as only 512mb of Ram. It isn't running much else apart from
> a few websites served via apache. Here is some more (hopefully useful)
> ii  git-daemon-run                   1.5.1.1-1
> fast, scalable, distributed revision control
> Hopefully this gives you enough information to track down this bug. I'm
> happy to provide more information if needed. I'll also be on #git, but
> I'm in Australia so you might have a hard time catching me.

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'.

HTH, Gerrit.
Previous: Tim AnsellNext: Tim Ansell
Message 2 of 7 in “Problem with git-daemon and mmap.”
  1. Tim AnsellApr 25, 2007
  2. Gerrit PapeApr 25, 2007
  3. Tim AnsellApr 25, 2007
  4. Gerrit PapeApr 25, 2007
  5. Shawn O. PearceApr 25, 2007
  6. Linus TorvaldsApr 25, 2007
  7. Alex RiesenApr 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.