Skip to contentSkip to conversation

git-daemon enabled on kernel.org

DISCUSSION H. Peter Anvin 7 participants 8 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · H. Peter Anvin

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

Signature · 2 lines
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
#2 lore raw

Erik Mouw [Wed, Oct 19, 2005 at 10:35:42AM +0200]:

Quoted 10 lines · H. Peter Anvin
Quoted 7 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?

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

Signature · 2 lines
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
#3 lore raw
Quoted 8 lines · Nico -telmich- Schottelius

Erik Mouw [Wed, Oct 19, 2005 at 10:35:42AM +0200]:

Quoted 6 lines · H. Peter Anvin
Quoted 5 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/...

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

(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

#4 lore raw
In reply to Erik Mouw
Quoted 1 line · Erik Mouw

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.

#5 lore raw
In reply to Erik Mouw
Quoted 10 lines · Erik Mouw
Quoted 7 lines · H. Peter Anvin

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

Signature · 4 lines
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/
#6 lore raw
In reply to H. Peter Anvin

Dear diary, on Tue, Oct 18, 2005 at 09:30:23PM CEST, I got a letter where "H. Peter Anvin" <[email protected]> told me that...

Quoted 3 lines

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,

Signature · 4 lines
				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.
#7 lore raw

Hi,

Quoted 8 lines · Petr Baudis

Dear diary, on Tue, Oct 18, 2005 at 09:30:23PM CEST, I got a letter where "H. Peter Anvin" <[email protected]> told me that...

Quoted 3 lines

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