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=-1.1 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, URIBL_BLOCKED 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 5B59DC433E0 for ; Fri, 3 Jul 2020 18:36:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0F64A2084C for ; Fri, 3 Jul 2020 18:36:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="XwxLmeze" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F64A2084C Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7E8398D004D; Fri, 3 Jul 2020 14:36:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 797538D0030; Fri, 3 Jul 2020 14:36:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6ACC28D004D; Fri, 3 Jul 2020 14:36:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 54E2E8D0030 for ; Fri, 3 Jul 2020 14:36:31 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id F072E52BA for ; Fri, 3 Jul 2020 18:36:30 +0000 (UTC) X-FDA: 76997620140.13.team72_2e0fdcb26e94 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id C441518140B70 for ; Fri, 3 Jul 2020 18:36:30 +0000 (UTC) X-HE-Tag: team72_2e0fdcb26e94 X-Filterd-Recvd-Size: 3818 Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Fri, 3 Jul 2020 18:36:30 +0000 (UTC) Received: by mail-lf1-f67.google.com with SMTP id y13so19009693lfe.9 for ; Fri, 03 Jul 2020 11:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ENvEJ82iZJ8k/1p4VxclPU5jsWxmJbuO8tEGgnSMZLE=; b=XwxLmeze6j9JIof0E9cCpQfSV+AgPdF9WzdCXwiKNdSmc9IirBHv/hWfOl4j7G/oo/ rIhQShtIg4/rtoajnYKJ9McM1TSyqXIAiEJOYPvBzCFhbXUCpOUTOiXspXbzHUYOTYBe ZianoTYnE5ispJRMb3eRM3zPPAbci/bcY2NZxkknHH3cAMqHwKb33B+Yc/cj6QDpmTBq 6hDZ3IxDRoVTGEoCm72KrNvnKgeOw56oWvM/2bAHQZoAWHF2tCdBUK4S67nzdI/taiC1 Z4J9Gd6KCtukaDlE6lu1WJecVgL5+1bWmkQMy7CbbqWXr4uWicl1aNc+6ZeAsCsXQqUb c7JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ENvEJ82iZJ8k/1p4VxclPU5jsWxmJbuO8tEGgnSMZLE=; b=nqxH7Z/ChfgX3OZLGx7ww3ASOp/raQZgUOc6jV1Ka2tZYHhgv6PJJugGmeBgV4omTI rnmTDW6zrJWidE7TyYOezPDL7bP/VGSJMV2B2rdT+jcBq1u7DABpRnLuwyllobIvoDtV 5OcHiHGuSgRA1tdu4fKucIhIoehX7fwRO0qR/FqpAGVAV6clO1A+KTp1V6LvLDybknC8 wqJPxlpFl5XxPLp5dkq7DZ/p7l9EtoTvuuxc0fgfYMnyX/rpvU3ZFOJFvsQgHJZEHNBK tN+dgoslXh9sFXNWcOJes0PlqHLKKLKsw0Z7G5CdqzvFb7Wwmm1J8l8r0asMuXCTkIVV Dang== X-Gm-Message-State: AOAM530j+3txWUw93NBXq5NYh1G972jYc+ESDPXFVIPliXfkHwHcJXow 6jEpYjL8U98ufi6TS71Ip6VsY2vpzU1tPgDJDA== X-Google-Smtp-Source: ABdhPJzF2URyqJhurl9+AoFXr1fjEq65BZcVKDV/r0cgLEv/+7MX7swkIm3l0JoC1RWkRpj3GR2xvOxWiss+Yv2T6R0= X-Received: by 2002:a19:7014:: with SMTP id h20mr22350887lfc.49.1593801388730; Fri, 03 Jul 2020 11:36:28 -0700 (PDT) MIME-Version: 1.0 References: <20200703155749.GA6255@pc636> <20200703174539.GA4800@hirez.programming.kicks-ass.net> In-Reply-To: <20200703174539.GA4800@hirez.programming.kicks-ass.net> From: Gabriel C Date: Fri, 3 Jul 2020 20:36:02 +0200 Message-ID: Subject: Re: nr_cpu_ids vs AMD 3970x(32 physical CPUs) To: Peter Zijlstra Cc: Uladzislau Rezki , LKML , linux-mm@kvack.org, Andrew Morton , Linus Torvalds , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: C441518140B70 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: Am Fr., 3. Juli 2020 um 19:45 Uhr schrieb Peter Zijlstra : > > On Fri, Jul 03, 2020 at 07:07:39PM +0200, Gabriel C wrote: > > > I boot all the boxes restricting the cores to the correct count on the > > command line. > > This, because you're right about the wasted memory. > > > Wasted resource or not, this is still a bug IMO. > > Yeah, but not one we can do much about I think. It is the BIOS saying it > wants more because it expects someone to come along and stick another > CPU in. > > Possible we could say that for single socket machines overprovisioning > is 'silly', but then, I've no idea how to detect that. You'll need to > find an ACPI person. I know the EPYC box got that problem too initially, it reported twice the cores and twice the sockets, but got fixed in some kernel versions. https://lkml.org/lkml/2018/5/20/102 I never really looked at how this is calculated but I still believe there is a bug somewhere.