[lkml]   [2011]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] arch/tile: add /proc/tile, /proc/sys/tile, and a sysfs cpu attribute
    On Wednesday 25 May 2011 22:31:37 Chris Metcalf wrote:
    > On 5/25/2011 4:20 PM, Arnd Bergmann wrote:
    > > On Wednesday 25 May 2011 21:18:05 Chris Metcalf wrote:
    > >> The contents of the hardwall ID file are then just a cpulist of the cpus
    > >> covered by the hardwall, rather than introducing a new convention (as
    > >> quoted above, e.g. "2x2 1,1"). Individual tasks that are in the hardwall
    > >> can be found by reading the "hardwall" files, and we can learn where they
    > >> are bound in the hardwall by reading the "stat" file as is normal for
    > >> learning process affinity.
    > > Be careful with listing PID values in the hardwall files, as the PIDs
    > > may not be unique or visible if you combine this with PID name spaces.
    > > I guess the right solution would be to only list the tasks that are
    > > present in the name space of the thread reading the file.
    > Sorry not to be clearer -- I am no longer listing any PID values in the
    > hardwall files, for that exact reason. You have to look at
    > /proc/*/hardwall (or /proc/*/tasks/*/hardwall) to find the files that are
    > in a particular hardwall. This pattern is not one that's normally directly
    > useful, though, so I'm happy leaving it to userspace if it's desired.

    Ok, thanks for the clarification.


     \ /
      Last update: 2011-05-25 22:37    [W:0.029 / U:53.556 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site