[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Thread implementations...
Hi,
On 26 Jun 1998 09:16:14 -0500, ebiederm+eric@npwt.net (Eric
W. Biederman) said:
>>>>>> "CR" == Christoph Rohland <hans-christoph.rohland@sap-ag.de> writes:
CR> 1) why should madvise only advise.
> Because if it only advises, you can ignore it and return success.
> If it does more than advise you have to do much more error checking
> and error handling.
Not necessarily; even if we do take immediate action on the advise,
within the madvise system call, we don't have to do any extra layers of
error handling. It's more a case of "Please try to do this now / OK, I
tried."
CR> 2) Would not work on shared pages.
> Not perfectly. That does appear to be the achillies heel currently of
> madvise. Multiple users of the same memory.
Again, madvise is the application telling us that it KNOWS what the
access pattern is. If the app is wrong, and the page is shared, big
deal; throw away the advise, it was duff. :)
--Stephen