linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [PATCH 0/4] cgroup/cpuset: Allow cpuset to bound displayed cpu info
           [not found] <20210614152306.25668-1-longman@redhat.com>
           [not found] ` <20210614152306.25668-5-longman@redhat.com>
    @ 2021-06-14 20:43 ` Tejun Heo
      2021-06-15  2:53   ` Waiman Long
      2021-06-15  9:14   ` Christian Brauner
      1 sibling, 2 replies; 7+ messages in thread
    From: Tejun Heo @ 2021-06-14 20:43 UTC (permalink / raw)
      To: Waiman Long
      Cc: Zefan Li, Johannes Weiner, Jonathan Corbet, Thomas Gleixner,
    	Ingo Molnar, Borislav Petkov,
    	H. Peter Anvin <hpa@zytor.com>,
    	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
    	Rafael J. Wysocki ,
    	Luis Chamberlain, Kees Cook, Iurii Zaikin, x86, cgroups,
    	linux-kernel, linux-doc, linux-fsdevel
    
    Hello,
    
    On Mon, Jun 14, 2021 at 11:23:02AM -0400, Waiman Long wrote:
    > The current container management system is able to create the illusion
    > that applications running within a container have limited resources and
    > devices available for their use. However, one thing that is hard to hide
    > is the number of CPUs available in the system. In fact, the container
    > developers are asking for the kernel to provide such capability.
    > 
    > There are two places where cpu information are available for the
    > applications to see - /proc/cpuinfo and /sys/devices/system/cpu sysfs
    > directory.
    > 
    > This patchset introduces a new sysctl parameter cpuset_bound_cpuinfo
    > which, when set, will limit the amount of information disclosed by
    > /proc/cpuinfo and /sys/devices/system/cpu.
    
    The goal of cgroup has never been masquerading system information so that
    applications can pretend that they own the whole system and the proposed
    solution requires application changes anyway. The information being provided
    is useful but please do so within the usual cgroup interface - e.g.
    cpuset.stat. The applications (or libraries) that want to determine its
    confined CPU availability can locate the file through /proc/self/cgroup.
    
    Thanks.
    
    -- 
    tejun
    
    ^ permalink raw reply	[flat|nested] 7+ messages in thread

  • end of thread, other threads:[~2021-06-15 16:01 UTC | newest]
    
    Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <20210614152306.25668-1-longman@redhat.com>
         [not found] ` <20210614152306.25668-5-longman@redhat.com>
    2021-06-14 15:52   ` [PATCH 4/4] driver core: Allow showing cpu as offline if not valid in cpuset context Greg KH
    2021-06-14 16:32     ` Waiman Long
    2021-06-14 17:00       ` Greg KH
    2021-06-14 20:43 ` [PATCH 0/4] cgroup/cpuset: Allow cpuset to bound displayed cpu info Tejun Heo
    2021-06-15  2:53   ` Waiman Long
    2021-06-15 15:59     ` Tejun Heo
    2021-06-15  9:14   ` Christian Brauner
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).