Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1741803

Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API

From Gargi Sharma <gs051095@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API
Date 2017-09-28 22:10 +0200
Message-ID <uuNia-536-11@gated-at.bofh.it> (permalink)
References <uucLD-6o3-3@gated-at.bofh.it> <uuoa5-60L-5@gated-at.bofh.it> <uuMYN-4HS-7@gated-at.bofh.it> <uuMYN-4HS-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 28, 2017 at 3:46 PM, Rik van Riel <riel@surriel.com> 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 <riel@surriel.com> 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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] Replace PID bitmap allocation with IDR API Gargi Sharma <gs051095@gmail.com> - 2017-09-27 07:10 +0200
  [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR API Gargi Sharma <gs051095@gmail.com> - 2017-09-27 07:10 +0200
    Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Rik van Riel <riel@surriel.com> - 2017-09-27 15:20 +0200
      Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Oleg Nesterov <oleg@redhat.com> - 2017-09-27 16:10 +0200
        Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR API Gargi Sharma <gs051095@gmail.com> - 2017-09-27 17:10 +0200
          Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Oleg Nesterov <oleg@redhat.com> - 2017-09-27 17:20 +0200
      Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR API Gargi Sharma <gs051095@gmail.com> - 2017-09-27 17:10 +0200
    Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Oleg Nesterov <oleg@redhat.com> - 2017-09-27 17:10 +0200
    Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Christoph Hellwig <hch@infradead.org> - 2017-10-01 11:20 +0200
      Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR API Gargi Sharma <gs051095@gmail.com> - 2017-10-01 12:40 +0200
        Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Rik van Riel <riel@surriel.com> - 2017-10-02 15:20 +0200
      Re: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR  API Rik van Riel <riel@surriel.com> - 2017-10-02 15:10 +0200
  [PATCH v2 2/2] pid: Remove pidhash Gargi Sharma <gs051095@gmail.com> - 2017-09-27 07:10 +0200
    Re: [PATCH v2 2/2] pid: Remove pidhash Oleg Nesterov <oleg@redhat.com> - 2017-09-27 17:50 +0200
      Re: [PATCH v2 2/2] pid: Remove pidhash Oleg Nesterov <oleg@redhat.com> - 2017-09-27 18:30 +0200
        Re: [PATCH v2 2/2] pid: Remove pidhash Gargi Sharma <gs051095@gmail.com> - 2017-09-30 17:50 +0200
      Re: [PATCH v2 2/2] pid: Remove pidhash Rik van Riel <riel@surriel.com> - 2017-10-02 22:50 +0200
        Re: [PATCH v2 2/2] pid: Remove pidhash Gargi Sharma <gs051095@gmail.com> - 2017-10-02 22:50 +0200
      Re: [PATCH v2 2/2] pid: Remove pidhash Oleg Nesterov <oleg@redhat.com> - 2017-10-02 22:50 +0200
      Re: [PATCH v2 2/2] pid: Remove pidhash Rik van Riel <riel@surriel.com> - 2017-10-02 22:50 +0200
  Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API ebiederm@xmission.com (Eric W. Biederman) - 2017-09-27 19:20 +0200
    Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API Rik van Riel <riel@surriel.com> - 2017-09-28 21:50 +0200
      Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API Gargi Sharma <gs051095@gmail.com> - 2017-09-28 22:10 +0200
        Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API Rik van Riel <riel@surriel.com> - 2017-09-29 02:40 +0200

csiph-web