lkml.org 
[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.4.10 VM: what avoids from having lots of unwriteable inactive pages


On Tue, 25 Sep 2001, Rick Haines wrote:

> On Tue, Sep 25, 2001 at 01:13:37PM -0300, Rik van Riel wrote:
> > On Tue, 25 Sep 2001, Linus Torvalds wrote:
> > > On Tue, 25 Sep 2001, Rik van Riel wrote:
> > > > >
> > > > > swap_out() will deactivate everything it finds to be not-recently used,
> > > > > and that's how the inactive list ends up getting replenished.
> > > >
> > > > mlock()
> > >
> > > Hey, if you've mlock'ed more than your available memory, there's nothing
> > > the VM layer can do. Except maybe a nice printk("Kiss your *ss goodbye");
>
> Shouldn't there be a threshold where mlock will fail?

There is (for users). Take a look at ulimit:

-l The maximum size that may be locked into memory



> Or are you saying that in general mlocking lots of memory will screw the
> VM?

Yes it will.

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

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