Thread (2 messages) 2 messages, 2 authors, 1998-06-29

Re: Thread implementations...

From: Stephen C. Tweedie <hidden>
Date: 1998-06-29 11:42:34

Hi,

On 26 Jun 1998 09:16:14 -0500, ebiederm+eric@npwt.net (Eric
W. Biederman) said:
quoted
quoted
quoted
quoted
quoted
"CR" == Christoph Rohland [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help