On Thu, 7 Dec 2006, H. Peter Anvin wrote:I really don't see what gitweb could do that would be somehow better than apache doing the caching in front of it.. Is there some apache reason why that isn't sufficient (ie limitations on its cache size or timeouts?) Maybe the cacheability hints from gitweb could be tweaked (a lot of it should be "infinitely cacheable", but the stuff that depends on refs and thus can change, could be set to some fixed host-wide value - preferably some that depends on how old the ref is). Having gitweb be potentially up to an hour out of date is better than causing mirroring problems due to excessive load. For example, if the git "refs/heads/" (or tags) directory hasn't changed in the last two months, we should probably set any ref-relative gitweb pages to have a caching timeout of a day or two. In contrast, if it's changed in the last hour, maybe we should only cache it for five minutes. Jakub: any way to make gitweb set the "expires" fields _much_ more aggressively. I think we should at least have the ability to set a basic rules like - a _minimum_ of five minutes regardless of anything else We might even tweak this based on loadaverage, and it might be worthwhile to add a randomization, to make sure that you don't get into situations where everything webpage needs to be recalculated at once. - if refs/ directories are old, raise the minimum by the age of the refs If it's more than an hour old, raise it to ten minutes. If it's more than a day, raise it to an hour. If it's more than a month old, raise it to a day. And if it's more than half a year, it's some historical archive like linux-history, and should probably default to a week or more. - infinite for stuff that isn't ref-related. Hmm? Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Rafael J. Wysocki | 2.6.28-rc5: Reported regressions from 2.6.27 |
| Kamalesh Babulal | [BUG] 2.6.23-rc3-mm1 - kernel BUG at net/core/skbuff.c:95! |
| Andi Kleen | Re: [git pull] kgdb-light -v8, (was: Re: kgdb in git-x86#mm review) |
| Karl Meyer | PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out" |
git: | |
| Mirko Stocker | Working with Git and CVS in a team. |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Wink Saville | Resolving conflicts |
| Sam Song | Fwd: [OT] Re: Git via a proxy server? |
| Jerome Santos | sshd.config and AllowUsers |
| Marco Peereboom | Re: What is our ultimate goal?? |
| Will Maier | Re: howto set global environment variable (e.g. PATH, JAVA_HOME) |
| Brandon Lee | DELL PERC 5iR slow performance |
| ackman | RTL8169 driver no longer functioning with 8111b |
| Patrick McHardy | pkt_sched: add DRR scheduler |
| denys | NMI lockup, 2.6.26 release |
| Felix Radensky | RE: e1000e "Detected Tx Unit Hang" |
| Kernel Panic when schedule is called | 39 minutes ago | Linux kernel |
| VPN's on NetBSD | 13 hours ago | NetBSD |
| Why does uClinux 2.6.18 bootup block SuperIO UART IRQs that BIOS configured | 15 hours ago | Linux kernel |
| USB statistics | 16 hours ago | Linux kernel |
| Block Sub System query | 20 hours ago | Linux kernel |
| kernel module to intercept socket creation | 21 hours ago | Linux kernel |
| Image size changing during each build | 22 hours ago | Linux kernel |
| Soft lock bug | 1 day ago | Linux kernel |
| sysctl - dynamic registration problem | 1 day ago | Linux kernel |
| Question on swap as ramdisk partition | 1 day ago | Linux kernel |
