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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 64764C2B9F4 for ; Mon, 14 Jun 2021 17:00:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E70C61378 for ; Mon, 14 Jun 2021 17:00:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235115AbhFNRDA (ORCPT ); Mon, 14 Jun 2021 13:03:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:50362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233843AbhFNRC7 (ORCPT ); Mon, 14 Jun 2021 13:02:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5FE6611C1; Mon, 14 Jun 2021 17:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623690056; bh=7iMl6YWN5AAOYzZBpWX/eEVFpy+IzMJ9khgpokIOPyw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HpBtaTRL2kH+P7hq4lH5uSTVhat+kchmH3KHZkk8D09fXytlYCzjwbp6qo0EqqfeS P74Orzf4PorJCN+DwYaNasW9xG2oBIF1FPYyfNQCAB1mUNngHKqx8mCXS+aps/KMFz 6oklC/0YoJwkpZDQTFB6FbKp1EWHG0wwR3YN+xNc= Date: Mon, 14 Jun 2021 19:00:53 +0200 From: Greg KH To: Waiman Long Cc: Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Rafael J. Wysocki" , Luis Chamberlain , Kees Cook , Iurii Zaikin , x86@kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 4/4] driver core: Allow showing cpu as offline if not valid in cpuset context Message-ID: References: <20210614152306.25668-1-longman@redhat.com> <20210614152306.25668-5-longman@redhat.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-fsdevel@vger.kernel.org On Mon, Jun 14, 2021 at 12:32:01PM -0400, Waiman Long wrote: > On 6/14/21 11:52 AM, Greg KH wrote: > > On Mon, Jun 14, 2021 at 11:23:06AM -0400, Waiman Long wrote: > > > Make /sys/devices/system/cpu/cpu/online file to show a cpu as > > > offline if it is not a valid cpu in a proper cpuset context when the > > > cpuset_bound_cpuinfo sysctl parameter is turned on. > > This says _what_ you are doing, but I do not understand _why_ you want > > to do this. > > > > What is going to use this information? And now you are showing more > > files than you previously did, so what userspace tool is now going to > > break? > > One reason that is provided by the customer asking for this functionality is > because some applications use the number of cpu cores for licensing purpose. > Even though the applications are running in a container with a smaller set > of cpus, they may still charge as if all the cpus are available. They ended > up using a bind mount to mount over the cpuX/online file. Great, then stick with the bind mount for foolish things like that. There's no technical reason for doing this then, just marketing? thanks, greg k-h