* swap_out() question...
@ 2001-01-07 20:29 Zlatko Calusic
0 siblings, 0 replies; only message in thread
From: Zlatko Calusic @ 2001-01-07 20:29 UTC (permalink / raw)
To: linux-mm
In the swap_out() function in mm/vmscan.c there is this chunk of code:
onlist = PageActive(page);
/* Don't look at this pte if it's been accessed recently. */
if (ptep_test_and_clear_young(page_table)) {
age_page_up(page);
goto out_failed;
}
if (!onlist)
/* The page is still mapped, so it can't be freeable... */
age_page_down_ageonly(page);
Now I don't understand the last comment. It speaks about mapped page
but we have only tested if a page is active or no. Also if ageing the
page gets it age down to zero page will be freeable indeed. What's
wrong with that comment?
Also why are we aging page down only if it is not active?
Rik and other mm guys, could you comment on this?
--
Zlatko
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-07 20:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-07 20:29 swap_out() question Zlatko Calusic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox