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
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
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
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
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
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
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
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
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
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
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
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
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
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
.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
--
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
--
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
--
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
--
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
--
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
--
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
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
.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
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
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
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
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
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
; > 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
>
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
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
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
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
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
201 - 234 of 234 matches
Mail list logo