Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp435804ybn; Wed, 2 Oct 2019 00:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSyn3K99oNHCcN2fyL78e7cRHetBWZHQy354pFH/7Vw2AknJ+aj/ymuUtDkDlJTlHCmzCd X-Received: by 2002:a17:906:e290:: with SMTP id gg16mr1718699ejb.176.1569999981001; Wed, 02 Oct 2019 00:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569999980; cv=none; d=google.com; s=arc-20160816; b=Rf/W9K6rkQr5d6H06GdtNfCqd+Q7o5tqrSmI5llqhXHEMeQjciwiwa8rKW9tJY5GyI on/7oifiL/RyJzE83Z6z6P/i77ccSRUteuU4vb6ajqcygYrHfxhbn2uvtJNEqkaVfvQ7 wjqNX9g4nqSUX9r4umX5zhiHSzUuTSQeZMTZaNCfnbCCv/7N6v1hl5RyWxKaQXOfRqi3 I0qDCvKzdlNgq1tvPinLxuSEQvZO08Z45Ks3Hkxfc3nYwK7CEPf0C5BFp7ptKUw2oi1H 3lwV7mPJEyYERsG7upixInm7uREZTRU8+sisUL7Ew+QvvAiO+vtg+4MO5gWu9/eeMBSJ 4zhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=poWop88QlN5QK7naJWh5A87wySFd+Tin97FQEhhro8U=; b=Jpn90nTZTfdt0sxTl/gt7Piq6pQCodmpYisgk6fOM9bXkiVu4uwJslm8w/1LnLsp0l pY0k+TKdtuBcwlSa9Heg7hbgbnpUTTOcb1a+imTKtmO0M2J/Z7SgNZi2hnAEHnMPkVeX FtkCls8XyweESyfnzg3f2wIKC4ZLuE0ktuHRE5FfymWfhkQAgonaIcYvMSkCE1zRQQ3E uiOBcw+wIN4SfM19+hVR9RvqxbgboVha9wS3dAOfhqWYIRi8Ht3yBcS02EUr3VLvB63J a5IZzSTJPjWPYoWliXCPp8Py+TD8cRnn8ns9iqq3UhkbBgmKnmFWEL9F9BTEHWsQfT2f 8vVQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si11379243eda.293.2019.10.02.00.05.56; Wed, 02 Oct 2019 00:06:20 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725919AbfJBG2N (ORCPT + 99 others); Wed, 2 Oct 2019 02:28:13 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53054 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfJBG2N (ORCPT ); Wed, 2 Oct 2019 02:28:13 -0400 Received: by mail-wm1-f65.google.com with SMTP id r19so5761739wmh.2 for ; Tue, 01 Oct 2019 23:28:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=poWop88QlN5QK7naJWh5A87wySFd+Tin97FQEhhro8U=; b=YXP0+k1kcfIKa/3jW36X3/jnkfUsKuvs9wn6H1dZlGLeP2yehfPn1kzsUEbmcJ5N/6 BeejmHEIGOemUe4k7qCsvswY/ghr+90ff015QsXUV2YvGwVUqcYFH8J//BdcSoSO7otP ZhsccMr//IqMX1Djfo/5oDz9cR6NNBuL/plnoW/x1oHoTDA0QNxFjVx4zDs94QOgZ4wF NEFblpCul5TzTdfC9iw0OZggYHVqEYN10KV4NSU05hnGH4SiuL+Mqsk6sbvFP7MPd0J0 EzxLVIRwMuMVVt8p0drJi8grGrHHovBQTyDwMGmMbDtHNzVC/LiDckLshgoyElwWN1t9 XsNA== X-Gm-Message-State: APjAAAUY0+eFMNf5oI8e7bL8vH7jT5UiVNa4qu5RB/c+EZgHesmnMGDA USOv9Wf4+dBglZg6H3d7z3IcgPqKQwbLaKfofYs= X-Received: by 2002:a1c:e008:: with SMTP id x8mr1358115wmg.85.1569997691326; Tue, 01 Oct 2019 23:28:11 -0700 (PDT) MIME-Version: 1.0 References: <20190828073130.83800-1-namhyung@kernel.org> <20190828073130.83800-3-namhyung@kernel.org> <20190828144911.GR2263813@devbig004.ftw2.facebook.com> <20190831030321.GA93532@google.com> <20190831045815.GE2263813@devbig004.ftw2.facebook.com> <20190916152325.GD3084169@devbig004.ftw2.facebook.com> <20190920210411.GB2233839@devbig004.ftw2.facebook.com> In-Reply-To: <20190920210411.GB2233839@devbig004.ftw2.facebook.com> From: Namhyung Kim Date: Wed, 2 Oct 2019 15:28:00 +0900 Message-ID: Subject: Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature To: Tejun Heo Cc: Song Liu , Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , LKML , Jiri Olsa , Alexander Shishkin , Stephane Eranian , Li Zefan , Johannes Weiner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun, Sorry for the late reply. On Sat, Sep 21, 2019 at 6:04 AM Tejun Heo wrote: > > On Fri, Sep 20, 2019 at 05:47:45PM +0900, Namhyung Kim wrote: > > Thanks for the sharing information! For 32-bit, while the ino itself is not > > monotonic, gen << 32 + ino is monotonic right? I think we can use the > > It's not. gen gets incremented on every allocation, so it has not > high but still realistic chance of collisions. In __kernfs_new_node(), gen gets increased only if idr_alloc_cyclic() returns lower than the cursor... I'm not sure you talked about it. Thanks Namhyung