threads / discuss / 2136

git-daemon enabled on kernel.org

Subject: git-daemon enabled on kernel.org

## tl;dr

8 messages between Oct 18, 2005 and Nov 8, 2005.

replies: 7people: 7as markdown or json

H. Peter Anvin· Oct 18, 2005, 19:30 UTC · lore

After getting gitweb behind mod_cache, the load on kernel.org has gotten down into the tolerable range, so I have enabled git-daemon in an attempt to fix that :)

The URL, obviously, is git://git.kernel.org/pub/scm/...
(or, to specify a specific server, git1.kernel.org or git2.kernel.org.)

I consider this experimental so far, and if it imposes an unacceptable load I'll have to disable it. It currently runs with an inetd-imposed limits of 10 instances per server.

	-hpa
Erik Mouw· Oct 19, 2005, 08:35 UTC · re: H. Peter Anvin · lore

Re: git-daemon enabled on kernel.org

On Tue, Oct 18, 2005 at 12:30:23PM -0700, H. Peter Anvin wrote:
Show 7 quoted lines
> After getting gitweb behind mod_cache, the load on kernel.org has gotten 
> down into the tolerable range, so I have enabled git-daemon in an 
> attempt to fix that :)
> 
> The URL, obviously, is git://git.kernel.org/pub/scm/...
> 
> (or, to specify a specific server, git1.kernel.org or git2.kernel.org.)
How do I tell git to change the default repository to pull from?
Erik
-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Nico -telmich- Schottelius· Oct 19, 2005, 08:40 UTC · re: Erik Mouw · lore

Re: git-daemon enabled on kernel.org

Erik Mouw [Wed, Oct 19, 2005 at 10:35:42AM +0200]:
Show 10 quoted lines
> On Tue, Oct 18, 2005 at 12:30:23PM -0700, H. Peter Anvin wrote:
> > After getting gitweb behind mod_cache, the load on kernel.org has gotten 
> > down into the tolerable range, so I have enabled git-daemon in an 
> > attempt to fix that :)
> > 
> > The URL, obviously, is git://git.kernel.org/pub/scm/...
> > 
> > (or, to specify a specific server, git1.kernel.org or git2.kernel.org.)
> 
> How do I tell git to change the default repository to pull from?

Do you mean cg-branch-add perhaps? Afaik there is no real 'default' repository, but the branches you specified. So adding a new branch will fix what you want.

Nico
-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
H. Peter Anvin· Oct 19, 2005, 16:33 UTC · re: Nico -telmich- Schottelius · lore

Re: git-daemon enabled on kernel.org

Nico -telmich- Schottelius wrote:
Show 18 quoted lines
> Erik Mouw [Wed, Oct 19, 2005 at 10:35:42AM +0200]:
> 
>>On Tue, Oct 18, 2005 at 12:30:23PM -0700, H. Peter Anvin wrote:
>>
>>>After getting gitweb behind mod_cache, the load on kernel.org has gotten 
>>>down into the tolerable range, so I have enabled git-daemon in an 
>>>attempt to fix that :)
>>>
>>>The URL, obviously, is git://git.kernel.org/pub/scm/...
>>>
>>>(or, to specify a specific server, git1.kernel.org or git2.kernel.org.)
>>
>>How do I tell git to change the default repository to pull from?
> 
> 
> Do you mean cg-branch-add perhaps? Afaik there is no real 'default' repository, but
> the branches you specified. So adding a new branch will fix what you want.
> 
With cogito, you want "cg-branch-chg origin".
	-hpa
Anton Altaparmakov· Oct 19, 2005, 08:56 UTC · re: Erik Mouw · lore

Re: git-daemon enabled on kernel.org

On Wed, 19 Oct 2005, Erik Mouw wrote:
Show 10 quoted lines
> On Tue, Oct 18, 2005 at 12:30:23PM -0700, H. Peter Anvin wrote:
> > After getting gitweb behind mod_cache, the load on kernel.org has gotten 
> > down into the tolerable range, so I have enabled git-daemon in an 
> > attempt to fix that :)
> > 
> > The URL, obviously, is git://git.kernel.org/pub/scm/...
> > 
> > (or, to specify a specific server, git1.kernel.org or git2.kernel.org.)
> 
> How do I tell git to change the default repository to pull from?

Easy, depending on how old your repository either edit .git/branches/origin or .git/remotes/origin. They contain the current default, just change it to the new one. E.g. my .git/remotes/origin for Linux-2.6 repository is:

URL: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Pull: master:origin
Best regards,
	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
Junio C Hamano· Oct 19, 2005, 09:02 UTC · re: Erik Mouw · lore

Re: git-daemon enabled on kernel.org

Erik Mouw <erik@harddisk-recovery.com> writes:
> How do I tell git to change the default repository to pull from?

Depends on how you are currently telling git what your "default repository to pull from" is. If you are using git-core (i.e. git-pull and git-fetch) for downloading, either .git/remotes/origin or .git/branches/origin file are used in this order; if you are using Cogito for downloading, it uses .git/branches/origin IIRC.

Petr Baudis· Nov 7, 2005, 23:11 UTC · re: H. Peter Anvin · lore

Re: git-daemon enabled on kernel.org

Dear diary, on Tue, Oct 18, 2005 at 09:30:23PM CEST, I got a letter where "H. Peter Anvin" <hpa@zytor.com> told me that...

> I consider this experimental so far, and if it imposes an unacceptable 
> load I'll have to disable it.  It currently runs with an inetd-imposed 
> limits of 10 instances per server.

I'm curious - how well does it do wrt. the load so far? Do you have any statistics about the number of users and how CPU-intensive is it?

Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Johannes Schindelin· Nov 8, 2005, 12:02 UTC · re: Petr Baudis · lore

Re: git-daemon enabled on kernel.org

Hi,
On Tue, 8 Nov 2005, Petr Baudis wrote:
Show 8 quoted lines
> Dear diary, on Tue, Oct 18, 2005 at 09:30:23PM CEST, I got a letter
> where "H. Peter Anvin" <hpa@zytor.com> told me that...
> > I consider this experimental so far, and if it imposes an unacceptable 
> > load I'll have to disable it.  It currently runs with an inetd-imposed 
> > limits of 10 instances per server.
> 
> I'm curious - how well does it do wrt. the load so far? Do you have any
> statistics about the number of users and how CPU-intensive is it?

I have a simple statistics to contribute out of my head. A while ago (when people complained about gitweb.cgi taking too much load), a simple pull where my local repo was up-to-date took about 4 seconds. Now it takes just 1 second.

I choose to believe that this is a sign of not too much load.

Ciao, Dscho

← back to recent threads