Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2571690ybt; Fri, 3 Jul 2020 12:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytI47azjujXLLX3Iqyn/gQ5pjxS/ZvoQnv7zydxg62O6Wf+BDGF2wunRDewT0S2hTyA7+V X-Received: by 2002:a17:906:d286:: with SMTP id ay6mr24911830ejb.400.1593804656788; Fri, 03 Jul 2020 12:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593804656; cv=none; d=google.com; s=arc-20160816; b=XQGmjUpNXD6+VFUPoXqYKEno1YG5ir1YIdggUW+KUt4qW6HDUOc9hwS3J65z3+S5+C luZusA775xe+hbA9XbuM8+L98uPRc+Ug6UVpnX1bcqJ0WMF/hnw3DxR8en5Sc/EnImA7 qJuUu7LbjtsKqwNTDb+g04eN9n+OIyC6+7QgOfNu+4n3vpKp37zb2GgX2QAP3VL9tECZ Nk+8h+RKqwnrzMKMvISYK3BwHvs+VYYPbo1loCYcuC8XdrzAq7XiMUYZFXtmGKy9j9Mo BTlfd6Wkj9pTO5IFNckSvD9qisq6iQHZ2ut2cnes4qV3aCSENvFcN1+acHMQLl4mt9Fq KHpg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=PEF99zxMAINi9xQriRe0t74AkdAmX7z1CxtTg07Rsp8=; b=Ht3cjSBKCNzchTfTj8hJQ2p88N8W5dQVrFbcs1Nxpmuc1wDboeJL5c7R1PL0U3X5J2 BnqRbgjQ3FfLE8xQkGuR9ttz3Rx6FDEMymEZQkEO+zV9/Lcuf2uOKcj0aBMWN9X5FHsi lcIGrkGuISnDiXTSuJK4bMwSbKvLe5udxJXYo9T8SmX85c6906PQMqb33FPmL9JBB+c1 aWUo13+J+7f8yfu+A/Ao+sWz9atd8cjhv5mUo5udfp8Azc5yUV+hNPo6IrDUM3gSlqG3 Xl9Ycpitc1Ty56EbBCseZAGAhoJjO7D744ndDr+LbFos6Y+okTeY7oc2LxeQFhBJ1HrK AA1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tojfi2X6; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si8311626ejs.278.2020.07.03.12.30.32; Fri, 03 Jul 2020 12:30:56 -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=@gmail.com header.s=20161025 header.b=tojfi2X6; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726502AbgGCT2M (ORCPT + 99 others); Fri, 3 Jul 2020 15:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgGCT2L (ORCPT ); Fri, 3 Jul 2020 15:28:11 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E84EC061794 for ; Fri, 3 Jul 2020 12:28:11 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id b25so34611958ljp.6 for ; Fri, 03 Jul 2020 12:28:11 -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:content-transfer-encoding:in-reply-to :user-agent; bh=PEF99zxMAINi9xQriRe0t74AkdAmX7z1CxtTg07Rsp8=; b=tojfi2X6LHGVMCGpVIbKBtZTXgJCr7+bdUVsuWaIC0On9kdDd/OIYCvZnYmTJtKbiV fUrEx+RJuN6HA1aAd77VNI4FZhqYNs+b10aQMIHX/JxeTtrEcIBSqI8zQBnWvEaSB7CK deeQDKWZNFC4olaE/xeRGGAWxafij8AIDFwjREuGFPBGEw7PuzZ4cMT0S2BjUUKDCSYy +ccVtVURhU1PO2DRLGa7LAxquqS5QyWV0l2fGZ2l+Dh+BmWMk8McZL0KK4bArAXq5uRA dhf0kfZj1p+ZpGQlBpjimL2MuY0XxeThHtXOyppyMe6BEoyGa37QMt/L1Q3mKc1j7oNv ucUg== 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:content-transfer-encoding :in-reply-to:user-agent; bh=PEF99zxMAINi9xQriRe0t74AkdAmX7z1CxtTg07Rsp8=; b=Zgu+gwolFvP9ziF1+u8U7XmJC/SD7ZSxwdjZJ0aa/v5pbzCZyTaVK4RZRYk930GjlM AINX827fhslz5oJ9bh8poHa6MqJcprqh+DM5OVss4Q3Ayqo72dozIPJTBCxtYMjypZ3s ao2Qq1Zb+lntzSeVa+DKR/zczjF9H+6rKLwycI3tK43ZDPazjV7GCq4Sc528Vd0Ggfxw EWvOSK0KBFsk25Wu8FugxDASkQkag+29Ct5pQY+rBeM+L2nDisXZs9VThrXoe1C5ryrV fatP2YNK4ZEBRYU/tpwa5NfOFW+xhDSpAie5MFoaEkkQ5D0FRC5KADn16QHp8JDxCr3V uupw== X-Gm-Message-State: AOAM532pJQxKmaHgetZL0927MWfHnteJ6trt7nfEpP5876vFzRrsMxwH 0Ck3P2cVC4l/AOWQUqa2p6A= X-Received: by 2002:a2e:91c7:: with SMTP id u7mr15052145ljg.184.1593804489890; Fri, 03 Jul 2020 12:28:09 -0700 (PDT) Received: from pc636 (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id 193sm5823877lfa.90.2020.07.03.12.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 12:28:09 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Fri, 3 Jul 2020 21:28:07 +0200 To: peter enderborg Cc: Uladzislau Rezki , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Linus Torvalds , GregKroah-Hartmangregkh@linuxfoundation.org, peterz@infradead.org Subject: Re: nr_cpu_ids vs AMD 3970x(32 physical CPUs) Message-ID: <20200703192807.GB5207@pc636> References: <20200703155749.GA6255@pc636> <8a2a55e6-6087-e4bf-3d35-ed4b4c216369@sony.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8a2a55e6-6087-e4bf-3d35-ed4b4c216369@sony.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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 > > [ 0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:128 nr_node_ids:1 > > My 3950 do > > > [    0.005271] ACPI: SSDT 0x00000000CA1F5000 0003F1 (v02 ALASKA CPUSSDT  01072009 AMI  01072009) > [    0.108266] smpboot: Allowing 32 CPUs, 0 hotplug CPUs > [    0.111384] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:32 nr_cpu_ids:32 nr_node_ids:1 > > (Fedora F32  5.6.18-300) What motherboard and BIOs do you use? > I have MSI TRX40 with latest BIOS. -- Vlad Rezki