[libvirt] [v6 07/10] Resctrl: Make sure l3data/l3code are pairs

2017-02-14 Thread Eli Qiao
l3data and l3code type of cache banks should be configured pairs. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 19 +++ src/util/virresctrl.c | 1 - src/util/virresctrl.h | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b

[libvirt] [v6 04/10] Resctrl: Add private interface to set cachebanks

2017-02-14 Thread Eli Qiao
virResCtrlSetCacheBanks: Set cache banks of a libvirt domain. It will create new resource domain under `/sys/fs/resctrl` and fill the schemata according the cache banks configration. virResCtrlUpdate: Update the schemata after libvirt domain destroy. Signed-off-by: Eli Qiao --- src

[libvirt] [v6 08/10] Resctrl: Compatible mode for cdp enabled

2017-02-14 Thread Eli Qiao
This patch support l3 cache allocation compatible mode if cdp enabled on host. In this case l3code/l3data has same schemata. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 15 +-- src/util/virresctrl.c | 10 ++ 2 files changed, 23 insertions(+), 2 deletions(-) diff

[libvirt] [v6 00/10] Support cache tune in libvirt

2017-02-14 Thread Eli Qiao
w public interface to get free cache information. 2. Expose a new public interface to set cachetune lively. Some discussion about this feature support can be found from: https://www.redhat.com/archives/libvir-list/2017-January/msg00644.html Eli Qiao (10): Resctrl: Add some utils functions

[libvirt] [v7 07/10] Resctrl: Make sure l3data/l3code are pairs

2017-02-16 Thread Eli Qiao
l3data and l3code type of cache banks should be configured pairs. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 19 +++ src/util/virresctrl.c | 1 - src/util/virresctrl.h | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b

[libvirt] [v7 10/10] Resctrl: Scan resctrl before doing cache allocation

2017-02-16 Thread Eli Qiao
Other application may touch resctrl while libvirt's running, scan resctrl again before allocating cache information to the newly created VM. Signed-off-by: Eli Qiao --- src/util/virresctrl.c | 44 1 file changed, 44 insertions(+) diff --git

[libvirt] [v7 01/10] Resctrl: Add some utils functions

2017-02-16 Thread Eli Qiao
ntain resource control information. Signed-off-by: Eli Qiao --- include/libvirt/virterror.h | 1 + po/POTFILES.in | 1 + src/Makefile.am | 1 + src/libvirt_private.syms| 4 + src/util/virerror.c | 1 + src/util/virresctrl.c

[libvirt] [v7 08/10] Resctrl: Compatible mode for cdp enabled

2017-02-16 Thread Eli Qiao
This patch support l3 cache allocation compatible mode if cdp enabled on host. In this case l3code/l3data has same schemata. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 15 +-- src/util/virresctrl.c | 10 ++ 2 files changed, 23 insertions(+), 2 deletions(-) diff

[libvirt] [v7 05/10] Qemu: Set cache banks

2017-02-16 Thread Eli Qiao
Set cache banks while booting a new domain. Signed-off-by: Eli Qiao --- src/qemu/qemu_driver.c | 6 -- src/qemu/qemu_process.c | 53 + 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu

[libvirt] [v7 00/10] Support cache tune in libvirt

2017-02-16 Thread Eli Qiao
hives/libvir-list/2017-January/msg00644.html *** BLURB HERE *** Eli Qiao (10): Resctrl: Add some utils functions Resctrl: expose cache information to capabilities Resctrl: Add new xml element to support cache tune Resctrl: Add private interface to set cachebanks Qemu: Set cache banks

[libvirt] [v7 03/10] Resctrl: Add new xml element to support cache tune

2017-02-16 Thread Eli Qiao
This patch adds new xml element to support cache tune as: ... ... id: any non-minus number host_id: reference of the host's cache banks id, it's from capabilities type: cache bank type size: should be multiples of the min_size of the bank on host. vcpus: cache allocation on vcpu set, if

[libvirt] [v7 04/10] Resctrl: Add private interface to set cachebanks

2017-02-16 Thread Eli Qiao
virResCtrlSetCacheBanks: Set cache banks of a libvirt domain. It will create new resource domain under `/sys/fs/resctrl` and fill the schemata according the cache banks configration. virResCtrlUpdate: Update the schemata after libvirt domain destroy. Signed-off-by: Eli Qiao --- src

