Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752500AbdCHKWz (ORCPT ); Wed, 8 Mar 2017 05:22:55 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:48242 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbdCHKVm (ORCPT ); Wed, 8 Mar 2017 05:21:42 -0500 X-AuditID: b6c32a39-f799f6d000001a36-e9-58bfdab830cd Subject: Re: counting file descriptors with a cgroup controller To: Parav Pandit , Tejun Heo Cc: Li Zefan , Johannes Weiner , =?UTF-8?Q?=c5=81ukasz_Stelmach?= , Linux Kernel Mailing List , Karol Lewandowski , cgroups@vger.kernel.org From: Krzysztof Opasiak Message-id: <607306a7-c075-b2e0-777d-d5a4c790527e@samsung.com> Date: Wed, 08 Mar 2017 11:19:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsWy7bCmge6OW/sjDOZt07W4sXwGi8XqTb4W jZ/mMlvcPLSC0eLyrjlsFpM6etktGi8ZWPxafpTRgcPj8Jv3zB47Z91l92g58pbVY9OqTjaP vi2rGD0+b5ILYIvisklJzcksSy3St0vgylj/+RlLwTP2ir9377I2ME5h62Lk5JAQMJE48O84 M4QtJnHh3nqgOBeHkMAORonpmw+xQDjtTBL3Gn+wwnR0X3/MDJFYzigx9fchRgjnPqPEhCPH wOYKC9hLnD93EKidg0NEwEXixHdfkBpmgU4miYP3DzKBxNkE9CXm7RIFKecVsJM4+OcbC4jN IqAqsfv3C7BWUYEIif4z6hAlghI/Jt8DK+EUCJa42n0WbBOzgJXEs3+trBC2vMTmNW/BbpMQ 2MQu0bZjOjPIHAkBWYlNB6C+dJH4fXQj1C/CEq+Ob2GHsKU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WSHelMTKqtSi/Pii0pzU4kOMpkCPTGSWEk3OByaEvJJ4QxNzE3NjAwtzS0sTIyVx 3sbZz8KFBNITS1KzU1MLUotg+pg4OKUaGHckl1uc3nD9H//lj1fjZhzIEdCqdZTjFefIZnx+ Y87vs9VK9W0/J6d1cjd6h07Mv9UXKKqgsHan/X+JaQuyJT/Gz6pnmRfHeHz6hn+F1rxd3VdW s850lJSzrDr04PzRe1y+rC52T9T2Pa++HLDl47/GIMUPotbXny13i7g8oepd/LJ2u7IlRUos xRmJhlrMRcWJAPqWLDXQAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170308101936epcas1p1154020c63f0ab36762df6cd1b8cd440e X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?S3J6eXN6dG9mIE9wYXNpYWsbU1JQT0wtU3lzdGVtIChUUCkb?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?S3J6eXN6dG9mIE9wYXNpYWsbU1JQT0wtU3lzdGVtIChUUCkb?= =?UTF-8?B?U2Ftc3VuZ8KgRWxlY3Ryb25pY3MbU29mdHdhcmUgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTY=?= CMS-TYPE: 101P X-HopCount: 7 X-CMS-RootMailID: 20170217093725eucas1p12478baf297d25303f3020f4973fbf3b0 X-RootMTR: 20170217093725eucas1p12478baf297d25303f3020f4973fbf3b0 References: <87poihtaya.fsf%l.stelmach@samsung.com> <9a57890c-d9e9-5719-e155-ce1161795a02@samsung.com> <20170306185820.GA19696@htj.duckdns.org> <7fbd9c4c-76ca-4073-9afa-1ab54364ec79@samsung.com> <20170307194134.GE31179@htj.duckdns.org> <9ee62e45-6645-454b-11b5-85be746bc81a@samsung.com> <20170307204825.GH31179@htj.duckdns.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 32 On 03/08/2017 03:59 AM, Parav Pandit wrote: > Hi, > > On Tue, Mar 7, 2017 at 2:48 PM, Tejun Heo wrote: >> >> Hello, >> >> On Tue, Mar 07, 2017 at 09:06:49PM +0100, Krzysztof Opasiak wrote: >>> Personally, I don't want to use rlimit for this as it ends up returning >>> error code from for example open() when we hit the limit. This may lead to >>> some unpredictable crashes in services (esp. those poor proprietary binary >>> blobs). Instead of injecting errors to service we would like to just get >>> notification that this service has more opened fds than it should and ask it >>> to restart in a polite way. >>> > > How does those poor proprietary binary blobs remain polite after restart? They wont. > Do you mean you want to keep restarting them when it reaches the limit? We'd like to restart them each time when they reach limit declared by developer. Best regards, -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics