git/list[1] front-page[2] threads[3] people[4] search[5] about
 

read-for-fill and caching in gitweb (Re: kernel.org mirroring)

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Dec 28, 2006, 20:45 UTC
Message-ID
<46a038f90612281245s52bdd868h8c421951c7abeb84@mail.gmail.com>
On 12/9/06, Linus Torvalds <torvalds@osdl.org> wrote:
> Actually, just looking at the examples, it looks like memcached is
> fundamentally flawed, exactly the same way Apache mod_cache is
> fundamentally flawed.

memcached is really fast internally, but can be rather slow from the POV of the client code, as it forces a costly marshalling/unmarshalling of data. For perl-only situations where it is OK to have per-server caches, I have been looking at Cache::FastMmap. I will probably try to implement caching for the projects, summary & log/shortlog pages using Cache::FastMap

And I'll do read-for-fill for it, and see how that goes.

(BTW, in the last week I've had to implement a similar anti-thundering-herds cache in PHP using memcached and/or eaccelerator -- a shmem cache -- and I've done a read-for-fill for both of them that works reasonably well.)

cheers,
martin
Next: Robert Fitzsimons
Message 1 of 6 in “read-for-fill and caching in gitweb (Re: kernel.org mirroring)”
  1. Martin LanghoffDec 28, 2006
  2. Robert FitzsimonsDec 29, 2006
  3. Jakub NarebskiDec 29, 2006
  4. Martin LanghoffDec 29, 2006
  5. Jakub NarebskiDec 29, 2006
  6. Robert FitzsimonsDec 29, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.