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


Groups > linux.kernel > #1692260

Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t

From Davidlohr Bueso <dave@stgolabs.net>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t
Date 2017-07-20 01:20 +0200
Message-ID <u56q6-77M-19@gated-at.bofh.it> (permalink)
References (1 earlier) <u0xqX-1Re-23@gated-at.bofh.it> <u1syR-4Xb-5@gated-at.bofh.it> <u55No-6BP-9@gated-at.bofh.it> <u566K-6L0-1@gated-at.bofh.it> <u566K-6L0-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 19 Jul 2017, Andrew Morton wrote:

>On Wed, 19 Jul 2017 15:54:27 -0700 Davidlohr Bueso <dave@stgolabs.net> wrote:
>
>> On Wed, 19 Jul 2017, Andrew Morton wrote:
>>
>> >I do rather dislike these conversions from the point of view of
>> >performance overhead and general code bloat.  But I seem to have lost
>> >that struggle and I don't think any of these are fastpath(?).
>>
>> Well, since we now have fd25d19 (locking/refcount: Create unchecked atomic_t
>> implementation), performance is supposed to be ok.
>
>Sure, things are OK for people who disable the feature.
>
>But for people who want to enable the feature we really should minimize
>the cost by avoiding blindly converting sites which simply don't need
>it: simple, safe, old, well-tested code.  Why go and slow down such
>code?  Need to apply some common sense here...

Fair points.

>
>> It would be lovely to have
>> some actual numbers nonetheless.
>
>Very much so.

May I suggest using mmtests with the following config file:

https://github.com/gormanm/mmtests/blob/7e070a810bc0af92e592e5121d0ea75fada51aeb/configs/config-global-dhp__workload-ipc-scale-short

It will run two of Manfred's ipcscale sem benchmarks.

Thanks,
Davidlohr

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


Thread

Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to  refcount_t Andrew Morton <akpm@linux-foundation.org> - 2017-07-20 00:40 +0200
  Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to  refcount_t Davidlohr Bueso <dave@stgolabs.net> - 2017-07-20 01:00 +0200
    Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to  refcount_t Andrew Morton <akpm@linux-foundation.org> - 2017-07-20 01:00 +0200
      Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to  refcount_t Davidlohr Bueso <dave@stgolabs.net> - 2017-07-20 01:20 +0200
        Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t Kees Cook <keescook@chromium.org> - 2017-07-20 01:30 +0200
          Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t Kees Cook <keescook@chromium.org> - 2017-07-20 02:40 +0200
      Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to  refcount_t Ingo Molnar <mingo@kernel.org> - 2017-07-20 11:40 +0200
        Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t ebiederm@xmission.com (Eric W. Biederman) - 2017-07-20 14:50 +0200
          Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t Kees Cook <keescook@chromium.org> - 2017-07-20 17:20 +0200

csiph-web