[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Could not map memory to RCS archive

From: Larry Jones
Subject: Re: Could not map memory to RCS archive
Date: Fri, 15 Dec 2006 16:34:43 -0500 (EST)

Laurent Duperval writes:
> I am not sure why the CVS process on the server would refuse to feed the
> file if it got close to or over 1GB. Maybe it tries to allocate memory
> to store the entire file in memory, and then make a copy? I don't know.

If your system supports mmap() (and yours does), CVS tries to map the
RCS file into memory so that it can access it directly rather than
having to use normal I/O to read it in bits and pieces, because using
mmap() is much more efficient.  In your case, the mmap() call is failing
with ENOMEM -- you may want to check the mmap() man page or ask for
advice in an OS-specific group about possible causes and solutions.  I'm
working on a patch to allow CVS to fall back on normal I/O if mmap()
fails, but there are some tricky bits and it will likely take a little
while to complete.

-Larry Jones

Oh, now YOU'RE going to start in on me TOO, huh? -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]