Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756396AbbEUUjx (ORCPT ); Thu, 21 May 2015 16:39:53 -0400 Received: from mail-qk0-f171.google.com ([209.85.220.171]:33338 "EHLO mail-qk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755921AbbEUUjs (ORCPT ); Thu, 21 May 2015 16:39:48 -0400 Date: Thu, 21 May 2015 16:39:43 -0400 From: Tejun Heo To: Zefan Li Cc: Peter Zijlstra , cgroups@vger.kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem Message-ID: <20150521203943.GS24861@htj.duckdns.org> References: <1431549318-16756-1-git-send-email-tj@kernel.org> <1431549318-16756-3-git-send-email-tj@kernel.org> <20150519151659.GF3644@twins.programming.kicks-ass.net> <20150519155133.GM24861@htj.duckdns.org> <555C5C71.80200@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <555C5C71.80200@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1130 Lines: 27 Hello, Li. On Wed, May 20, 2015 at 06:05:37PM +0800, Zefan Li wrote: > > The latency is bound by synchronize_sched_expedited(). Given the way > > cgroups are used in majority of setups (process migration happening > > only during service / session setups), I think this should be okay. > > Actually process migration can happen quite frequently, for example in > Android phones, and that's why Google had an out-of-tree patch to remove > the synchronize_rcu() in that path, which turned out to be buggy. It's still not a very frequent operation tho. We're talking about users switching fore/background jobs here and the expedited synchronization w/ preemption enabled doesn't take much time. In addition, as it currently stands, android is doing memory charge immigration on each fore/background switches. I'm pretty doubtful this would make any difference. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/