lkml.org 
[lkml]   [2016]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2 06/33] Documentation, x86: Documentation for Intel resource allocation user interface
Date
> Hmm, I don't know how applications are going to use the interface. Nobody knows
> it right now. But we do have some candicate workloads which want to configure
> the cache partition at runtime, so it's not just a boot time stuff. I'm
> wondering why we have such limitation. The framework is there, it's quite easy
> to implement process move in kernel but fairly hard to get it right in
> userspace.

You are correct - if there is a need for this, it would be better done in the kernel.

I'm just not sure how to explain both a "procs" and "tasks" interface file in a way
that won't confuse people.

We have:

# echo {task-id} > tasks
.... adds a single task to this resource group
# cat tasks
... shows all the tasks in this resource group

and you want:

# echo {process-id} > procs
... adds all threads in {process-id} to this resource group
# cat procs
... shows all processes (like "cat tasks" above, but only shows main thread in a multi-threads process)


\
 
 \ /
  Last update: 2016-09-17 09:59    [W:0.508 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site