Received: by 10.213.65.68 with SMTP id h4csp18763imn; Fri, 30 Mar 2018 13:15:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+DbZGL1ps6G6vbI7omSggMi4e0zjD2CI3LdnmwKAJUIChh4FBLV5uHmENHE/DmdYJ9x4dY X-Received: by 10.99.5.137 with SMTP id 131mr252148pgf.99.1522440911070; Fri, 30 Mar 2018 13:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522440911; cv=none; d=google.com; s=arc-20160816; b=cIIP/ieFuP1ugWp9GQSA1MAllMSBC1BngoiCtbrXvbZYlZf0tBzfb8kT8aiXpsW7X6 5soVR0+egPF/hglxbGeHwYbXjsHquJbBTP9t/WTfWLGgjY9bCx/+hHTTAaAyY7a4mSi4 1iMTCPMsOD92TotQc3fTzOblDKCwXJBvYQz7/75OkNxrr1t/nFYTQWtUB07DoEefC6gh 0+UKgx68ap8TDupc4x6byvW1AW+njyFNC6245zAAyMqUo0MejRsDgS3QXtnlsX20jNV9 yvz6uFxNVyLFx08dVnSs3TP9PPeBzWesJPg5tLlklF+ZiJhfaPsaix56KRmDL6BUJ0y0 Kj5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=b9Fg43j/P9y6Mob4CJIggdtyapO+jAWSWGGmU9xD/YY=; b=a2eHjwIsJEk2sdELLa4s1ZTDd3l0Krk9G0ml4w57RKu4LdwZ6wmNwv028PN8UYjCZE +3XNYoCXe/G8t8hWTKylLIBOc/qo2xuYLdPW28FzcKG8IQUNV4dOKBsaFCG7jzhtmjdV gDXN+jSH8Y4Fafgo11YiBzFNByhTxJTtOs9Q2xyaMsLxLVIfDt9XUx8JKvpYsOw+hdpy t9vouTPKnPOLZIL8n+vSk8GzVUAf5xihjmQgwfBxU8CRsHIlyAQ9iiwx1jZWC4lAg0Gy Xb5a4udIqifeaoCr/SW40Z0wJadEthadQb4YilLd8ildDP9299uPrJQ5JKZ+DvGn+gkE foYA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si6112409pgs.18.2018.03.30.13.14.50; Fri, 30 Mar 2018 13:15:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752721AbeC3UNU (ORCPT + 99 others); Fri, 30 Mar 2018 16:13:20 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:43826 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752563AbeC3UNR (ORCPT ); Fri, 30 Mar 2018 16:13:17 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f20Og-0000sA-F3; Fri, 30 Mar 2018 14:13:14 -0600 Received: from 67-3-145-25.omah.qwest.net ([67.3.145.25] helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f20Of-0000mV-L0; Fri, 30 Mar 2018 14:13:14 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Davidlohr Bueso Cc: manfred@colorfullife.com, Linux Containers , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, khlebnikov@yandex-team.ru, prakash.sangappa@oracle.com, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com, serge.hallyn@ubuntu.com, esyr@redhat.com, jannh@google.com, linux-security-module@vger.kernel.org, Pavel Emelyanov , Nagarathnam Muthusamy References: <87vadmobdw.fsf_-_@xmission.com> <20180323191614.32489-11-ebiederm@xmission.com> <20180329005209.fnzr3hzvyr4oy3wi@linux-n805> <20180330190951.nfcdwuzp42bl2lfy@linux-n805> Date: Fri, 30 Mar 2018 15:12:10 -0500 In-Reply-To: <20180330190951.nfcdwuzp42bl2lfy@linux-n805> (Davidlohr Bueso's message of "Fri, 30 Mar 2018 12:09:51 -0700") Message-ID: <87y3i91fxh.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1f20Of-0000mV-L0;;;mid=<87y3i91fxh.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=67.3.145.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+/L7Yw0Izr6/iPI20ne4k34Tfk6UAUC2g= X-SA-Exim-Connect-IP: 67.3.145.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa04.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG, T_TooManySym_01,T_TooManySym_02,T_TooManySym_03,T_TooManySym_04,XMNoVowels, XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.7 XMSubLong Long Subject * 1.5 TR_Symld_Words too many words that have symbols inside * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4966] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_04 7+ unique symbols in subject * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;Davidlohr Bueso X-Spam-Relay-Country: X-Spam-Timing: total 281 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 3.5 (1.2%), b_tie_ro: 2.4 (0.9%), parse: 1.40 (0.5%), extract_message_metadata: 17 (6.2%), get_uri_detail_list: 2.5 (0.9%), tests_pri_-1000: 8 (2.7%), tests_pri_-950: 1.62 (0.6%), tests_pri_-900: 1.40 (0.5%), tests_pri_-400: 26 (9.4%), check_bayes: 25 (8.9%), b_tokenize: 10 (3.6%), b_tok_get_all: 8 (2.7%), b_comp_prob: 2.6 (0.9%), b_tok_touch_all: 2.6 (0.9%), b_finish: 0.69 (0.2%), tests_pri_0: 210 (74.8%), check_dkim_signature: 0.57 (0.2%), check_dkim_adsp: 3.2 (1.1%), tests_pri_500: 7 (2.4%), rewrite_mail: 0.00 (0.0%) Subject: Re: [REVIEW][PATCH 11/11] ipc/sem: Fix semctl(..., GETPID, ...) between pid namespaces X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Davidlohr Bueso writes: > I ran this on a 40-core (no ht) Westmere with two benchmarks. The first > is Manfred's sysvsem lockunlock[1] program which uses _processes_ to, > well, lock and unlock the semaphore. The options are a little > unconventional, to keep the "critical region small" and the lock+unlock > frequency high I added busy_in=busy_out=10. Similarly, to get the > worst case scenario and have everyone update the same semaphore, a single > one is used. Here are the results (pretty low stddev from run to run) > for doing 100,000 lock+unlock. > > - 1 proc: > * vanilla > total execution time: 0.110638 seconds for 100000 loops > * dirty > total execution time: 0.120144 seconds for 100000 loops > > - 2 proc: > * vanilla > total execution time: 0.379756 seconds for 100000 loops > * dirty > total execution time: 0.477778 seconds for 100000 loops > > - 4 proc: > * vanilla > total execution time: 6.749710 seconds for 100000 loops > * dirty > total execution time: 4.651872 seconds for 100000 loops > > - 8 proc: > * vanilla > total execution time: 5.558404 seconds for 100000 loops > * dirty > total execution time: 7.143329 seconds for 100000 loops > > - 16 proc: > * vanilla > total execution time: 9.016398 seconds for 100000 loops > * dirty > total execution time: 9.412055 seconds for 100000 loops > > - 32 proc: > * vanilla > total execution time: 9.694451 seconds for 100000 loops > * dirty > total execution time: 9.990451 seconds for 100000 loops > > - 64 proc: > * vanilla > total execution time: 9.844984 seconds for 100032 loops > * dirty > total execution time: 10.016464 seconds for 100032 loops > > Lower task counts show pretty massive performance hits of ~9%, ~25% > and ~30% for single, two and four/eight processes. As more are added > I guess the overhead tends to disappear as for one you have a lot > more locking contention going on. Can you check your notes on the 4 process case? As I read the 4 process case above it is ~30% improvement. Either that is a typo or there is the potential for quite a bit of noise in the test case. Eric