Re: [PATCH 8/8] Per-container pages reclamation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Emelianov
Date: Monday, May 21, 2007 - 8:15 am

Balbir Singh wrote:

Sorry for the late answer, but I have just managed to get
to the patches. One comment is below.


This hunk is bad.
See, when the page drops its mapcount to 0 it may be reused right
after this if it belongs to a file map - another CPU can touch it.
Thus you're risking to reset the wrong container.

The main idea if the accounting is that you cannot trust the
page_container(page) value after the page's mapcount became 0.


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/8] Resource counters, Pavel Emelianov, (Mon Apr 9, 5:35 am)
[PATCH 2/8] Add container pointer on struct page, Pavel Emelianov, (Mon Apr 9, 5:41 am)
[PATCH 3/8] Add container pointer on mm_struct, Pavel Emelianov, (Mon Apr 9, 5:46 am)
[PATCH 4/8] RSS container core, Pavel Emelianov, (Mon Apr 9, 5:49 am)
[PATCH 5/8] RSS accounting hooks over the code, Pavel Emelianov, (Mon Apr 9, 5:54 am)
[PATCH 6/8] Per container OOM killer, Pavel Emelianov, (Mon Apr 9, 5:56 am)
[PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Mon Apr 9, 6:02 am)
Re: [PATCH 2/8] Add container pointer on struct page, Jean-Pierre Dion, (Fri Apr 13, 6:56 am)
Re: [PATCH 2/8] Add container pointer on struct page, Pavel Emelianov, (Fri Apr 13, 7:52 am)
Re: [PATCH 0/8] RSS controller based on process containers ..., Vaidyanathan Srinivasan, (Wed Apr 18, 10:37 pm)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Tue Apr 24, 2:47 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Tue Apr 24, 3:34 am)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Tue Apr 24, 4:01 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Tue Apr 24, 4:37 am)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Wed May 2, 2:51 am)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Thu May 17, 4:31 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Mon May 21, 8:15 am)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Thu May 24, 12:59 am)