Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbdI1UGO (ORCPT ); Thu, 28 Sep 2017 16:06:14 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:55813 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbdI1UGN (ORCPT ); Thu, 28 Sep 2017 16:06:13 -0400 X-Google-Smtp-Source: AOwi7QBwS6FEjdFMJiuQstez2XuSUogk/+r+5qEaCtsbE1VuQ0tPeEdh/OaraYGnfmPUR3t6U8cRDTnQWYKdVZwZiWQ= MIME-Version: 1.0 In-Reply-To: <1506628013.21121.104.camel@surriel.com> References: <87ing4vz5b.fsf@xmission.com> <1506628013.21121.104.camel@surriel.com> From: Gargi Sharma Date: Fri, 29 Sep 2017 01:35:41 +0530 Message-ID: Subject: Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API To: Rik van Riel Cc: "Eric W. Biederman" , linux-kernel@vger.kernel.org, Julia Lawall , akpm@linux-foundation.org, mingo@kernel.org, pasha.tatashin@oracle.com, ktkhai@virtuozzo.com, Oleg Nesterov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1939 Lines: 76 On Thu, Sep 28, 2017 at 3:46 PM, Rik van Riel wrote: > On Fri, 2017-09-29 at 01:09 +0530, Gargi Sharma wrote: > >> 1000 processes that just sleep and sit around without doing >> anything(100 second sleep and then exit). >> >> pstree with 10,000 processes >> real 0m0.859s >> user 0m0.536s >> sys 0m0.172s >> >> ps with 10,000 processes >> real 0m0.918s >> user 0m0.100s >> sys 0m0.172s >> >> Stats for calling readdir on /proc with 10,000 processes >> real 0m0.092s >> user 0m0.000s >> sys 0m0.020s > > Is that with or without your patches? > > How does it compare to a kernel with(out) your patches? Ah thanks for pointing this out. Those were without the patches. Here are the stats for easier comparison. With Patches Without patches pstree real 0m0.542s real 0m0.859s user 0m0.335s user 0m0.536s sys 0m0.150s sys 0m0.172s ps real 0m0.722s real 0m0.918s user 0m0.064s user 0m0.100s sys 0m0.162s sys 0m0.172s readdir real 0m0.080s real 0m0.092s user 0m0.000s user 0m0.000s sys 0m0.021s sys 0m0.020s Thanks! Gargi > > -- > All Rights Reversed. On Fri, Sep 29, 2017 at 1:16 AM, Rik van Riel wrote: > On Fri, 2017-09-29 at 01:09 +0530, Gargi Sharma wrote: > >> 1000 processes that just sleep and sit around without doing >> anything(100 second sleep and then exit). >> >> pstree with 10,000 processes >> real 0m0.859s >> user 0m0.536s >> sys 0m0.172s >> >> ps with 10,000 processes >> real 0m0.918s >> user 0m0.100s >> sys 0m0.172s >> >> Stats for calling readdir on /proc with 10,000 processes >> real 0m0.092s >> user 0m0.000s >> sys 0m0.020s > > Is that with or without your patches? > > How does it compare to a kernel with(out) your patches? > > -- > All Rights Reversed.