[libvirt] [v7 09/10] Resctrl: concurrence support

2017-02-16 Thread Eli Qiao
each bank. We need also to add lock to access /sys/fs/resctrl, use flock. Signed-off-by: Eli Qiao --- src/util/virresctrl.c | 97 ++- src/util/virresctrl.h | 3 ++ 2 files changed, 83 insertions(+), 17 deletions(-) diff --git a/src/util/virresctr

[libvirt] [v7 06/10] Resctrl: enable l3code/l3data

2017-02-16 Thread Eli Qiao
resctrl -o cdp /sys/fs/resctrl Signed-off-by: Eli Qiao --- docs/schemas/domaincommon.rng | 2 +- src/util/virresctrl.c | 25 - 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index edb2888

[libvirt] [v7 02/10] Resctrl: expose cache information to capabilities

2017-02-16 Thread Eli Qiao
.html Signed-off-by: Eli Qiao --- src/conf/capabilities.c | 56 ++ src/conf/capabilities.h | 23 src/libvirt_private.syms | 3 +++ src/nodeinfo.c | 64 src/nodei

Re: [libvirt] [v7 00/10] Support cache tune in libvirt

2017-02-20 Thread Eli Qiao
-- Best regards Eli 天涯无处不重逢 a leaf duckweed belongs to the sea, where not to meet in life Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday, 19 February 2017 at 10:51 PM, Marcelo Tosatti wrote: > > Hi Eli Qiao, > > Question about removing resctrlfs dire

Re: [libvirt] [v7 00/10] Support cache tune in libvirt

2017-02-20 Thread Eli Qiao
-- Best regards Eli 天涯无处不重逢 a leaf duckweed belongs to the sea, where not to meet in life Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, 20 February 2017 at 3:59 PM, Martin Kletzander wrote: > On Sun, Feb 19, 2017 at 12:20:55PM -0300, Marcelo Tosatti wrote: > > On S

Re: [libvirt] [v7 00/10] Support cache tune in libvirt

2017-02-20 Thread Eli Qiao
-- Best regards Eli 天涯无处不重逢 a leaf duckweed belongs to the sea, where not to meet in life Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, 20 February 2017 at 5:07 PM, Martin Kletzander wrote: > On Mon, Feb 20, 2017 at 04:32:19PM +0800, Eli Qiao wr

Re: [libvirt] [v7 00/10] Support cache tune in libvirt

2017-02-20 Thread Eli Qiao
-- Best regards Eli 天涯无处不重逢 a leaf duckweed belongs to the sea, where not to meet in life Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, 21 February 2017 at 4:54 AM, Marcelo Tosatti wrote: > Can you explain how the resource leak can happen? > 1. libvirtd creates a

Re: [libvirt] [v7 00/10] Support cache tune in libvirt

2017-02-21 Thread Eli Qiao
-- Best regards Eli 天涯无处不重逢 a leaf duckweed belongs to the sea, where not to meet in life Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, 22 February 2017 at 7:36 AM, Marcelo Tosatti wrote: > On Tue, Feb 21, 2017 at 10:25:13AM +0800, Eli Qiao wr

Re: [libvirt] [v7 01/10] Resctrl: Add some utils functions

2017-02-21 Thread Eli Qiao
-- Best regards Eli 天涯无处不重逢 a leaf duckweed belongs to the sea, where not to meet in life Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, 17 February 2017 at 1:03 AM, Martin Kletzander wrote: > On Thu, Feb 16, 2017 at 05:35:12PM +0800, Eli Qiao wrote: > > T

[libvirt] [PATH v8 01/10] Resctrl: Add some utils functions

2017-02-21 Thread Eli Qiao
ay to maintain resource control information. Some of host cpu related information methods was added in virhostcpu.c Signed-off-by: Eli Qiao --- include/libvirt/virterror.h | 1 + po/POTFILES.in | 1 + src/Makefile.am | 1 + src/libvirt_private.syms| 4 + src

[libvirt] [PATH v8 02/10] Resctrl: expose cache information to capabilities

2017-02-21 Thread Eli Qiao
.html Signed-off-by: Eli Qiao --- src/conf/capabilities.c | 56 ++ src/conf/capabilities.h | 23 src/libvirt_private.syms | 3 +++ src/nodeinfo.c | 64 src/nodei

