Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1170040imu; Tue, 20 Nov 2018 12:54:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/VlMghLLvBYFlpCmm0qjT/gPDuxtzyfNfJPG5ZhzftAg2MzGN1kk68n76ysvCDECYlyXUBK X-Received: by 2002:a65:6392:: with SMTP id h18mr3384587pgv.107.1542747267123; Tue, 20 Nov 2018 12:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542747267; cv=none; d=google.com; s=arc-20160816; b=Xqhyy4kZhQkhbKHQ3TOdjKqnfbinEiJ2JNLID+ASAMFE6FJtHELalrQED5lG7P2zRK 5pn/iw+B+og/XcFK/Zp/sLJRA5bugc5D3tu8XetEwb0ShnbXmw1a9hI5LrjU1vvE5gsR lxZj6UXaBzPIcuHRchnxmKNXytr+KjAsW03k6318Vcg90xMn5sfXvsl/feozoCr9Wlxq 1P0qpj9bxICr2SIVkGE0JSsnWV26OK91rblpcG9dKNvBvihje9NI19f4XEiuSxr9J2tG lK82q4wfiUwDljkG7DpKFZipfZBAebNGwhjPMIst9FQ41iL1wQ7ExXXhlWjmftnbr1RX DyCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EXc0euKzVaK7g1CJFWlQ4ErwfgJEkzlK5fcJ1+AWcKQ=; b=dHxchsDDSVvAKhp5OVSlAU+cPYT+dvzU5JVr4nj52DUqr0AkEj/yk6Q9+RexD6ej2t NCenpCXhr+H9cus8hWdaJH0rNyM+rLJecYEaD15+1Gpy8JDWZioNyYhX9lY4UcuO6rXb QMgNv1aJIpgdS7pyAoogSjRxM1RRcoh/ZOisUVFtZMxpcQKmCj6thm6WHKsMeECJmhAK Iw/OKMTgxf7/Is7k3xO2iGNiVnkN2pJPg7X76kll6FMkjTMFJk7txNN0tiVogE5OGVzl mZaOAQnb33BP3Lwc72gHSp7fc8CBtOGWm2U0gFkx7p2cJqO1VvUdQARjABOxyZ8Nqcai BpRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ecbPsISb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si26099421pls.338.2018.11.20.12.54.12; Tue, 20 Nov 2018 12:54:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ecbPsISb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727155AbeKUEaR (ORCPT + 99 others); Tue, 20 Nov 2018 23:30:17 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:35710 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbeKUEaQ (ORCPT ); Tue, 20 Nov 2018 23:30:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EXc0euKzVaK7g1CJFWlQ4ErwfgJEkzlK5fcJ1+AWcKQ=; b=ecbPsISb3Z8gjR9yhemc34NdU /o2cR2nLN/pBugW6elCV0e3qwfDMuCASI4nl6Y2NJaUqa5vAR9hW81fn+3PXbjRcDuy8Ek+GpPbaw klhmhoj0Zv0TuMEIk9MzlYK4ucE7arWk94Dqu+DGWU5X8lSfR97yBAP9VljJlW96QSqYzuvkB1Txz khKjOgcUmYRRqRKp1/kQEZq5HFm+JU5kzk/WlDrCglZRUOYrp0qeaCbsIG2fyxiNM+IkJN1eLlCxf +qw04rfCdvXCqJNYaRZSkmhF33B50AxJa5KYNGkfgYLm4sox9aHCoUCEInADHkOqxIYxyPpGCGFhl 82evOV+8Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPAJP-0001lF-Et; Tue, 20 Nov 2018 17:59:47 +0000 Date: Tue, 20 Nov 2018 09:59:47 -0800 From: Matthew Wilcox To: Daniel Colascione Cc: Pavel Machek , Vlastimil Babka , linux-kernel , Mike Rapoport , Tim Murray , Joel Fernandes , Suren Baghdasaryan , Jonathan Corbet , Andrew Morton , Roman Gushchin , Mike Rapoport , "Kirill A. Shutemov" , "Dennis Zhou (Facebook)" , Prashant Dhamdhere , "open list:DOCUMENTATION" Subject: Re: [PATCH v2] Document /proc/pid PID reuse behavior Message-ID: <20181120175947.GE3065@bombadil.infradead.org> References: <20181031150625.147369-1-dancol@google.com> <20181105132205.138695-1-dancol@google.com> <20181119105426.GD28607@amd> <1c5caa66-3c61-cb57-754a-f099200c73b2@suse.cz> <20181120091829.GD16916@amd> <20181120173912.GD3065@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 20, 2018 at 09:48:27AM -0800, Daniel Colascione wrote: > On Tue, Nov 20, 2018 at 9:39 AM Matthew Wilcox wrote: > > We have a limit on the number of FDs a process can have open for a reason. > > Well, for many reasons. > > And the typical limit is too low. (I've seen people clamp it to 1024 > for some reason.) 1024 is the soft limit. 4096 is the default hard limit. You can always ask root to set your hard limit higher if that's what you need. > A file descriptor is just a handle to a kernel > resource. All kernel resources held on behalf of applications need > *some* kind of management interface. File descriptors provide a > consistent and uniform instance of such a management interface. Unless > there's a very good reason, nobody should be using non-FD handles for > kernel resource management. A low default FD table size limit is not > an example of one of these good reasons, not when we can raise FD > table size limit. In general, the software projects should not have to > put up with ugly workarounds for limitations they impose on > themselves. I'm not really sure why you decided to go off on this rant. My point to Pavel was that there's no way a single process can tie up all of the PIDs. Unless root decided to let them shoot everybody else in the system in the foot.