Re: MADV_SPACEAVAIL and MADV_FREE in pre2-3

From: Chuck Lever (cel@monkey.org)
Date: Sun Mar 19 2000 - 14:38:47 EST


On Sat, 18 Mar 2000, Jamie Lokier wrote:
> David S. Miller wrote:
> > pre2-3 defines MADV_SPACEAVAIL in asm-alpha/mman.h and MADV_FREE in
> > asm-sparc/mman.h.
>
> > They are values provided by OSF and Solaris respectively.
> >
> > If this makes for a big issue wrt. glibc we could move them to
> > the OSF/Solaris emulation code on Alpha and Sparc but I think
> > this would be really silly and would like to not have to do this.
>
> Besides, MADV_FREE would be quite useful. MADV_DONTNEED doesn't do the
> right thing for free(3) and similar things.

MADV_FREE could easily be a synonym for msync(MS_INVALIDATE). that would
be good for application portability.

what does MADV_SPACEAVAIL do?

        - 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:27 EST