From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbdHQTts (ORCPT ); Thu, 17 Aug 2017 15:49:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49340 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753212AbdHQTtq (ORCPT ); Thu, 17 Aug 2017 15:49:46 -0400 Date: Thu, 17 Aug 2017 12:49:45 -0700 From: Andrew Morton To: =?UTF-8?Q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9_=D0=A0?= =?UTF-8?Q?=D0=B5=D0=B7=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] Adding support of RLIMIT_CPUNS Message-Id: <20170817124945.18eae3c539a87b6789d6013b@linux-foundation.org> In-Reply-To: <1502999145.913410989@f459.i.mail.ru> References: <1502999145.913410989@f459.i.mail.ru> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) 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 Thu, 17 Aug 2017 22:45:45 +0300 ________________ ________________ wrote: > To set time limit for process now we can use RLIMIT_CPU. > However, it has precision up to one second and it can be > too big for some purposes. > > This patch adds support of RLIMIT_CPUNS, which works > almost as RLIMIT_CPU, but has nanosecond precision. > > At the moment, RLIMIT_CPU and RLIMIT_CPUNS are two > independent values, because I don't see any nice way > for them to be together. We'll need to hear much, much more about "for some purposes", please. What are the use cases, why are they important, who will benefit from this and in what ways, etc? How will this change benefit our users? Presenting this material is critical, so please spend time over it.