lkml.org 
[lkml]   [2015]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC] ioctl based CAT interface
On Fri, 13 Nov 2015 14:39:33 -0200
Marcelo Tosatti <mtosatti@redhat.com> wrote:

> Attached is an early version of the ioctl based CAT interface we
> have been working on.

We're also writing a user-space app that can manage reservations
from user-space. It's integrated with util-linux. I'll setup a repo
shortly to share the source code, but here are some examples:

Create a global 2MB reservation:

# cacheset --create 2M

Create a 2MB reservation on CPUs 0 and 1:

# cacheset --create 2M --cpu-list 0,1
# cacheset --create 2M 0x3

Attach pid 4901 to reservation ID 1

# cacheset --attach 4901 1

Detach pid 4901 to reservation ID 1

# cacheset --detach 4901 1

Delete reservation ID 1

# cacheset --delete 1


\
 
 \ /
  Last update: 2015-11-13 20:21    [W:1.101 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site