From mboxrd@z Thu Jan 1 00:00:00 1970 From: "KOSAKI Motohiro" Subject: Re: [-mm] Make the memory controller more desktop responsive (v2) Date: Fri, 4 Apr 2008 23:01:45 +0900 Message-ID: <2f11576a0804040701s5b6267b0w430c29b5010bf841@mail.gmail.com> References: <20080404132116.5217.14401.sendpatchset@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080404132116.5217.14401.sendpatchset@localhost.localdomain> Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: Balbir Singh Cc: Andrew Morton , YAMAMOTO Takashi , Paul Menage , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Pavel Emelianov , KAMEZAWA Hiroyuki List-Id: linux-mm.kvack.org Hi > @@ -612,7 +611,7 @@ retry: > pc->page = page; > pc->flags = PAGE_CGROUP_FLAG_ACTIVE; > if (ctype == MEM_CGROUP_CHARGE_TYPE_CACHE) > - pc->flags |= PAGE_CGROUP_FLAG_CACHE; > + pc->flags = PAGE_CGROUP_FLAG_CACHE; > > lock_page_cgroup(page); > if (page_get_page_cgroup(page)) { Yes. in general, cache page create as cold page. if not, large file copy or streaming file drop all cache easily. Reviewd-by: KOSAKI