Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2156283pxv; Sat, 3 Jul 2021 00:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylFEuw3iqdslOOXRPAR5Z42nBjWwa6yKIum7J1X1uZxlSFQc70E7CB2MpcRkDGEfQNo6CP X-Received: by 2002:a92:d2c5:: with SMTP id w5mr2643151ilg.174.1625297289914; Sat, 03 Jul 2021 00:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625297289; cv=none; d=google.com; s=arc-20160816; b=CkKqokQkOiJwG9FAZmiBbylnkQktYhFs08QRNPVwp2yW3Cw2zzMz7bptMS9OhtQk0H 6ptsrEs5UCibB5UdSwzOTG6BjfxevO/YHB009UNwA/5gOIc8XhWRicdCGuSFGJ1zimF1 SftlAAhdHvOkk2WfQoqfkjynOR9BPS+XbDFP+PDSdf8RoyGAZ4fRmAH61/GxuZKAhB/+ TgzqcXP0Jz5tcDdH8XA20dYcVk+LmdiqMo2lZhY6mH7+XyqryKInAASE917+FwaxZRce sPnjYkO29E3ktf+8hR3YMuso2JW567X5c4H75ACdmC999963D90pGMwUhtldmVgdOzP2 PT9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=StUlQHppRFFvU0//DHLht9+F/9zWFrOExAA4ezwBPXM=; b=i53wHwT8bCapoGqneHzBBXdlzAL6cNlFzTYtpSwffdCCJJUlB790wi0YqBtY1IozAd tipe7g57EV0JolsTm2o0btF784y0hYv6FZFHJ3FW1Son+u1ipx057qMNoV9YFf6swbE+ 2hiU+RuhrItToOmepvLagQF64UpHGNC9N8bDbQy9sKjCWnMdpHexBEDpWFUDEnDWYe8o j2FHJoYOO7/X+6BhQzsd+cnG2Dc8MbUtqBLaKO/iFDfC6mcocK4DZHL9LngC92d3WbwE YWqiQjQiAtDjE36BieZ2Dlr7YDivv34CsvKvkCDRChCamaMrwU5pSFYLvGfUQq8JsRLE j5Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=b+4eZ6j7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si5728861iol.50.2021.07.03.00.27.57; Sat, 03 Jul 2021 00:28:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=b+4eZ6j7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbhGCH1u (ORCPT + 99 others); Sat, 3 Jul 2021 03:27:50 -0400 Received: from mout.gmx.net ([212.227.15.19]:42457 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbhGCH1u (ORCPT ); Sat, 3 Jul 2021 03:27:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1625297082; bh=aAQht86ygjqzuUvu+yg4HOD6z+4TpARHV7wzK6R1Ke4=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=b+4eZ6j7ELesHiF8GeAkr4cbAkd/0KTDWMr0Olwv0rEUNxGNKqK1KMFXU1ZjYiLre 4bJQNE5pxF56nJhqLq2dt22vckTWVNJfWjcpCsaUpchNAGybvQRNztt4dFgWoHiPEA 2PbPk5Ev2pxDslG5kOr0kknrE5pSmdTOaGm678cc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.146.50.218]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8ykW-1m5cQJ3r5a-0063dD; Sat, 03 Jul 2021 09:24:42 +0200 Message-ID: <891dc24e38106f8542f4c72831d52dc1a1863ae8.camel@gmx.de> Subject: Re: [RFC v2 00/34] SLUB: reduce irq disabled scope and make it RT compatible From: Mike Galbraith To: Sebastian Andrzej Siewior , Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Peter Zijlstra , Jann Horn Date: Sat, 03 Jul 2021 09:24:39 +0200 In-Reply-To: <20210702182944.lqa7o2a25to6czju@linutronix.de> References: <20210609113903.1421-1-vbabka@suse.cz> <20210702182944.lqa7o2a25to6czju@linutronix.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:SZzxfTcLtL+Mr+NwejC8HfJ/MB82VSIgomyfpE4RRBVvyTJNpeG EhldT0r9Vj1PHOdB8nVVfIf47hK6R1Ji0RMZ2KhtV4pLP9dKXz41K2uIhw94dBT0J2YA1Lr x1xHykTCIE1rV/B9u2wqVq1A/1GxdhhyuTn/Jc5sqAscEvu438a5W8z1TlCPTkBM5+TJWzU NAnQgZx7qM/AZQQ1o3xGA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qCDe++ReYVY=:6vL+gWo8krqioqMCDD11lG RuIDkyTuapKwkUC/uhwdiZy2jOMWsXoNyAzfLaJZy0wCmpazaDOnW+U/ODj8b/xjXwLjHNM1T NyUvwVBg4C9iJmVEiofg76dWGg50hJ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fri, 2021-07-02 at 20:29 +0200, Sebastian Andrzej Siewior wrote: > I replaced my slub changes with slub-local-lock-v2r3. > I haven't seen any complains from lockdep or so which is good. Then I > did this with RT enabled (and no debug): Below is some raw hackbench data from my little i4790 desktop box. It says we'll definitely still want list_lock to be raw. It also appears to be saying that there's something RT specific to stare at in addition to the list_lock business, but add a pinch of salt to that due to the config of the virgin(ish) tip tree being much lighter than the enterprise(ish) config of the tip-rt tree. perf stat -r10 hackbench -s4096 -l500 full warmup, record, repeat twice for elapsed 5.13.0.g60ab3ed-tip-rt 8,898.51 msec task-clock # 7.525 CPUs utilized ( +- 0.33% ) 368,922 context-switches # 0.041 M/sec ( +- 5.20% ) 42,281 cpu-migrations # 0.005 M/sec ( +- 5.28% ) 13,180 page-faults # 0.001 M/sec ( +- 0.70% ) 33,343,378,867 cycles # 3.747 GHz ( +- 0.30% ) 21,656,783,887 instructions # 0.65 insn per cycle ( +- 0.67% ) 4,408,569,663 branches # 495.428 M/sec ( +- 0.73% ) 12,040,125 branch-misses # 0.27% of all branches ( +- 2.93% ) 1.18260 +- 0.00473 seconds time elapsed ( +- 0.40% ) 1.19018 +- 0.00441 seconds time elapsed ( +- 0.37% ) (repeat) 1.18260 +- 0.00473 seconds time elapsed ( +- 0.40% ) (repeat) 5.13.0.g60ab3ed-tip-rt +slub-local-lock-v2r3 list_lock=raw_spinlock_t 9,642.00 msec task-clock # 7.521 CPUs utilized ( +- 0.46% ) 462,091 context-switches # 0.048 M/sec ( +- 4.79% ) 44,411 cpu-migrations # 0.005 M/sec ( +- 4.34% ) 12,980 page-faults # 0.001 M/sec ( +- 0.43% ) 36,098,859,429 cycles # 3.744 GHz ( +- 0.44% ) 25,462,853,462 instructions # 0.71 insn per cycle ( +- 0.50% ) 5,260,898,360 branches # 545.623 M/sec ( +- 0.52% ) 16,088,686 branch-misses # 0.31% of all branches ( +- 2.02% ) 1.28207 +- 0.00568 seconds time elapsed ( +- 0.44% ) 1.28744 +- 0.00713 seconds time elapsed ( +- 0.55% ) (repeat) 1.28085 +- 0.00850 seconds time elapsed ( +- 0.66% ) (repeat) 5.13.0.g60ab3ed-tip-rt +slub-local-lock-v2r3 list_lock=spinlock_t 10,004.89 msec task-clock # 6.029 CPUs utilized ( +- 1.37% ) 654,311 context-switches # 0.065 M/sec ( +- 5.16% ) 211,070 cpu-migrations # 0.021 M/sec ( +- 1.38% ) 13,262 page-faults # 0.001 M/sec ( +- 0.79% ) 36,585,914,931 cycles # 3.657 GHz ( +- 1.35% ) 27,682,240,511 instructions # 0.76 insn per cycle ( +- 1.06% ) 5,766,064,432 branches # 576.325 M/sec ( +- 1.11% ) 24,269,069 branch-misses # 0.42% of all branches ( +- 2.03% ) 1.6595 +- 0.0116 seconds time elapsed ( +- 0.70% ) 1.6270 +- 0.0180 seconds time elapsed ( +- 1.11% ) (repeat) 1.6213 +- 0.0150 seconds time elapsed ( +- 0.93% ) (repeat) virgin(ish) tip 5.13.0.g60ab3ed-tip 7,320.67 msec task-clock # 7.792 CPUs utilized ( +- 0.31% ) 221,215 context-switches # 0.030 M/sec ( +- 3.97% ) 16,234 cpu-migrations # 0.002 M/sec ( +- 4.07% ) 13,233 page-faults # 0.002 M/sec ( +- 0.91% ) 27,592,205,252 cycles # 3.769 GHz ( +- 0.32% ) 8,309,495,040 instructions # 0.30 insn per cycle ( +- 0.37% ) 1,555,210,607 branches # 212.441 M/sec ( +- 0.42% ) 5,484,209 branch-misses # 0.35% of all branches ( +- 2.13% ) 0.93949 +- 0.00423 seconds time elapsed ( +- 0.45% ) 0.94608 +- 0.00384 seconds time elapsed ( +- 0.41% ) (repeat) 0.94422 +- 0.00410 seconds time elapsed ( +- 0.43% ) 5.13.0.g60ab3ed-tip +slub-local-lock-v2r3 7,343.57 msec task-clock # 7.776 CPUs utilized ( +- 0.44% ) 223,044 context-switches # 0.030 M/sec ( +- 3.02% ) 16,057 cpu-migrations # 0.002 M/sec ( +- 4.03% ) 13,164 page-faults # 0.002 M/sec ( +- 0.97% ) 27,684,906,017 cycles # 3.770 GHz ( +- 0.45% ) 8,323,273,871 instructions # 0.30 insn per cycle ( +- 0.28% ) 1,556,106,680 branches # 211.901 M/sec ( +- 0.31% ) 5,463,468 branch-misses # 0.35% of all branches ( +- 1.33% ) 0.94440 +- 0.00352 seconds time elapsed ( +- 0.37% ) 0.94830 +- 0.00228 seconds time elapsed ( +- 0.24% ) (repeat) 0.93813 +- 0.00440 seconds time elapsed ( +- 0.47% ) (repeat)