From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933208Ab0JGAlP (ORCPT ); Wed, 6 Oct 2010 20:41:15 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:45976 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932573Ab0JGAlN (ORCPT ); Wed, 6 Oct 2010 20:41:13 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Thu, 7 Oct 2010 09:35:45 +0900 From: KAMEZAWA Hiroyuki To: Minchan Kim Cc: Greg Thelen , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, containers@lists.osdl.org, Andrea Righi , Balbir Singh , Daisuke Nishimura Subject: Re: [PATCH 04/10] memcg: disable local interrupts in lock_page_cgroup() Message-Id: <20101007093545.429fe04a.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <1286175485-30643-1-git-send-email-gthelen@google.com> <1286175485-30643-5-git-send-email-gthelen@google.com> <20101005160332.GB9515@barrios-desktop> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Oct 2010 09:15:34 +0900 Minchan Kim wrote: > First of all, we could add your patch as it is and I don't expect any > regression report about interrupt latency. > That's because many embedded guys doesn't use mmotm and have a > tendency to not report regression of VM. > Even they don't use memcg. Hmm... > > I pass the decision to MAINTAINER Kame and Balbir. > Thanks for the detail explanation. > Hmm. IRQ delay is a concern. So, my option is this. How do you think ? 1. remove local_irq_save()/restore() in lock/unlock_page_cgroup(). yes, I don't like it. 2. At moving charge, do this: a) lock_page()/ or trylock_page() b) wait_on_page_writeback() c) do move_account under lock_page_cgroup(). c) unlock_page() Then, Writeback updates will never come from IRQ context while lock/unlock_page_cgroup() is held by move_account(). There will be no race. Do I miss something ? Thanks, -Kame