Re: kernel.org mirroring (Re: [GIT PULL] MMC update)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jeff@...>
Cc: H. Peter Anvin <hpa@...>, Rogan Dawes <discard@...>, Kernel Org Admin <ftpadmin@...>, Git Mailing List <git@...>, Jakub Narebski <jnareb@...>
Date: Friday, December 8, 2006 - 8:45 pm

On Fri, 8 Dec 2006, Jeff Garzik wrote:

Ok, this doesn't do the locking either, so on cache misses or expiry, 
you're still going to be that thundering herd.

Also, if you want to be nice to clients, I'd seriously suggest that when 
you hit in the cache, but it's expired (or it's close to expired), you 
still serve the cached data back, but you set up a thread in the 
background (with some maximum number of active threads, of course!) that 
refreshes the cached entry and then you extend the expiration time so that 
you won't end up doing this "refresh" _again_.

It's kind of silly to have people wait for 20 seconds just because a cache 
expired five seconds ago. Much nicer to say "ok, we allow a certain 
grace-period during which we'll do the real lookup, but to make things 
_look_ really responsive, we still use the old cached value".

			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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kernel.org mirroring (Re: [GIT PULL] MMC update), Linus Torvalds, (Fri Dec 8, 8:45 pm)
Re: kernel.org mirroring (Re: [GIT PULL] MMC update), Jeff Garzik, (Sat Dec 9, 5:16 am)
Re: kernel.org mirroring (Re: [GIT PULL] MMC update), H. Peter Anvin, (Fri Dec 8, 8:47 pm)