how to get mmap page size?

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jan 16 17:21:00 GMT 2009


On Jan 16 15:10, Jay Foad wrote:
> Corinna Vinschen wrote:
> 
> > mmap always allocates in 64K chunks.
> 
> That doesn't seem to be true in practice. In the test below I mmap a
> 1080K file (this is a multiple of 4K but not a multiple of 64K). The
> first byte after the end of the file isn't readable.

Right.  The reason is that mmap started to map memory top down at one
point to fix a problem with Windows Vista.  The mechanism to align
the map always to 64K is still in Cygwin, but it currently doesn't
work for files.  I'll have a look into fixing that for Cygwin 1.7.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list