From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751714AbcFZXnB (ORCPT ); Sun, 26 Jun 2016 19:43:01 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:35168 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbcFZXnA (ORCPT ); Sun, 26 Jun 2016 19:43:00 -0400 Date: Sun, 26 Jun 2016 19:42:58 -0400 From: Tejun Heo To: Aleksa Sarai Cc: Jonathan Corbet , Li Zefan , Johannes Weiner , Kenny Yu , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH 1/2] cgroup: pids: show number of failed forks since limit reset Message-ID: <20160626234258.GJ9219@stj.duckdns.org> References: <20160624030049.13341-1-asarai@suse.de> <20160624030049.13341-2-asarai@suse.de> <20160624153151.GQ3262@mtj.duckdns.org> <78d17b23-d712-7d9c-3655-34c646bc4897@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78d17b23-d712-7d9c-3655-34c646bc4897@suse.de> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Sun, Jun 26, 2016 at 09:34:41PM +1000, Aleksa Sarai wrote: > If a user has a setup where they wait for notifications on changes to > pids.event, and then auto-adjust the cgroup limits based on the number of > failures you have a race condition between reading the pids.event file and > then setting the new limit. Then, upon getting notified again there may have > been many failed forks with the old limit set, so you might decide to bump > up the limit again. > > It's not a huge deal, I just though it could be useful to alleviate problems > like the above. This is something which can easily be avoided from userland. I don't think we need to add extra facilities for this. Thanks. -- tejun