lkml.org 
[lkml]   [1999]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: using mmap in creating a new 1GB file

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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.073 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site