lkml.org 
[lkml]   [2000]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MADV_SPACEAVAIL and MADV_FREE in pre2-3
On Mon, 20 Mar 2000, Richard Henderson wrote:
> On Sun, Mar 19, 2000 at 02:38:47PM -0500, Chuck Lever wrote:
> > what does MADV_SPACEAVAIL do?
>
> Snipped from the DU man page:
>
>
> MADV_SPACEAVAIL
> Ensure that resources are reserved
>
> [ENOSPC] The behav parameter specifies MADV_SPACEAVAIL and resources can
> not be reserved.
>
> Not particularly verbose, and I presume it's only a point-check
> against overcommit, since another process could come along and
> gobble everything up.

perhaps the linux version of madvise should return ENOSPC or zero when
invoked with MADV_SPACEAVAIL (at least until it is decided that linux
needs a real implementation of MADV_SPACEAVAIL). right now it returns
EINVAL.

just a thought.

- Chuck Lever
--
corporate: <chuckl@netscape.com>
personal: <chucklever@netscape.net> or <cel@monkey.org>

The Linux Scalability project:
http://www.citi.umich.edu/projects/linux-scalability/


-
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:57    [W:0.064 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site