From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2C1EC433DF for ; Fri, 3 Jul 2020 17:09:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B584920760 for ; Fri, 3 Jul 2020 17:09:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mEMP61SI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B584920760 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 570A68D0094; Fri, 3 Jul 2020 13:09:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 520FB8D0074; Fri, 3 Jul 2020 13:09:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4101A8D0094; Fri, 3 Jul 2020 13:09:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0089.hostedemail.com [216.40.44.89]) by kanga.kvack.org (Postfix) with ESMTP id 2C9408D0074 for ; Fri, 3 Jul 2020 13:09:48 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C2B278245571 for ; Fri, 3 Jul 2020 17:09:47 +0000 (UTC) X-FDA: 76997401614.19.pot55_5b03e3026e93 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 974691ACEA2 for ; Fri, 3 Jul 2020 17:09:47 +0000 (UTC) X-HE-Tag: pot55_5b03e3026e93 X-Filterd-Recvd-Size: 4154 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Fri, 3 Jul 2020 17:09:47 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id 9so37755040ljv.5 for ; Fri, 03 Jul 2020 10:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oeo5CXQ+MIvI9X/KqYCM4k7p1aIl5c+gDkE9upkp9MI=; b=mEMP61SIuM9rZ2VcziXZ8sjhv97O3D7uYgQPh2Um702rlJHdKNixH5LCCtCg7ma1SK Oe3zPfpvFhu+Cv5ZqvWjOFV1uDqzLNg+ExJq9hU+m79YCWUBEO64+s/hZbtTAGAay2oy 2PGSxpKM2IxdqnGoKcoavB3H6rZ32aXaoy7w5/+ySMDQtaBV5sgGj/4gGfzGBNkF0v5+ bRmWBs95NGoUhvstuU11hyiken5HwroxhW/l/LpNc6YF8VVKFwOhXitXHD0w6xj6XPGg yUOOP27qkxFgSt0TZzbuvc5QvfVS492+FwDJEy/+qPGacBpDJU+wBLco5cAe3glwyJbb tYSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oeo5CXQ+MIvI9X/KqYCM4k7p1aIl5c+gDkE9upkp9MI=; b=L7jp4FstXsDA4d6RkBAX+JCYJaHBbaAGIEvEZP7XBOgl+13JQfy42Ez5nKcxlYiAvZ cp6pnrnpyQOE3VopOC6bHCekRbs4iUmbfjkhdd4W575QcHsZ8SqnzAML/Buxyjk+edr5 VRPkaNwVaOidh9dpgT8tZ7DQsE6u28QCi8qqY99rjGj9j6oBpEbiN4MPnrqwzZlyl4fi GhZzNpmAuV5o5gHk9TOfYOhd+nmhfe759kbyqVHClZr7L73BEq06GMC2QGygiGcknJhn GrhiuNlMNkhRlhjhv6xc07ZmgnMkejXcRVqjaGzQgaNrh1e4Y66ISG8b0CEi6L3nCPgf qbdQ== X-Gm-Message-State: AOAM531mRlyJWAD3MVzh3qA69M+O4vmDSYICilzNI2satRYlUTcFnwQj P/yS6y61Bxj9NAtEA60pnAc= X-Google-Smtp-Source: ABdhPJyXTQqlj63BdRU2H9md2eokHCqmuSThuy9TKjGvOrn+N7DeTicfXle4wTxt2PfQ0sRv7GPMeg== X-Received: by 2002:a05:651c:30b:: with SMTP id a11mr15444314ljp.47.1593796185996; Fri, 03 Jul 2020 10:09:45 -0700 (PDT) Received: from pc636 (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id a22sm4842885lfg.96.2020.07.03.10.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 10:09:45 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Fri, 3 Jul 2020 19:09:41 +0200 To: Peter Zijlstra Cc: Uladzislau Rezki , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Linus Torvalds , GregKroah-Hartmangregkh@linuxfoundation.org Subject: Re: nr_cpu_ids vs AMD 3970x(32 physical CPUs) Message-ID: <20200703170941.GA4372@pc636> References: <20200703155749.GA6255@pc636> <20200703165627.GG4781@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200703165627.GG4781@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 974691ACEA2 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Jul 03, 2020 at 06:56:27PM +0200, Peter Zijlstra wrote: > On Fri, Jul 03, 2020 at 05:57:49PM +0200, Uladzislau Rezki wrote: > > Hello, folk. > > > > I have a system based on AMD 3970x CPUs. It has 32 physical cores > > and 64 threads. It seems that "nr_cpu_ids" variable is not correctly > > set on latest 5.8-rc3 kernel. Please have a look below on dmesg output: > > > > > > urezki@pc638:~$ sudo dmesg | grep 128 > > [ 0.000000] IOAPIC[0]: apic_id 128, version 33, address 0xfec00000, GSI 0-23 > > [ 0.000000] smpboot: Allowing 128 CPUs, 64 hotplug CPUs > > This is your BIOS saying it needs 128 ids, 64 of which are 'empty'. > > I have a box like that as well, if it bothers you boot with: > "possible_cpus=64" or something. > OK, i got it. I thought that "cpu_possible_mask" strictly follows the rule: the number of CPUs in a system that physically are present. Thanks, Peter! -- Vlad Rezki