Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp887689imm; Fri, 14 Sep 2018 07:51:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZCFlwsJ665bEggG1bTmfDjOEnvHvKa2kNSXz3c17h2IUwd3lW1+e6L3IftAo9E7E8QCZDI X-Received: by 2002:a17:902:b702:: with SMTP id d2-v6mr12825904pls.12.1536936663122; Fri, 14 Sep 2018 07:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536936663; cv=none; d=google.com; s=arc-20160816; b=NHrGZ2hAu7z/3zKHTsCUN93zgKR8TfNJdgLLLC7PM7DuxUQ94D3QjBRrTDQQbItmIh TTl/zz4qo8K4SfiYzJVnO+p5BXxst9QN+7H6YFwIhYYEnGVvjwQYHHBQeGL/ucSO9+O+ 9S72VqKuiFMYLlOgPUpLZmdXwDtIrkWqWw4kd9lWF64+LhtjmUhwqyL4hzRjdX+yfvCf dRLqQYMJdLqKUqWRfOY8EI1ys4wi+kCWH0tr0RC4uJA+9MYWKbTZ1nTTDGvCm7A8x8nZ jFpqKlSinNqEXr0fUAvzSQjrXdk9KoGoUvb9VSjON+ks6388VqCsWeb6fdbJPbTZBhMB HvXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version; bh=R0zCWy766RE54hRWnFEO/UDDG5FecCafh6znM9o0wwg=; b=i87EK0amjsMzEaOn3S7ogE/WU4NhyjoLREDcfefaDk9qttg1Kb8B7N0IMN7AzUAJ43 g3MzITdh5uDGpeRr7yLP6ma7POsGqNvyNJN0WjaZISfsnluRzwcy5rfbT8yrsTAa4zS1 XQSl60k7/svqk9qjghNrZ+CMOkh+nT6T88uktYipl8K1Fmea8NF60fINJkgZIL+MaZIR tQGXU2j+dR9pRzCpoSXGahq3nlX69h0aWWfcP9/vvVNL+o66Pr1Pie19ZHW5GiXNMgpZ qpu183hDEd9HNU5KVtZr26loSoaSTXuQ8Hz85cMhLl9HLhe9tmcMT/UREKbGZoQM8KRO 7fsg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11-v6si6294792pgt.44.2018.09.14.07.50.43; Fri, 14 Sep 2018 07:51:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728181AbeINUFN (ORCPT + 99 others); Fri, 14 Sep 2018 16:05:13 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:46142 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728015AbeINUFN (ORCPT ); Fri, 14 Sep 2018 16:05:13 -0400 Received: by mail-oi0-f68.google.com with SMTP id y207-v6so13009492oie.13 for ; Fri, 14 Sep 2018 07:50:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=R0zCWy766RE54hRWnFEO/UDDG5FecCafh6znM9o0wwg=; b=U6UhhtAY4JU3gZIzc01t3eC7rt0MRfZcacxbXRJIGtAnc1HxdICQgvYP5rwookXt/c zVBNvj4oI3tYn9CtH4ZKFDT7BFFymMROmeq9NTuD7I8dwK7uBhafcCwB3ZlHQ4AkTDHi EANjoqKlh4MildRlagtflPb3mtLtSul2r0HLCGCY1hP7W9jgR+2XP8WOOq17PSz9nP/3 JDeNR7pA+AOzDFqLtvY/nxZu21hcDHzKJWuIrWE5mXfHeHtFRUZRVPplanaRimRORUhc /qFg3rDNnQ69RR4+r1x0CsGu4V1vH4o0bnqmqczGfWizJCT35pEy2Ykp6Tl9i/L5xutI QKjg== X-Gm-Message-State: APzg51D806sss1Y5l7o8m2PvVM+f3or1GKb+QtiNJ5eIWThCe2jF0FWC opMvIrICBEU8fxavOMyYa8pcYQr1UmiEehaKnDT4Xw== X-Received: by 2002:aca:cf44:: with SMTP id f65-v6mr10279079oig.356.1536936620996; Fri, 14 Sep 2018 07:50:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:554b:0:0:0:0:0 with HTTP; Fri, 14 Sep 2018 07:50:20 -0700 (PDT) In-Reply-To: References: <20180907125649.GA3995@linux.vnet.ibm.com> <20180907131923.GB24106@hirez.programming.kicks-ass.net> <20180907134420.GD3995@linux.vnet.ibm.com> <20180907135235.GE24106@hirez.programming.kicks-ass.net> From: Jirka Hladky Date: Fri, 14 Sep 2018 16:50:20 +0200 Message-ID: Subject: Re: [SCHEDULER] Performance drop in 4.19 compared to 4.18 kernel To: Peter Zijlstra Cc: Srikar Dronamraju , Mel Gorman , "Jakub Ra??ek" , linux-kernel , "kkolakow@redhat.com" , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter and Srikar, > I have bounced the 5 patches to you, (one of the 6 has not been applied by > Peter) so I have skipped that. > They can also be fetched from > http://lore.kernel.org/lkml/1533276841-16341-1-git-send-email-srikar@linux.vnet.ibm.com I'm sorry for the delay, we have finally the results for the above kernel. The performance results look good compared to 4.19 vanilla and are about the same as Mel's sched-numa-fast-crossnode-v1r12 patch set for 4.18: Compared to kernel-4.19.0-0.rc1.1 * Improvement upto 20% for SPECjbb2005, SPECjvm2008 benchmarks * Improvement upto 50% for stream benchmark * Improvement upto 100% for the NAS benchmark (sp_C subtest, 8 threads on 4 NUMA system with 4x E5-4610 v2 @ 2.30GHz, 64 cores in total) When I compare it against Mel's patchset (git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git sched-numa-fast-crossnode-v1r12) * Mel's kernel is about 15% faster for stream benchmarks * The other benchmarks show very similar results with both kernels Mel's patchset eliminates NUMA migration rate limits, this is presumbly the reason for the good stream results. Do you have any update when the current patchset could be merged into the upstream kernel? Thanks a lot! Jirka On Sun, Sep 9, 2018 at 4:03 PM, Jirka Hladky wrote: > > Hi Peter and Srikar, > > thanks a lot for the information and for the patches to test! > > > I have bounced the 5 patches to you, (one of the 6 has not been applied by > > Peter) so I have skipped that. > > They can also be fetched from > > http://lore.kernel.org/lkml/1533276841-16341-1-git-send-email-srikar@linux.vnet.ibm.com > > We have started the benchmarks, I will report the results on Monday. > > > I generally run specjbb2005 (single and multi instance). > We also run a single and multi-instance specjbb2005 test. > > > I have tried running NAS but I couldn't set it up properly. > We run the OMP variant and we control the number of threads with the > OMP_NUM_THREADS env variable. The setup is quite simple: > > cd NPB_sources/config/ > mv suite_x86_64.def suite.def > cd .. > make suite > > FYI - starting from 4.17 kernel there is a significant performance > drop compared to 4.16 kernel. Mel has come up with a > sched-numa-fast-crossnode-v1r12 patch series > git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git which we have > tested extensively and with it, the benchmarks results are back at > 4.16 level. As I understand it, Mel's patch series depends on your > patch series and can be only merged when your patches are completed. > > Thanks! > Jirka > > > On Fri, Sep 7, 2018 at 3:52 PM, Peter Zijlstra wrote: > > > > On Fri, Sep 07, 2018 at 07:14:20PM +0530, Srikar Dronamraju wrote: > > > * Peter Zijlstra [2018-09-07 15:19:23]: > > > > > > > On Fri, Sep 07, 2018 at 06:26:49PM +0530, Srikar Dronamraju wrote: > > > > > > > > > Can you please pick > > > > > > > > > > > > > > > 1. 69bb3230297e881c797bbc4b3dbf73514078bc9d sched/numa: Stop multiple tasks > > > > > from moving to the cpu at the same time > > > > > 2. dc62cfdac5e5b7a61cd8a2bd4190e80b9bb408fc sched/numa: Avoid task migration > > > > > for small numa improvement > > > > > 3. 76e18a67cdd9e3609716c8a074c03168734736f9 sched/numa: Pass destination cpu as > > > > > a parameter to migrate_task_rq > > > > > 4. 489c19b440ebdbabffe530b9a41389d0a8b315d9 sched/numa: Reset scan rate > > > > > whenever task moves across nodes > > > > > 5. b7e9ae1ae3825f35cd0f38f1f0c8e91ea145bc30 sched/numa: Limit the > > > > > conditions where scan period is reset > > > > > > > > > > from https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/kernel/sched > > > > > > > > That is not a stable tree; the whole thing is re-generated from my quilt > > > > set every time I feel like it. > > > > > > > > It is likely those commit ids will no longer exist in a few hours. > > > > > > > > > > Okay, I will forward the relevant mails to Jirka. > > > > Or he can click on that link and find new IDs :-)