From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [RFC PATCH] proc, pidns: Add highpid Date: Sun, 30 Nov 2014 09:47:50 +0100 Message-ID: <87k32d13d5.fsf@mid.deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: (Andy Lutomirski's message of "Fri, 28 Nov 2014 15:05:01 -0800") Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski Cc: David Herrmann , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Eric W. Biederman" , Andrew Morton , systemd Mailing List , criu-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, Pavel Emelyanov , Cyrill Gorcunov List-Id: linux-api@vger.kernel.org * Andy Lutomirski: > The initial implementation is straightforward: highpid is simply a > 64-bit counter. If a high-end system can fork every 3 ns (which > would be amazing, given that just allocating a pid requires at > atomic operation), it would take well over 1000 years for highpid to > wrap. I'm not sure if I'm reading the patch correctly, but is the counter namespaced? If yes, why? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752077AbaK3JIe (ORCPT ); Sun, 30 Nov 2014 04:08:34 -0500 Received: from albireo.enyo.de ([46.237.207.196]:44396 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbaK3JI3 (ORCPT ); Sun, 30 Nov 2014 04:08:29 -0500 From: Florian Weimer To: Andy Lutomirski Cc: David Herrmann , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, "Eric W. Biederman" , Andrew Morton , systemd Mailing List , criu@openvz.org, Pavel Emelyanov , Cyrill Gorcunov Subject: Re: [RFC PATCH] proc, pidns: Add highpid References: Date: Sun, 30 Nov 2014 09:47:50 +0100 In-Reply-To: (Andy Lutomirski's message of "Fri, 28 Nov 2014 15:05:01 -0800") Message-ID: <87k32d13d5.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski: > The initial implementation is straightforward: highpid is simply a > 64-bit counter. If a high-end system can fork every 3 ns (which > would be amazing, given that just allocating a pid requires at > atomic operation), it would take well over 1000 years for highpid to > wrap. I'm not sure if I'm reading the patch correctly, but is the counter namespaced? If yes, why?