# git-daemon enabled on kernel.org

8 messages from 2005-10-18 to 2005-11-08. Participants: H. Peter Anvin, Erik Mouw, Nico -telmich- Schottelius, Anton Altaparmakov, Junio C Hamano, Petr Baudis, Johannes Schindelin.
Thread: https://gitlist.dev/t/2136

## H. Peter Anvin, 2005-10-18 19:30

Subject: git-daemon enabled on kernel.org
Message-ID: <43554D4F.7040403@zytor.com>
URL: https://gitlist.dev/e/43554D4F.7040403%40zytor.com

```
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, 2005-10-19 08:35

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <20051019083542.GA31526@harddisk-recovery.com>
URL: https://gitlist.dev/e/20051019083542.GA31526%40harddisk-recovery.com
In-Reply-To: <43554D4F.7040403@zytor.com>

```
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?


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

```

## Nico -telmich- Schottelius, 2005-10-19 08:40

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <20051019084056.GL22986@schottelius.org>
URL: https://gitlist.dev/e/20051019084056.GL22986%40schottelius.org
In-Reply-To: <20051019083542.GA31526@harddisk-recovery.com>

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

Nico
-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.

```

## Anton Altaparmakov, 2005-10-19 08:56

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <Pine.LNX.4.64.0510190955260.31324@hermes-1.csi.cam.ac.uk>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0510190955260.31324%40hermes-1.csi.cam.ac.uk
In-Reply-To: <20051019083542.GA31526@harddisk-recovery.com>

```
On Wed, 19 Oct 2005, Erik Mouw wrote:
> 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, 2005-10-19 09:02

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <7v7jc9dgm1.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v7jc9dgm1.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20051019083542.GA31526@harddisk-recovery.com>

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

```

## H. Peter Anvin, 2005-10-19 16:33

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <43567556.1010506@zytor.com>
URL: https://gitlist.dev/e/43567556.1010506%40zytor.com
In-Reply-To: <20051019084056.GL22986@schottelius.org>

```
Nico -telmich- Schottelius wrote:
> 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

```

## Petr Baudis, 2005-11-07 23:11

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <20051107231157.GX1431@pasky.or.cz>
URL: https://gitlist.dev/e/20051107231157.GX1431%40pasky.or.cz
In-Reply-To: <43554D4F.7040403@zytor.com>

```
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, 2005-11-08 12:02

Subject: Re: git-daemon enabled on kernel.org
Message-ID: <Pine.LNX.4.63.0511081259210.2649@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0511081259210.2649%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <20051107231157.GX1431@pasky.or.cz>

```
Hi,

On Tue, 8 Nov 2005, Petr Baudis wrote:

> 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

```
