Re: MADV_SPACEAVAIL and MADV_FREE in pre2-3

From: Chuck Lever (cel@monkey.org)
Date: Mon Mar 20 2000 - 16:00:19 EST


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/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:30 EST