Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp33286pxy; Thu, 29 Apr 2021 23:08:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVCf9rA5dkNfc69wE7IHLvkS+aWqMkMSkYgFHndq+KNEajNSe1hIbZBdcF+CEqcHkh37m X-Received: by 2002:a17:902:7005:b029:ec:aead:23fa with SMTP id y5-20020a1709027005b02900ecaead23famr3524886plk.30.1619762892945; Thu, 29 Apr 2021 23:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619762892; cv=none; d=google.com; s=arc-20160816; b=Xdz4+n6ruURPDaM6McAs6ExorxbgP4O/BiNVrJs6mwKY/Vy2AJk7gQ3us3Hxrtrxho Wi6wU4o4Jea0AzleirN1b7FgXc1NYR2iWm/33UifIvEkvLW1fAHEfiEaZqU+y53YUzp5 xG5ZYc0Sb0/EdwG6ALOiiE4y8w3QYNNpLEkh6zGsXIwpL/GFRk7/Fkoi4dAENa6BjiVT +yd5rBSm39RtCXdW/6PyK2W0im7EmBXxhuoflEim9wQEU3ppz1wrvO089rLibmSCqhA1 N6qdDj5HrFSEi+UuB+z0KA7s9lbj3kITgxM8iJMNqf0CbIaIqS/F9C0JTqy/R5K25AHg Rr9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PyliJOONtY0ad8WRIFBL1NZs2rLjxgskPWIoVJP5MYE=; b=fWSAsiQ6hVJRQe7tL2qOdDKf0u3TyAxf8RujZsEwYIbf+lzsPxzv2KNiwSjpFzqia7 F750RoGmvu0aqU/1jInUZdBUjfPz5jvROjXjj/hLaQQ/IURYeTtmGhoudUm0xrB+VPMM zqyEZG5OUZHS8bOyJeH3IDoeZLOLrDDJHpljK9PTfl8M3JXYAm2vXQFG8BO0hCee0p9t Y+C45TtDnXjzcl1RkQLkyXcuXmDrpmEzFBL441GZig6UxeXJLmxFpO2QXCR92Bx1Eg1B cgmqilzOxt622ma9eulU3kQyc3rfF/8tEjrGxYAzMAWRHXS6D4D9g1i3WZdiIzPAmoIV gUdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fy98sGOD; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si15674278pjw.96.2021.04.29.23.07.59; Thu, 29 Apr 2021 23:08:12 -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=@linuxfoundation.org header.s=korg header.b=fy98sGOD; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbhD3GGf (ORCPT + 99 others); Fri, 30 Apr 2021 02:06:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:56910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhD3GGf (ORCPT ); Fri, 30 Apr 2021 02:06:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFF5761424; Fri, 30 Apr 2021 06:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619762747; bh=hqRzyDrn0g03rzVlU0l+LtjC2qwuU1eJezgKOZYtGLk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fy98sGODFAY6t0XGklcLMemfXkznN4XNdok3p1cL8YkvWQ7Oaewr8qcf/gbgFZ5j4 XgNp3kN3BBPHlQ7FC5DFGNzsAYHNce5vQD9CNExU2VwbYf77OZLhGMNJ0JRrpBkFOJ wratqWZ/T0qVLvT1k8dbeemExr2TQpSToEv1fP4s= Date: Fri, 30 Apr 2021 08:05:45 +0200 From: "gregkh@linuxfoundation.org" To: Dave Hansen Cc: "Song Bao Hua (Barry Song)" , "tiantao (H)" , "corbet@lwn.net" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Rafael J. Wysocki" , Peter Zijlstra , Valentin Schneider , Dave Hansen , Daniel Bristot de Oliveira Subject: Re: [PATCH 1/2] CPU, NUMA topology ABIs: clarify the overflow issue of sysfs pagebuf Message-ID: References: <1619679819-45256-1-git-send-email-tiantao6@hisilicon.com> <1619679819-45256-2-git-send-email-tiantao6@hisilicon.com> <146e051b-603c-a6d3-43d8-d083cf2c8119@intel.com> <602918a1e2214ea7bd0890a751975566@hisilicon.com> <7c663f7e-07e0-6d95-3012-6e31a1b78f7e@intel.com> <4bf6870f7f3942398e4d1fdaa42184c7@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 03:38:39PM -0700, Dave Hansen wrote: > On 4/29/21 3:32 PM, Song Bao Hua (Barry Song) wrote: > > $ strace numactl --hardware 2>&1 | grep cpu > > openat(AT_FDCWD, "/sys/devices/system/cpu", > > O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 > > openat(AT_FDCWD, "/sys/devices/system/node/node0/cpumap", O_RDONLY) = 3 > > openat(AT_FDCWD, "/sys/devices/system/node/node1/cpumap", O_RDONLY) = 3 > > openat(AT_FDCWD, "/sys/devices/system/node/node2/cpumap", O_RDONLY) = 3 > > openat(AT_FDCWD, "/sys/devices/system/node/node3/cpumap", O_RDONLY) = 3 > > > > If we move to binary, it means we have to change those applications. > > I thought Greg was saying to using a sysfs binary attribute using > something like like sysfs_create_bin_file(). Those don't have the > PAGE_SIZE limitation. But, there's also nothing to keep us from spewing > nice human-readable text via the "binary" file. That is correct.