lkml.org 
[lkml]   [2015]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] show nohz_full cpus in sysfs
On Sat, Mar 28, 2015 at 12:15:56PM -0400, Rik van Riel wrote:
> On 03/28/2015 12:02 PM, Frederic Weisbecker wrote:
> > 2015-03-27 22:50 GMT+01:00 <riel@redhat.com>:
> >> From: Rik van Riel <riel@redhat.com>
> >>
> >> Currently there is no way to query which CPUs are in nohz_full
> >> mode from userspace.
> >
> > Well you can watch dmesg | grep NO_HZ
> > But surely sysfs is more convenient from an app.
> >
> > I guess it's ok, as long as it's strictly Read Only. Here it seems to
> > be the case. And it's not chmod'able, right?
>
> I followed the other code for files in that directory.
>
> Quick testing shows that the cpu info files in
> /sys/devices/system/cpu are chmoddable, but writing
> to them fails with -EIO because there is no function
> set up to handle writes. So yeah, read only :)

Perfect :-)


\
 
 \ /
  Last update: 2015-03-28 19:21    [W:0.073 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site