lkml.org 
[lkml]   [1996]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: do_mmap()
Date

> If the vm area is LOCKED in core e.g. for realtime purposes, it will touch
> any of the pages by reading a byte from them.
> IMHO, this is not strictly true, it should touch the pages by _writing_ ,
> as this makes a difference on zero pages:
> imagine a realtime process that has malloced a large chunk (with a mmap
> based malloc), mlocks it, and then uses it - if memory is tight, it will
> nevertheless cause swapping activity, which is what it wanted to prevent
> by mlocking it.

Writing isn't correct either in case of read-only pages. Solution is
obvious.

Ralf

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