Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp935160ybj; Thu, 7 May 2020 10:52:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJn56sX9yTfpv2o6eSql/KVBC8/+pqP5SwiCedCgxSTKyBxauRv+6p2pT+kexcnFLhWxdYv X-Received: by 2002:a17:906:5608:: with SMTP id f8mr13720603ejq.190.1588873954413; Thu, 07 May 2020 10:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588873954; cv=none; d=google.com; s=arc-20160816; b=xnRmHyC9LN911PZWwk/elQXvE1nSUljPBm4i/XBKr6yWc6kr/G/KUuFEwqp/hIZ0mM AOOM4Y1+cryv266w70go8cjmcl9szjDEvdSdCjzjpN3jkeKY99SY7nHupTxu4SHOpbrc fV846ZRG3XvByKGPit67Kmpjjl/tyuIFwie7FrWQW2Ed4keW+Gc9IqtBrP3t4NM05kBW oqsbCvWk0r1EFj3uYGgV0Iur+B4NsaPFtO1ZkYEEpWDdKN29sKpPr9HzgLl/YMApia2T ULyZYH8aoUMdB9V71FCY/nEIivFSKjDJjJtBhsE7K12M51sIwijh0019NmYeweUKgMIa SQhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=isKMmPB0uJvXQWR9LP8AOc/de3hjqJMm8osrCYq98w4=; b=GCLonRh5DL/V0tNeDqdWdWbGKuu/wYCaJNo0w/PNxgnv9dkFvNJ6x+9uSD585IxmDY HxE6FdCfQ+02nU0vQReNevEUgektdegB03X12Lv07Ns5cHgyHkYSVj94+zQdJhBTJhmz v5BPHts+ukeGmK9OJ3xRCwAmcvQBq6Lm0r6OhXl/w+K8Hl+WvCr6dIcEAyzEeZN4ltQr qoNub0HgATKs/RnvoOzmsZUEf3AfYoKJHEdbg9mXrti9W/8u0g5KLZVJGLp7jnV2aSBr c8AJr2L3Szk6Smr6YwwXi+GiXVPQO3SIWy+pOwND96RVoVxA9WkEh3E8ydoYbI6ZRTES Ssiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TKF0pVSj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg8si3310593edb.548.2020.05.07.10.52.10; Thu, 07 May 2020 10:52:34 -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=@redhat.com header.s=mimecast20190719 header.b=TKF0pVSj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728098AbgEGRuI (ORCPT + 99 others); Thu, 7 May 2020 13:50:08 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:36497 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726367AbgEGRuH (ORCPT ); Thu, 7 May 2020 13:50:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588873806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=isKMmPB0uJvXQWR9LP8AOc/de3hjqJMm8osrCYq98w4=; b=TKF0pVSjPFhY6d61dNOvF09d9CMU4eU+qxv31VNNwvfIPJH4RTmYRXcuzKtnziJnkzXDoe +7D/3JVe+lEakbX4KcUhZ3ubyYhT3CihDNJ2b6WEIzl4BbXgn1aLpUriiEuVy8/fBavMsV O+2Pf0g93hgjpP7fdAkQALO9lH/GhXc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-302-PaccLmy4PHaFdKaj9tsmuQ-1; Thu, 07 May 2020 13:50:04 -0400 X-MC-Unique: PaccLmy4PHaFdKaj9tsmuQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E1732107ACF7; Thu, 7 May 2020 17:50:02 +0000 (UTC) Received: from lorien.usersys.redhat.com (ovpn-114-114.phx2.redhat.com [10.3.114.114]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AFCD3708EA; Thu, 7 May 2020 17:49:36 +0000 (UTC) Date: Thu, 7 May 2020 13:49:34 -0400 From: Phil Auld To: Jirka Hladky Cc: Mel Gorman , Peter Zijlstra , Ingo Molnar , Vincent Guittot , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Valentin Schneider , Hillf Danton , LKML , Douglas Shakshober , Waiman Long , Joe Mario , Bill Gray Subject: Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6 Message-ID: <20200507174934.GD19331@lorien.usersys.redhat.com> References: <20200312214736.GA3818@techsingularity.net> <20200320152251.GC3818@techsingularity.net> <20200320163843.GD3818@techsingularity.net> <20200507155422.GD3758@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 06:29:44PM +0200 Jirka Hladky wrote: > Hi Mel, > > we are not targeting just OMP applications. We see the performance > degradation also for other workloads, like SPECjbb2005 and > SPECjvm2008. Even worse, it also affects a higher number of threads. > For example, comparing 5.7.0-0.rc2 against 5.6 kernel, on 4 NUMA > server with 2x AMD 7351 CPU, we see performance degradation 22% for 32 > threads (the system has 64 CPUs in total). We observe this degradation > only when we run a single SPECjbb binary. When running 4 SPECjbb > binaries in parallel, there is no change in performance between 5.6 > and 5.7. > > That's why we are asking for the kernel tunable, which we would add to > the tuned profile. We don't expect users to change this frequently but > rather to set the performance profile once based on the purpose of the > server. > > If you could prepare a patch for us, we would be more than happy to > test it extensively. Based on the results, we can then evaluate if > it's the way to go. Thoughts? > I'm happy to spin up a patch once I'm sure what exactly the tuning would effect. At an initial glance I'm thinking it would be the imbalance_min which is currently hardcoded to 2. But there may be something else... Cheers, Phil > Thanks a lot! > Jirka > > On Thu, May 7, 2020 at 5:54 PM Mel Gorman wrote: > > > > On Thu, May 07, 2020 at 05:24:17PM +0200, Jirka Hladky wrote: > > > Hi Mel, > > > > > > > > Yes, it's indeed OMP. With low threads count, I mean up to 2x number of > > > > > NUMA nodes (8 threads on 4 NUMA node servers, 16 threads on 8 NUMA node > > > > > servers). > > > > > > > > Ok, so we know it's within the imbalance threshold where a NUMA node can > > > > be left idle. > > > > > > we have discussed today with my colleagues the performance drop for > > > some workloads for low threads counts (roughly up to 2x number of NUMA > > > nodes). We are worried that it can be a severe issue for some use > > > cases, which require a full memory bandwidth even when only part of > > > CPUs is used. > > > > > > We understand that scheduler cannot distinguish this type of workload > > > from others automatically. However, there was an idea for a * new > > > kernel tunable to control the imbalance threshold *. Based on the > > > purpose of the server, users could set this tunable. See the tuned > > > project, which allows creating performance profiles [1]. > > > > > > > I'm not completely opposed to it but given that the setting is global, > > I imagine it could have other consequences if two applications ran > > at different times have different requirements. Given that it's OMP, > > I would have imagined that an application that really cared about this > > would specify what was needed using OMP_PLACES. Why would someone prefer > > kernel tuning or a tuned profile over OMP_PLACES? After all, it requires > > specific knowledge of the application even to know that a particular > > tuned profile is needed. > > > > -- > > Mel Gorman > > SUSE Labs > > > > > -- > -Jirka > --