lkml.org 
[lkml]   [1999]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: CONFIG_BIGMEM and rawio
Andrea Arcangeli wrote:
> The bug is not present.

What happens to shared (via COW) bigmem pages during swapout?
Is it correct that they loose the "shared"-status?

e.g.:
process 1: allocates memory, gets BIGMEM pages. Then it dirties a few
pages, forks new processes.
The new processes only read these pages, then kswapd tries to swap out
one of these pages.

When the first instance of the page is paged out, a swap cache entry is
created in normal (i.e. not BIGMEM) memory [prepare_bigmem_swapout()].
This copy is marked as swap cache page.
But when the second instance is paged out, the check in mm/vmscan.c,
line 79 will not detect this
["if (PageSwapCache(page)) {" will fail]
and the page is swapped out again.

--
Manfred

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.148 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site