Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754605AbbKJRGW (ORCPT ); Tue, 10 Nov 2015 12:06:22 -0500 Received: from nibbler.cm4all.net ([82.165.145.151]:53122 "EHLO nibbler.cm4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753307AbbKJRGU (ORCPT ); Tue, 10 Nov 2015 12:06:20 -0500 Date: Tue, 10 Nov 2015 18:06:12 +0100 From: Max Kellermann To: Tejun Heo , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup_pids: add fork limit Message-ID: <20151110170612.GA21582@rabbit.intern.cm-ag> Mail-Followup-To: Tejun Heo , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <144716440621.20175.1000688899886388119.stgit@rabbit.intern.cm-ag> <20151110151223.GA17938@mtj.duckdns.org> <20151110153746.GA20758@rabbit.intern.cm-ag> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151110153746.GA20758@rabbit.intern.cm-ag> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1316 Lines: 30 On 2015/11/10 16:44, Tejun Heo wrote: > On Tue, Nov 10, 2015 at 04:37:46PM +0100, Max Kellermann wrote: > > There's "cpu" which changes priority > > The cpu controller can limit both in terms of relative weight and > absolute CPU cycle bandwidth. No, Tejun, the "cpu" controller does not do what my feature does: like I said, it only changes the priority, or let's rephrase (to account for the "absolute CPU cycle bandwith" thing): it changes the amount of CPU cycles a process gets every period. But it does NOT put an upper limit on total consumed CPU cycles! It will only slow down a frantic process, but it will not stop it. Stopping it is what I want. Once process crosses the limits I configured, there's no point in keeping it running. You may disagree that the feature I implemented is useful, and you may not want it merged, but do not say that I missed a kernel feature, because that's not true. The Linux kernel currently does not have a feature that can emulate the fork limit that I implemented. Useful or not, it doesn't exist. Max -- 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/