Skip to contentSkip to conversation

hard question re: swap cache

DISCUSSION Carl Spalletta 2 participants 2 messages May 27, 2003 – May 28, 2003 Memory management

lore
Share & tools
lore
#0 lore raw

I thought of a simple example. Suppose processes a,b,c have a shared, anonymous page. All processes have this page present. Then the page for a is swapped out. Then b and c exit unexpectedly, after making changes to the page. When and if 'a' has the page swapped back in, what mechanism guarantees that it will see the changes made by b and c? Where specifically in the code, in what functions, does it reside for kernel 2.5?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 6 lines · Carl Spalletta

I thought of a simple example. Suppose processes a,b,c have a shared, anonymous page. All processes have this page present. Then the page for a is swapped out. Then b and c exit unexpectedly, after making changes to the page. When and if 'a' has the page swapped back in, what mechanism guarantees that it will see the changes made by b and c?

I don't think it makes much sense to say "the page for a" in the case of a shared page.

Signature · 6 lines
Sean Neakums - <[email protected]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>