Thread (18 messages) flat view 18 messages, 7 authors, 2016-08-03

Re: [PATCH 00/14] Present useful limits to user (v2)

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2016-07-15 21:04:33
Also in: linux-mm, lkml, netdev

[off-list ref],Johannes Weiner [off-list ref],Alexei Starovoitov [off-list ref],Arnaldo Carvalho de Melo [off-list ref],Alexander Shishkin [off-list ref],Balbir Singh [off-list ref],Markus Elfring [off-list ref],"David S. Miller" [off-list ref],Nicolas Dichtel [off-list ref],Andrew Morton [off-list ref],Konstantin Khlebnikov [off-list ref],Jiri Slaby [off-list ref],Cyrill Gorcunov [off-list ref],Michal Hocko [off-list ref],Vlastimil Babka [off-list ref],Dave Hansen [off-list ref],Greg Kroah-Hartman [off-list ref],Dan Carpenter [off-list ref],Michael Kerrisk [off-list ref],"Kirill A. Shutemov" [off-list ref],Marcus Gelderie [off-list ref],Vladimir Davydov [off-list ref],Joe Perches [off-list ref],Frederic Weisbecker [off-list ref],Andrea Arcangeli [off-list ref],!
 "Eric W.
Biederman" [off-list ref],Andi Kleen [off-list ref],Oleg Nesterov [off-list ref],Stas Sergeev [off-list ref],Amanieu d'Antras [off-list ref],Richard Weinberger [off-list ref],Wang Xiaoqiang [off-list ref],Helge Deller [off-list ref],Mateusz Guzik [off-list ref],Alex Thorlton [off-list ref],Ben Segall [off-list ref],John Stultz [off-list ref],Rik van Riel [off-list ref],Eric B Munson [off-list ref],Alexey Klimov [off-list ref],Chen Gang [off-list ref],Andrey Ryabinin [off-list ref],David Rientjes [off-list ref],Hugh Dickins [off-list ref],Alexander Kuleshov [off-list ref],"open list:DOCUMENTATION" [off-list ref],"open list:IA64 (Itanium) PLATFORM" [off-list ref],"open list:KERNEL VIRTUAL MACHINE (KVM) FOR POWERPC" [off-list ref],"open list:KERNEL VIRTUAL MACHINE (KVM)" [off-list ref],"open list:LINUX FOR POWERPC!
  (32-BIT
AND 64-BIT)" [off-list ref],"open list:INFINIBAND SUBSYSTEM" [off-list ref],"open list:FILESYSTEMS (VFS and infrastructure)" [off-list ref],"open list:CONTROL GROUP (CGROUP)" [off-list ref],"open list:BPF (Safe dynamic programs and tools)" [off-list ref],"open list:MEMORY MANAGEMENT" [off-list ref]
Message-ID: [off-list ref]

On July 15, 2016 6:59:56 AM PDT, Peter Zijlstra [off-list ref] wrote:
On Fri, Jul 15, 2016 at 01:52:48PM +0000, Topi Miettinen wrote:
quoted
On 07/15/16 12:43, Peter Zijlstra wrote:
quoted
On Fri, Jul 15, 2016 at 01:35:47PM +0300, Topi Miettinen wrote:
quoted
Hello,

There are many basic ways to control processes, including
capabilities,
quoted
quoted
quoted
cgroups and resource limits. However, there are far fewer ways to
find out
quoted
quoted
quoted
useful values for the limits, except blind trial and error.

This patch series attempts to fix that by giving at least a nice
starting
quoted
quoted
quoted
point from the highwater mark values of the resources in question.
I looked where each limit is checked and added a call to update
the mark
quoted
quoted
quoted
nearby.
And how is that useful? Setting things to the high watermark is
basically the same as not setting the limit at all.
What else would you use, too small limits?
That question doesn't make sense.

What's the point of setting a limit if it ends up being the same as
no-limit (aka unlimited).

If you cannot explain; and you have not so far; what use these values
are, why would we look at the patches.
One reason is to catch a malfunctioning process rather than dragging the whole system down with it.  It could also be useful for development.
-- 
Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help