[libvirt] [PATH v8 00/10] Support cache tune in libvirt

2017-02-21 Thread Eli Qiao
talk with linux kernel's system fs. There are still one TODO left: 1. Expose a new public interface to get free cache information. 2. Expose a new public interface to set cachetune lively. Some discussion about this feature support can be found from: https://www.redhat.com/archives/l

[libvirt] [PATH v8 05/10] Qemu: Set cache tune while booting a new domain.

2017-02-21 Thread Eli Qiao
While user can assign some specific vcpus list in , adds the vcpus' pids to cache bank, else vm->pid will be added to cache bank. Signed-off-by: Eli Qiao --- src/qemu/qemu_driver.c | 6 -- src/qemu/qemu_process.c | 54 + 2 files cha

[libvirt] [PATH v8 06/10] Resctrl: enable l3code/l3data

2017-02-21 Thread Eli Qiao
resctrl -o cdp /sys/fs/resctrl Signed-off-by: Eli Qiao --- docs/schemas/domaincommon.rng | 2 +- src/util/virresctrl.c | 25 - 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index edb2888

[libvirt] [PATH v8 09/10] Resctrl: concurrence support

2017-02-21 Thread Eli Qiao
each bank. We need also to add lock to access /sys/fs/resctrl, use flock. Signed-off-by: Eli Qiao --- src/util/virresctrl.c | 93 --- src/util/virresctrl.h | 3 ++ 2 files changed, 83 insertions(+), 13 deletions(-) diff --git a/src/util/virresctr

[libvirt] [PATH v8 08/10] Resctrl: Compatible mode for cdp enabled

2017-02-21 Thread Eli Qiao
This patch support l3 cache allocation compatible mode if cdp enabled on host. In this case l3code/l3data has same schemata. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 15 +-- src/util/virresctrl.c | 10 ++ 2 files changed, 23 insertions(+), 2 deletions(-) diff

Re: [libvirt] [v7 01/10] Resctrl: Add some utils functions

2017-02-21 Thread Eli Qiao
; > On Thu, Feb 16, 2017 at 05:35:12PM +0800, Eli Qiao wrote: > > > This patch adds some utils struct and functions to expose resctrl > > > information. > > > > > > > > > One tiny nitpick, but it might actually help you as well. You can use >

[libvirt] [PATH v8 04/10] Resctrl: Add private interfaces to operate cache bank

2017-02-21 Thread Eli Qiao
directory, and update the schemata after libvirt domain destroy. Signed-off-by: Eli Qiao --- src/libvirt_private.syms | 6 +- src/util/virresctrl.c| 667 +++ src/util/virresctrl.h| 5 +- 3 files changed, 676 insertions

[libvirt] [PATH v8 07/10] Resctrl: Make sure l3data/l3code are pairs

2017-02-21 Thread Eli Qiao
l3data and l3code type of cache banks should be configured pairs. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 19 +++ src/util/virresctrl.c | 1 - src/util/virresctrl.h | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b

[libvirt] [PATH v8 03/10] Resctrl: Add new xml element to support cache tune

2017-02-21 Thread Eli Qiao
This patch adds new xml element to support cache tune as: ... ... id: any non-minus number host_id: reference of the host's cache banks id, it's from capabilities type: cache bank type size: should be multiples of the min_size of the bank on host. vcpus: cache allocation on vcpu set, if

[libvirt] [PATH v8 10/10] Resctrl: Scan resctrl before doing cache allocation

2017-02-21 Thread Eli Qiao
Other application may touch resctrl while libvirt's running, scan resctrl again before allocating cache information to the newly created VM. Signed-off-by: Eli Qiao --- src/util/virresctrl.c | 40 1 file changed, 40 insertions(+) diff --git a/src

Re: [libvirt] [PATCH 0/9] Yet another version of CAT stuff (no idea about the version number)

2017-12-13 Thread Eli Qiao
hi Martin, Thanks for reaching me, sure, I will try to testing your patch. BTW, do you have a github repo/branch for these which I can directly pull? Best regards - Eli a leaf duckweed belongs to the sea, where not to meet in life 2017-12-13 23:39 GMT+08:00 Martin Kletzander : > Added stuff

<    1   2   3