Re: using mmap in creating a new 1GB file

Jason Gunthorpe (jgg@ualberta.ca)
Thu, 2 Dec 1999 13:00:21 -0700 (MST)


On Thu, 2 Dec 1999, James Manning wrote:

> munmap/close time.... one of his ideas included explicitly unmapping
> each page once the app done writing to it (100% sequential writes),
> although something that could generate this behavior implicitly
> would be fantastic.

POSIX has specified the msync syscall to do this. If you call it after
each page you write with the MS_ASYNC flag it should schedual an IO for
that page and return immediately.

Jason

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/