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

Re: [PATCH 3/5] autoconf: Preliminary check for working mmap

From
Shawn Pearce <spearce@spearce.org>
Date
Sep 5, 2006, 03:09 UTC
Message-ID
<20060905030929.GA29865@spearce.org>
In-Reply-To
<edidlp$d3d$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> wrote:
Show 22 quoted lines
> Junio C Hamano wrote:
> 
> > Jakub Narebski <jnareb@gmail.com> writes:
> > 
> >> This patch sent earlier in other patch series and dropped,
> >> as git uses private mapping, not private fixed. I think
> >> that this check is better than no check at all...
> > 
> > I think the next major change that is needed fairly soon is to
> > be able to mmap parts of a large pack file (even with 32-bit
> > offset).  I haven't loooked into it deeply enough but it may or
> > may not turn out to be beneficial if we map at fixed location so
> > the requirements of "working mmap()" might change.  I'd be
> > happier if you held onto this part of the patch before that
> > happens.
> 
> Well, this patch perhaps not always would set NO_MMAP when it should 
> (some broken mmap that does private+fixed but not private), but I guess that
> if it would set NO_MMAP then mmap is broken (or doesn't exist at all).
> 
> I have noticed AC_FUNC_MMAP test, and thought why not to use it?
> The simplest check if mmap exist would be to check libc for mmap function.

Are there really mmap implementations that will only do private+fixed? Sick.

I'm maybe only 1/3 of the way through the sliding window mmap implementation. I've got a good chunk of sha1_file.c converted but I still have to deal with the copying in pack-objects.c and the verify code in verify-pack.c. I'm hoping I can send a preliminary patch series tomorrow as I'm going to work on it more tonight and tomorrow.

-- 
Shawn.
Previous: Jakub NarebskiNext: Junio C Hamano
Message 10 of 19 in “Some autoconf patches”
  1. 0/5 Some autoconf patchesJakub Narebski, Sep 4, 2006
  2. 1/5 autoconf: Add some commented out variables to config.mak.inJakub Narebski, Sep 4, 2006
  3. 2/5 autoconf: Add -liconv to LIBS when NEEDS_LIBICONVJakub Narebski, Sep 4, 2006
  4. Jonas FonsecaSep 5, 2006
  5. autoconf: Fix copy'n'paste errorJakub Narebski, Sep 5, 2006
  6. Junio C HamanoSep 5, 2006
  7. 3/5 autoconf: Preliminary check for working mmapJakub Narebski, Sep 4, 2006
  8. Junio C HamanoSep 4, 2006
  9. Jakub NarebskiSep 4, 2006
  10. Shawn PearceSep 5, 2006
  11. Junio C HamanoSep 5, 2006
  12. Shawn PearceSep 5, 2006
  13. Junio C HamanoSep 5, 2006
  14. Shawn PearceSep 6, 2006
  15. Junio C HamanoSep 6, 2006
  16. Junio C HamanoSep 6, 2006
  17. Shawn PearceSep 7, 2006
  18. 4/5 autoconf: Check for subprocess.pyJakub Narebski, Sep 4, 2006
  19. 5/5 autoconf: Quote AC_CACHE_CHECK argumentsJakub Narebski, Sep 4, 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.