Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp732847yba; Fri, 12 Apr 2019 12:34:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeEHQvlPcoXpb4i1qJZMEGweh4jcZ0Zn36ULsc0yZv5D6NyMqtDsrX6rr+OzfyuLwBuc6p X-Received: by 2002:a17:902:b10c:: with SMTP id q12mr58972150plr.254.1555097645186; Fri, 12 Apr 2019 12:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555097645; cv=none; d=google.com; s=arc-20160816; b=u+TRRQqmsz4lyqzxZO8UG2QAzFuRqV5oDiLTxMY12tASOsIWdKCkk86awq6brPCZWv AQC3uXEiNWkUyPH0hwxP7f0fga8xZtUGGwzdYftsVSCLxkF76GbjQy3m9FDGjJ7Y77vD mZbuGi6z4W1EREF3pM0nNDYwQUOJohgK+4A4pretMw4TH5u84IA7R4zt44xoVo43LGNl PAGBwQ2Bhh9fUT3Ybp30ax8zQPcnEREo77fMDj/6fpTPjNVkKsondYh4SawOeALtKof0 DcKplV275ENId135YOFG/ircu5hRkZaPAZW9VKFGYa0srSVPPNaqx38RG091Et8Wchaj uLHw== 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 :in-reply-to:references:mime-version; bh=fL6Pbpktz1jLAglVEkV/isN/w3tNz9RyGJicSn0MlQ4=; b=c3OA5xmdu6v6n+H9sJ0ue+SW113oZ9z8jUuFVRzmDEIPqyIVBKa0oxWSc3s7/Vo0Sk imnmxr2JC1kLa9mrQWkD7mlFnWtNuJM7EZlgvsk/I0iUb7RqcBYXKLZ9tCoe98fFOtjx h+Tc9lSFTClMI1SQK9A2Yh0wYiB/Ui9v/v9kJnRqp3EYOIrV1YR6kxwgaSINR3VqrLap fTn7GwQggqMDmyGyLpfevTs2616Hu63Z2hT20SPlqT4XIW/4H6ooeSayMe8EYobCtHRZ ZVxrxegTPUrwBaJ/WGKuOGjVB0J+b3bF83xcw8sRt2euPajK1YSsf210XFZrlH2ARVOF fr2Q== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si37572359pgi.286.2019.04.12.12.33.47; Fri, 12 Apr 2019 12:34:05 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbfDLTcf (ORCPT + 99 others); Fri, 12 Apr 2019 15:32:35 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:33383 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbfDLTcf (ORCPT ); Fri, 12 Apr 2019 15:32:35 -0400 Received: by mail-ed1-f68.google.com with SMTP id d55so8538238ede.0 for ; Fri, 12 Apr 2019 12:32:34 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fL6Pbpktz1jLAglVEkV/isN/w3tNz9RyGJicSn0MlQ4=; b=ZAHVXriT2xHpRcZVgYBieUPxZLCavtQqaFoWH2irk9L13hBdZEFJZTcoVX42M2yQOD ubS4/L9K8pu0dY5u/bpThS38Kzx1NmPtbsq3A13Tz/517X7i3QIJ106pM7+xBpjxyRD3 mwIZdKUL7bbC5Zztyp99+Xo7RsEQKXMyG9+ZNK5HWKtcOfVYRGR5gcqGIud305/e42eJ xFYKcQlozJ8tDBgQ0hhAe6IC2d8x35EbfgsJRQ6p/FlohEhC27DbiuYhlvBewXHVqTkz 5ka0Fi/wFU961Nff1vY2GNfh25BaY5es8ISDAmskRuolmckXgqLlFzgrAdqM5n8knUJC tLcw== X-Gm-Message-State: APjAAAWZ2E7OG/ncA089e/8aJP1XlTghRod8TpozLxTjO4UlAsFeMzlN EdW4pgKebvWK96g7j9DNthkgKKwHZBJDeWO1uM/Od3qa X-Received: by 2002:a50:a704:: with SMTP id h4mr35645423edc.7.1555097553542; Fri, 12 Apr 2019 12:32:33 -0700 (PDT) MIME-Version: 1.0 References: <20190226062012.23746-1-lenb@kernel.org> <20190226185131.GP2861@worktop.programming.kicks-ass.net> In-Reply-To: <20190226185131.GP2861@worktop.programming.kicks-ass.net> From: Len Brown Date: Fri, 12 Apr 2019 15:32:22 -0400 Message-ID: Subject: Re: [PATCH 0/14] v2 multi-die/package topology support To: Peter Zijlstra Cc: X86 ML , linux-kernel@vger.kernel.org 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 On Tue, Feb 26, 2019 at 1:51 PM Peter Zijlstra wrote: > > On Tue, Feb 26, 2019 at 01:19:58AM -0500, Len Brown wrote: > > Restored sysfs core_siblings, core_siblings_list > > > > v1 proposed re-defining this existing attribute to > > be the threads in a die, rather than in a package. > > > > For compatibility, decided rather to keep this > > attribute unchanged, for now, even though > > its name makes little sense, and it makes > > no sense in a multi-die system. > > So why do things that make no sense? >>> 7) /sys/devices/system/cpu/cpuX/topology/core_siblings: >>> >>> internal kernel map of cpuX's hardware threads within the same >>> physical_package_id. This definition tells you what cpus are in what package. That is fine, it is useful, and it is in use. What doesn't make sense is that it is called "core_siblings". Who is to say that the map of CPUs inside a package has anything to do with "cores"? Sometimes it does, sometimes it doesn't... > What breaks? User space applications, such as lscpu and hwloc are using this attribute per its definition, to figure out what cpus are in what packages. If we change the definition to match the attribute's name, they break. If we change the attribute name to match the definition, they break. So the plan is to simply leave this attribute and its definition in place, deprecate it, and move to the new attribute names that don't have the word "siblings" in them -- which imply a known fixed topology. We can schedule this attribute to be deleted some day, but changing it and hoping you've updated all of user-space would be a unnecessary pain. Len Brown, Intel Open Source Technology Center