Re: [Xen-devel] [PATCH] xen: enable per-VCPU parameter for RTDS

2016-04-04 Thread Meng Xu
xen: fix incorrect lock for credit and credit2 I won't fight for this title, though. :-) Probably no need to resend... Thanks, Meng -- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _

Re: [Xen-devel] xenpm and scheduler

2016-04-11 Thread Meng Xu
ed to consider this? Thanks, Meng -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Xen 4.7 Headline Features (for PR)

2016-04-22 Thread Meng Xu
e. > > Maybe we can use this thread to start collating a short-list. How about the improved RTDS scheduler: (1) Change the RTDS scheduler from quantum-driven model to event-driven model; (2) Support get/set per-VCPU parameters in RTDS toolstack. Thanks, Meng -- Meng Xu PhD Student in Com

[Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-25 Thread Meng Xu
nd information from other sources should keep updated with what the MAINTAINERS file says? Please correct me if I'm wrong. [1] http://wiki.xenproject.org/wiki/RTDS-Based-Scheduler Thanks, Meng -- Meng Xu PhD Student in Computer and Information Science Universit

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Meng Xu
-) > > And at this: > http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg01992.html Yes. I read this before I asked. :-) > > The feature document template has been put together: > http://lists.xenproject.org/archives/html/xen-devel/2015-08/msg01

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Meng Xu
should be using that. > > Nothing in the MAINTAINERS file constitutes a security statement. I didn't realize this before. Thank you very much for clarification! Meng -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Meng Xu
e the scheduler won't crash the system, or (2) make sure the performance of the scheduler is correct, or (3) prove the scheduler is correct? Which one are we talking about here? (maybe item 1?) Thanks, Meng --- Meng Xu PhD Student in Computer and Information Science University of Penns

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Meng Xu
On Tue, Apr 26, 2016 at 6:49 PM, Dario Faggioli wrote: > On Tue, 2016-04-26 at 14:38 -0400, Meng Xu wrote: >> > So, yes, the scheduler is now feature complete (with the per-vcpu >> > parameters) and adheres to a much more sensible and scalable design >> > (event dri

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Meng Xu
ve priority bands that when a VCPU depletes its budget, it will goes to the lower priority band. The VCPU on a lower priority band will not be scheduled until all VCPUs in a higher priority band are scheduled. This policy seems easy to incorporate into the RTDS. (But I have to think harder to m

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-27 Thread Meng Xu
On Wed, Apr 27, 2016 at 8:27 AM, Dario Faggioli wrote: > On Tue, 2016-04-26 at 21:16 -0400, Meng Xu wrote: >> > It's indeed not a must for real-time schedulers. In fact, it's only >> > important if one wants the system to be overall usable, when using >&

Re: [Xen-devel] [PATCH for 4.7 4/4] xen: adopt .deinit_pdata and improve timer handling

2016-05-04 Thread Meng Xu
>> Before this commit, in fact, even if the pCPU where the >> timer happened to be initialized at creation time was >> moved to another cpupool, the timer stayed there, >> potentially inferfearing with the new scheduler of the > > * interfering > >> pCPU itse

Re: [Xen-devel] [PATCH for 4.7 4/4] xen: adopt .deinit_pdata and improve timer handling

2016-05-07 Thread Meng Xu
pened to be initialized at creation time was > moved to another cpupool, the timer stayed there, > potentially inferfearing with the new scheduler of the > pCPU itself. > > Signed-off-by: Dario Faggioli > -- Reviewed-and-Tested-by: Meng Xu I do have a minor comment about the patch,

Re: [Xen-devel] [PATCH for 4.7 0/4] Assorted scheduling fixes

2016-05-07 Thread Meng Xu
een independent cpupools that the patch cures is, I think, something > >worthwhile trying to avoid. Yes. It's better to avoid this type of interference. > > Besides, it is again quite self contained, as > >it's indeed only relevant for RTDS (which is also goin

Re: [Xen-devel] [PATCH for 4.7 4/4] xen: adopt .deinit_pdata and improve timer handling

2016-05-07 Thread Meng Xu
On Sat, May 7, 2016 at 5:19 PM, Meng Xu wrote: > On Tue, May 3, 2016 at 5:46 PM, Dario Faggioli > wrote: >> >> The scheduling hooks API is now used properly, and no >> initialization or de-initialization happen in >> alloc/free_pdata any longer. >> >> I

Re: [Xen-devel] [PATCH for 4.7 4/4] xen: adopt .deinit_pdata and improve timer handling

2016-05-09 Thread Meng Xu
; > I don't think things are confusing, neither right now, nor after this > patch, but I'm open to others' opinion. :-) Hmm, I won't get confused with the comment from now on, but I'm unsure if someone else will or not. The tricky thing is when I know it, I w

Re: [Xen-devel] [PATCH for 4.7 4/4] xen: adopt .deinit_pdata and improve timer handling

2016-05-09 Thread Meng Xu
On Mon, May 9, 2016 at 10:52 AM, Dario Faggioli wrote: > On Mon, 2016-05-09 at 10:08 -0400, Meng Xu wrote: >> > I don't think things are confusing, neither right now, nor after >> > this >> > patch, but I'm open to others' opinion. :-) >> >&g

Re: [Xen-devel] Xen 4.7 Test Day Instructions for RC2+ : Call to action for people who added new features / functionality to Xen 4.7

2016-05-09 Thread Meng Xu
t 2 hard affinity, for hotplug > disk backends (drbd, iscsi, &c) and soft reset for HVM guests that should be > added? > > For the following sections there are some TODO's - please verify and modify > and once OK, remove the TODO from the wiki pages. > > RTDS (Meng Xu

Re: [Xen-devel] [PATCH for-4.7] sched/rt: Fix memory leak in rt_init()

2016-05-10 Thread Meng Xu
gt; > Spotted by Coverity. I'm curious about this line. Does it mean that this is spotted by the coverty code review or by some automatical testing/checking? > > Signed-off-by: Andrew Cooper > --- I'm sorry that I should have spot it out when I reviewed the code. :-( Revie

Re: [Xen-devel] Hypercall invoking

2016-05-10 Thread Meng Xu
uot;final" goal​ to add the hypercall? Probably it is just unnecessary to add a hypercall to achieve your final goal. ​I'm just curious if you could give a self introduction. ;-)​ ​Meng ​ --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.

Re: [Xen-devel] Running Xen on Nvidia Jetson-TK1

2016-05-11 Thread Meng Xu
nto the linux kernel without problem. Thank you very much for your help and time! Best Regards, Meng -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH] xen: sched: rtds: refactor code

2016-05-12 Thread Meng Xu
gt; } > else > { > - snext = __runq_pick(ops, cpumask_of(cpu)); > +snext = runq_pick(ops, cpumask_of(cpu)); > if ( snext == NULL ) > snext = rt_vcpu(idle_vcpu[cpu]); > Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [TESTDAY] Test report - xl sched-rtds

2016-05-13 Thread Meng Xu
weird issue. Because I also modify the other parts of Xen a bit, so the test is not for xen 4.7-rc2 though. That's why we have Chong test the xen 4.7-rc2. Thank you very much, Chong, for your nice test report! :-) The workload types I run are: 1) Compile linux or xen kernels in parallel. The

Re: [Xen-devel] Running Xen on Nvidia Jetson-TK1

2016-05-13 Thread Meng Xu
ay still be some issues with the NVIDIA devices as Dushyant described after he applied the patch. Right now, I have the exact same board as Dushyant has. I think I may encounter the exact same issue as he did. So I'm wondering if there is some documentation/tutorial/notes that we can le

Re: [Xen-devel] Running Xen on Nvidia Jetson-TK1

2016-05-14 Thread Meng Xu
Hi Dushyant, On Sat, May 14, 2016 at 1:36 PM, Dushyant Behl wrote: > Hey Meng, > > On Sat, May 14, 2016 at 7:39 AM, Meng Xu wrote: >>> >>> http://dev.ktemkin.com/misc/xenarm-gic-parents.patch >> >> It seems this link is invalid now... >> Has

Re: [Xen-devel] Running Xen on Nvidia Jetson-TK1

2016-05-14 Thread Meng Xu
diff --git a/xen/arch/arm/platforms/tegra.c b/xen/arch/arm/platforms/tegra.c index 5ec9dda..8477ad1 100644 --- a/xen/arch/arm/platforms/tegra.c +++ b/xen/arch/arm/platforms/tegra.c @@ -431,6 +431,7 @@ static const struct dt_device_match tegra_blacklist_dev[] __initconst = * UART to dom0, so don't map any of them. */ DT_MATCH_COMPATIBLE("nvidia,tegra20-uart"), +DT_MATCH_COMPATIBLE("nvidia,tegra20-timer"), { /* sentinel */ }, }; Thanks and Best Regards, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Running Xen on Nvidia Jetson-TK1

2016-05-14 Thread Meng Xu
tegra 700b0400.sdhci: Got CD GPIO sdhci-tegra 700b0400.sdhci: Got WP GPIO [5.399109] sdhci-tegra 700b0400.sdhci: Got WP GPIO 3mmc0: Unknown controller version (3). You may experience problems. [5.399231] mmc0: Unknown controller version (3). You may experience problems. sdhci-tegra 700b0

Re: [Xen-devel] Problem Reading from XenStore in DomU

2016-05-15 Thread Meng Xu
le? or is it spinning?), and to look in the >> xenstored log file to see if anything suspicious occurs. > > I tried booting into older, stock kernels. They all work with the > read. However, I do not see why the kernel modification would be the > issue as described above. I also

Re: [Xen-devel] Problem Reading from XenStore in DomU

2016-05-15 Thread Meng Xu
gt;> is after, but I would presume the standard headers are updated to >>> account for this. Is there an easy way to check for this? Also, would >>> the same issue cause writes to fails? Because writes from the same >>> domain work fine, and appear to other domains using

Re: [Xen-devel] Problem Reading from XenStore in DomU

2016-05-15 Thread Meng Xu
use /proc/xen/xenbus.". Maybe the non-working >> > domU uses kernel version after 3.14. > > It does, being the custom kernel on version 4.1.0. But Dom0 uses this same > exact kernel and reads/writes just fine! The only solution if this is indeed > the problem appears to be changing the kernel source we build on or some > hacky method such as symlinking /proc/.. to /dev/.., there has to be an > elegant real solution to this... Hi Dagaen, Maybe we can try to create a symlink /proc/xen/xenbus to /dev/xen/xenbus and see if works. I'm not that sure about if you can just define a env. variable XENSTORED_PATH to /dev/xen/xenbus to make /dev/xen/xenbus as a default choice.. But it's no harm to try. BTW, this is a useful link to refer to: http://lists.xenproject.org/archives/html/xen-devel/2015-08/msg01679.html Best Regards, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Question about running Xen on NVIDIA Jetson-TK1

2016-05-16 Thread Meng Xu
On Mon, May 16, 2016 at 7:33 AM, Julien Grall wrote: > > On 15/05/16 20:35, Meng Xu wrote: >> >> Hi Julien and Ian, > > > Hello Meng, Hi Julien, > >> >> I'm trying to run Xen on NVIDIA Jetson TK1 board. (Right now, Xen does >> not support

Re: [Xen-devel] Question about running Xen on NVIDIA Jetson-TK1

2016-05-16 Thread Meng Xu
to know others are also interested in this platform. It will be more useful to fix it... :-) > > On 16/05/16 17:33, Meng Xu wrote: >> >> On Mon, May 16, 2016 at 7:33 AM, Julien Grall >> wrote: >>> >>> >>> On 15/05/16 20:35, Meng Xu wrote: >&g

Re: [Xen-devel] Question about running Xen on NVIDIA Jetson-TK1

2016-05-16 Thread Meng Xu
nge it to !dt_device_is_compatible(rirq.controller, "nvidia , tegra124-ictlr") dom0 boots up~~~ :-D > > Of course, that's off-the-cuff code I haven't tried, but hopefully it > should help to get you started. Sure! It does work and get me started! I really appreciate your help

Re: [Xen-devel] [PATCH 0/2] xen: sched: rtds refactor code

2016-05-17 Thread Meng Xu
omment for the future: please add the version number into the title so that we can easily tell it is a new patch. :-) Best, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ _

Re: [Xen-devel] [PATCH 1/2] xen: sched: rtds refactor code

2016-05-17 Thread Meng Xu
On Sun, May 15, 2016 at 7:54 PM, Tianyang Chen wrote: > No functional change: > -Various coding style fix > -Added comments for UPDATE_LIMIT_SHIFT. > > Signed-off-by: Tianyang Chen Reviewed-by: Meng Xu ------- Meng Xu PhD Student in Computer and Information Scienc

Re: [Xen-devel] [PATCH 2/2] xen: sched: rtds: use non-atomic bit-ops

2016-05-17 Thread Meng Xu
On Sun, May 15, 2016 at 7:54 PM, Tianyang Chen wrote: > Vcpu flags are checked and cleared atomically. Performance can be > improved with corresponding non-atomic versions since schedule.c > already has spin_locks in place. > > Signed-off-by: Tianyang Chen Reviewed-by: Meng Xu

Re: [Xen-devel] [Embedded-pv-devel] [PATCH RFC 00/18] System adjustment to customer needs.

2016-05-18 Thread Meng Xu
C that need to be workaround? If the board is not supported by Xen, can we say Xen will support the board with the warkaround? Thanks and Best Regards, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.

Re: [Xen-devel] [PATCH] xen: sched: avoid races on time values read from NOW()

2016-05-19 Thread Meng Xu
a little as well (removing a pointless initialization, and > moving the sampling a bit closer to its use). These two hunks > entail no further functional changes. > > Signed-off-by: Dario Faggioli > --- > Cc: George Dunlap > Cc: Meng Xu > Cc: Wei Liu > --- Reviewed-by

Re: [Xen-devel] [PATCH for 4.7] xen: sched: avoid races on time values read from NOW()

2016-05-19 Thread Meng Xu
itly say that RTDS will have incorrect budget accounting for nested virtualization situation, when the RTDS was upstreamed in Xen 4.5. Best Regards, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [Embedded-pv-devel] [PATCH RFC 0/6] Set of PV drivers used by production project

2016-05-19 Thread Meng Xu
forward to the PV drivers as well. :-) Thanks and Best Regards, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailing list Xen-devel@lists.xen.org http:/

[Xen-devel] Question about the best practice to install two versions of Xen toolstack on the same machine

2016-05-19 Thread Meng Xu
specify the --libexecdir for the program executables? I found one very old link at [1], but I doubt if it's still working since Xen changes the toolstack a lot since Xen 4.1 http://old-list-archives.xenproject.org/xen-users/2009-09/msg00263.html Thanks and Best Regards, Meng --- Me

Re: [Xen-devel] [Embedded-pv-devel] [PATCH RFC 00/18] System adjustment to customer needs.

2016-05-20 Thread Meng Xu
ed if the board itself can run Xen. If the board can run Xen, I would like to buy one and try it out. :-) [1] http://www.ti.com/lit/ds/symlink/dra746.pdf Thanks and Best Regards, Meng --- Meng Xu PhD Student in Computer and Information Science Uni

Re: [Xen-devel] RT-Xen on ARM

2017-08-18 Thread Meng Xu
Hi Andrii, On Tue, Aug 1, 2017 at 4:02 AM, Andrii Anisov wrote: > Hello Meng Xu, > > I've get back to this stuff. Sorry for the late response. I'm not sure if you have already solved this. > > > On 03.07.17 17:58, Andrii Anisov wrote: >> >> That'

Re: [Xen-devel] RT-Xen on ARM

2017-08-21 Thread Meng Xu
On Mon, Aug 21, 2017 at 4:07 AM, Andrii Anisov wrote: > > Hello Meng Xu, > > > On 18.08.17 23:43, Meng Xu wrote: >> >> The Section 4.1 and 4.2 in [1] explained the whole experiment steps. >> If you have any question or confusion on a specific step, please feel >

Re: [Xen-devel] RT-Xen on ARM

2017-08-21 Thread Meng Xu
On Mon, Aug 21, 2017 at 4:16 AM, Andrii Anisov wrote: > > On 21.08.17 11:07, Andrii Anisov wrote: >> >> Hello Meng Xu, >> >> >> On 18.08.17 23:43, Meng Xu wrote: >>> >>> The Section 4.1 and 4.2 in [1] explained the whole experiment steps. &

Re: [Xen-devel] RT-Xen on ARM

2017-08-21 Thread Meng Xu
On Mon, Aug 21, 2017 at 4:38 AM, Andrii Anisov wrote: > > On 18.08.17 23:43, Meng Xu wrote: >> >> Sure. The workload we used in the paper is mainly the cpu-intensive task. >> We first calibrate a busy-loop of multiplications that runs for 1ms. >> Then for a task

Re: [Xen-devel] Xen 4.10 Development Update

2017-08-22 Thread Meng Xu
== > > * Per-cpu tasklet > - XEN-28 > - Konrad Rzeszutek Wilk > > * Add support of rcu_idle_{enter,exit} > - XEN-27 > - Dario Faggioli I'm moving the RTDS scheduler to work-conserving scheduler. The first version of the patch series has been posted at http

Re: [Xen-devel] [RFC PATCH 0/5] Extend resources to support more vcpus in single VM

2017-08-25 Thread Meng Xu
c| 2 +- > xen/arch/x86/mm/hap/hap.c | 2 +- > 8 files changed, 63 insertions(+), 29 deletions(-) How many VCPUs for a single VM do you want to support with this patch set? Thanks, Meng -- --- Meng Xu PhD Candidate in Computer and Informa

[Xen-devel] [PATCH v2 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-09-01 Thread Meng Xu
Change repl_budget event output for xentrace formats and xenalyze Signed-off-by: Meng Xu --- Changes from v1 Add this changes from v1 --- tools/xentrace/formats| 2 +- tools/xentrace/xenalyze.c | 8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/xentrace

[Xen-devel] [PATCH v2 1/5] xen:rtds: towards work conserving RTDS

2017-09-01 Thread Meng Xu
Queue management: Run queue holds VCPUs with extratime flag set and VCPUs with remaining budget. Run queue is sorted in increasing order of VCPUs priorities. Depleted queue holds VCPUs which have extratime flag cleared and depleted budget. Replenished queue is not modified. Signed-off-by: Meng Xu --- Ch

[Xen-devel] [PATCH v2 2/5] libxl: enable per-VCPU extratime flag for RTDS

2017-09-01 Thread Meng Xu
Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set functions to support per-VCPU extratime flag Signed-off-by: Meng Xu --- Changes from v1 1) Add LIBXL_HAVE_SCHED_RTDS_VCPU_EXTRA to indicate if extratime flag is supported 2) Change flag name in domctl.h from

[Xen-devel] [PATCH v2 0/5] Towards work-conserving RTDS

2017-09-01 Thread Meng Xu
name and comments. Signed-off-by: Meng Xu [PATCH v2 1/5] xen:rtds: towards work conserving RTDS [PATCH v2 2/5] libxl: enable per-VCPU extratime flag for RTDS [PATCH v2 3/5] xl: enable per-VCPU extratime flag for RTDS [PATCH v2 4/5] xentrace: enable per-VCPU extratime flag for RTDS [PATCH v2 5/5]

[Xen-devel] [PATCH v2 3/5] xl: enable per-VCPU extratime flag for RTDS

2017-09-01 Thread Meng Xu
Change main_sched_rtds and related output functions to support per-VCPU extratime flag. Signed-off-by: Meng Xu --- Changes from v1 No change because we agree on using -e 0/1 option to set if a vcpu will get extra time or not Changes from RFC v1 Changes work_conserving flag to extratime flag

[Xen-devel] [PATCH v2 5/5] docs: enable per-VCPU extratime flag for RTDS

2017-09-01 Thread Meng Xu
Revise xl tool use case by adding -e option Remove work-conserving from TODO list Signed-off-by: Meng Xu --- Changes from v1 Revise rtds docs --- docs/features/sched_rtds.pandoc | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/features/sched_rtds.pandoc b/docs

Re: [Xen-devel] [PATCH v2 2/5] libxl: enable per-VCPU extratime flag for RTDS

2017-09-01 Thread Meng Xu
Dario, I didn't include your Reviewed-by tag because I made one small change. On Fri, Sep 1, 2017 at 11:58 AM, Meng Xu wrote: > > Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set > functions to support per-VCPU extratime flag > > Signed-off-by: Meng Xu &g

Re: [Xen-devel] [PATCH] MAINTAINERS: update entries to new email address.

2017-10-05 Thread Meng Xu
my > personal email. > > Signed-off-by: Dario Faggioli > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc: Wei Liu > Cc: Juergen Gross > Cc: Meng X

Re: [Xen-devel] [PATCH] Changing my email address

2017-10-05 Thread Meng Xu
If it's a (you're currently paied to look after RTDS) then we're fine. I'm paid to look after RTDS at least before I graduate. :) Best regards, Meng -- Meng Xu Ph.D. Candidate in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ __

Re: [Xen-devel] RT-Xen on ARM

2017-10-09 Thread Meng Xu
efully, he answered your question. If not, please feel free to ask. I just added some very quick comment about your questions/comments below. On Thu, Sep 28, 2017 at 5:18 AM, Andrii Anisov wrote: > Hello, > > > On 27.09.17 22:57, Meng Xu wrote: >> >> Note that: >> When

Re: [Xen-devel] [PATCH v2 2/5] libxl: enable per-VCPU extratime flag for RTDS

2017-10-09 Thread Meng Xu
On Tue, Sep 19, 2017 at 5:23 AM, Dario Faggioli wrote: > > On Fri, 2017-09-15 at 12:01 -0400, Meng Xu wrote: > > On Wed, Sep 13, 2017 at 8:16 PM, Dario Faggioli > > wrote: > > > > > > > I'm ok with what it is in this patch, although I feel that

Re: [Xen-devel] [PATCH v2 3/5] xl: enable per-VCPU extratime flag for RTDS

2017-10-09 Thread Meng Xu
On Wed, Sep 13, 2017 at 8:51 PM, Dario Faggioli wrote: > > On Fri, 2017-09-01 at 11:58 -0400, Meng Xu wrote: > > diff --git a/tools/xl/xl_cmdtable.c b/tools/xl/xl_cmdtable.c > > index ba0159d..1b03d44 100644 > > --- a/tools/xl/xl_cmdtable.c > > +++ b/tools/xl/xl_cmd

[Xen-devel] [PATCH v3 2/5] libxl: enable per-VCPU extratime flag for RTDS

2017-10-10 Thread Meng Xu
Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set functions to support per-VCPU extratime flag Signed-off-by: Meng Xu --- Changes from v2 1) Move extratime out of the section that is marked as depreciated in libxl_domain_sched_params. 2) Set vcpu extratime in

[Xen-devel] [PATCH v3 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-10-10 Thread Meng Xu
Change repl_budget event output for xentrace formats and xenalyze Signed-off-by: Meng Xu --- No changes from v2 Changes from v1 Add this changes from v1 --- tools/xentrace/formats| 2 +- tools/xentrace/xenalyze.c | 8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a

[Xen-devel] [PATCH v3 5/5] docs: enable per-VCPU extratime flag for RTDS

2017-10-10 Thread Meng Xu
Revise xl tool use case by adding -e option Remove work-conserving from TODO list Signed-off-by: Meng Xu --- No change from v2 Changes from v1 Revise rtds docs --- docs/features/sched_rtds.pandoc | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/features

[Xen-devel] [PATCH v3 0/5] Towards work-conserving RTDS

2017-10-10 Thread Meng Xu
ol in libxl.h Changes from RFC v1 Merge changes in sched_rt.c into one patch; Minor change in variable name and comments. Signed-off-by: Meng Xu [PATCH v3 1/5] xen:rtds: towards work conserving RTDS [PATCH v3 2/5] libxl: enable per-VCPU extratime flag for RTDS [PATCH v3 3/5] xl: enable per-VCPU extr

[Xen-devel] [PATCH v3 3/5] xl: enable per-VCPU extratime flag for RTDS

2017-10-10 Thread Meng Xu
Change main_sched_rtds and related output functions to support per-VCPU extratime flag. Signed-off-by: Meng Xu --- Changes from v2 Validate the -e option input that can only be 0 or 1 Update docs/man/xl.pod.1.in Change EXTRATIME to Extratime Changes from v1 No change because we agree on using

[Xen-devel] [PATCH v3 1/5] xen:rtds: towards work conserving RTDS

2017-10-10 Thread Meng Xu
width Spare bandwidth is distributed among all VCPUs with extratime flag set, proportional to these VCPUs utilizations Signed-off-by: Meng Xu --- Changes from v2 Explain how to distribute spare bandwidth in commit log Minor change in has_extratime function without functionality change. Changes fr

Re: [Xen-devel] [PATCH v3 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-10-11 Thread Meng Xu
On Wed, Oct 11, 2017 at 6:57 AM, Dario Faggioli wrote: > On Tue, 2017-10-10 at 19:17 -0400, Meng Xu wrote: >> --- a/tools/xentrace/formats >> +++ b/tools/xentrace/formats >> @@ -75,7 +75,7 @@ >> 0x00022801 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:tickle[ >

[Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-10-11 Thread Meng Xu
Change repl_budget event output for xentrace formats and xenalyze Signed-off-by: Meng Xu --- Changes from v3 Handle burn_budget event No changes from v2 Changes from v1 Add this changes from v1 --- tools/xentrace/formats| 4 ++-- tools/xentrace/xenalyze.c | 16 +++- 2 files

[Xen-devel] [PATCH v4 1/5] xen:rtds: towards work conserving RTDS

2017-10-11 Thread Meng Xu
width Spare bandwidth is distributed among all VCPUs with extratime flag set, proportional to these VCPUs utilizations Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli --- Changes from v2 Explain how to distribute spare bandwidth in commit log Minor change in has_extratime function without function

[Xen-devel] [PATCH v4 5/5] docs: enable per-VCPU extratime flag for RTDS

2017-10-11 Thread Meng Xu
Revise xl tool use case by adding -e option Remove work-conserving from TODO list Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli Acked-by: Wei Liu --- No change from v2 Changes from v1 Revise rtds docs --- docs/features/sched_rtds.pandoc | 7 --- 1 file changed, 4 insertions(+), 3

[Xen-devel] [PATCH v4 2/5] libxl: enable per-VCPU extratime flag for RTDS

2017-10-11 Thread Meng Xu
Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set functions to support per-VCPU extratime flag Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli Acked-by: Wei Liu --- Changes from v2 1) Move extratime out of the section that is marked as depreciated in

[Xen-devel] [PATCH v4 0/5] Towards work-conserving RTDS

2017-10-11 Thread Meng Xu
es in sched_rt.c into one patch; Minor change in variable name and comments. Signed-off-by: Meng Xu [PATCH v4 1/5] xen:rtds: towards work conserving RTDS [PATCH v4 2/5] libxl: enable per-VCPU extratime flag for RTDS [PATCH v4 3/5] xl: enable per-VCPU extratime flag for RTDS [PATCH v4 4/5] xen

[Xen-devel] [PATCH v4 3/5] xl: enable per-VCPU extratime flag for RTDS

2017-10-11 Thread Meng Xu
Change main_sched_rtds and related output functions to support per-VCPU extratime flag. Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli Acked-by: Wei Liu --- Changes from v2 Validate the -e option input that can only be 0 or 1 Update docs/man/xl.pod.1.in Change EXTRATIME to Extratime

Re: [Xen-devel] [PATCH v4 0/5] Towards work-conserving RTDS

2017-10-12 Thread Meng Xu
On Thu, Oct 12, 2017 at 5:02 AM, Wei Liu wrote: > > FYI all patches except the xentrace one were committed yesterday. Thank you very much, Wei! Best, Meng -- Meng Xu Ph.D. Candidate in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~

Re: [Xen-devel] [PATCH v4 0/5] Towards work-conserving RTDS

2017-10-17 Thread Meng Xu
On Tue, Oct 17, 2017 at 3:29 AM, Dario Faggioli wrote: > On Tue, 2017-10-17 at 09:26 +0200, Dario Faggioli wrote: > > On Thu, 2017-10-12 at 10:34 -0400, Meng Xu wrote: > > > On Thu, Oct 12, 2017 at 5:02 AM, Wei Liu > > > wrote: > > > > > > >

Re: [Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-10-17 Thread Meng Xu
On Tue, Oct 17, 2017 at 4:10 AM, Dario Faggioli wrote: > On Wed, 2017-10-11 at 14:02 -0400, Meng Xu wrote: >> Change repl_budget event output for xentrace formats and xenalyze >> >> Signed-off-by: Meng Xu >> > I'd say: > > Reviewed-by: Dario Faggiol

Re: [Xen-devel] VPMU interrupt unreliability

2017-10-19 Thread Meng Xu
r security reasons, Is there any document about the possible attack via the vPMU? The document I found (such as [1] and XSA-163) just briefly say that the vPMU should be disabled due to security concern. [1] https://xenbits.xen.org/docs/unstable/misc/xen-command-line.html > > and a

Re: [Xen-devel] VPMU interrupt unreliability

2017-10-22 Thread Meng Xu
to security concern. > > Besides the other responses you've already got, I also recall there > being at least some CPU models that would live lock upon the > debug store being placed into virtual space not mapped by present > pages. Thank you very much for your explanatio

Re: [Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-10-23 Thread Meng Xu
On Tue, Oct 17, 2017 at 4:10 AM, Dario Faggioli wrote: > On Wed, 2017-10-11 at 14:02 -0400, Meng Xu wrote: >> Change repl_budget event output for xentrace formats and xenalyze >> >> Signed-off-by: Meng Xu >> > I'd say: > > Reviewed-by: Dario Faggioli Hi

Re: [Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-11-02 Thread Meng Xu
Hi George, On Wed, Oct 25, 2017 at 10:31 AM, Wei Liu wrote: > > On Mon, Oct 23, 2017 at 02:50:31PM -0400, Meng Xu wrote: > > On Tue, Oct 17, 2017 at 4:10 AM, Dario Faggioli wrote: > > > On Wed, 2017-10-11 at 14:02 -0400, Meng Xu wrote: > > >> Change repl_budget

Re: [Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-11-16 Thread Meng Xu
Hi all, On Tue, Oct 17, 2017 at 4:10 AM, Dario Faggioli wrote: > > On Wed, 2017-10-11 at 14:02 -0400, Meng Xu wrote: > > Change repl_budget event output for xentrace formats and xenalyze > > > > Signed-off-by: Meng Xu > > > I'd say: > > Reviewed-by:

Re: [Xen-devel] [PATCH 5/6] xen: RTDS: rearrange members of control structures

2017-07-21 Thread Meng Xu
On Fri, Jun 23, 2017 at 6:55 AM, Dario Faggioli wrote: > > Nothing changed in `pahole` output, in terms of holes > and padding, but some fields have been moved, to put > related members in same cache line. > > Signed-off-by: Dario Faggioli > --- > Cc: Meng Xu > Cc:

[Xen-devel] [PATCH RFC v1] xen:rtds: towards work conserving RTDS

2017-08-01 Thread Meng Xu
level but has a smaller deadline Signed-off-by: Meng Xu --- xen/common/sched_rt.c | 71 ++- 1 file changed, 59 insertions(+), 12 deletions(-) diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 39f6bee..740a712 100644 --- a/xen/c

[Xen-devel] [PATCH RFC v1 2/3] libxl: enable per-VCPU work conserving flag for RTDS

2017-08-01 Thread Meng Xu
Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set functions to support per-VCPU work conserving flag Signed-off-by: Meng Xu --- tools/libxl/libxl.h | 1 + tools/libxl/libxl_sched.c | 3 +++ tools/libxl/libxl_types.idl | 2 ++ 3 files changed, 6 insertions(+) diff

[Xen-devel] [PATCH RFC v1 1/3] xen:rtds: enable XL to set and get vcpu work conserving flag

2017-08-01 Thread Meng Xu
Extend the hypercalls(XEN_DOMCTL_SCHEDOP_getvcpuinfo/putvcpuinfo) to get/set a domain's per-VCPU work conserving parameters. Signed-off-by: Meng Xu --- xen/common/sched_rt.c | 2 ++ xen/include/public/domctl.h | 1 + 2 files changed, 3 insertions(+) diff --git a/xen/common/sched_r

[Xen-devel] [PATCH RFC v1 3/3] xl: enable per-VCPU work conserving flag for RTDS

2017-08-01 Thread Meng Xu
Change main_sched_rtds and related output functions to support per-VCPU work conserving flag. Signed-off-by: Meng Xu --- tools/xl/xl_cmdtable.c | 3 ++- tools/xl/xl_sched.c| 56 ++ 2 files changed, 40 insertions(+), 19 deletions(-) diff

[Xen-devel] [PATCH RFC v1 0/3] Enable XL to set and get per-VCPU work conserving flag for RTDS scheduler

2017-08-01 Thread Meng Xu
, which is this series of patches. Signed-off-by: Meng Xu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH RFC v1 0/3] Enable XL to set and get per-VCPU work conserving flag for RTDS scheduler

2017-08-01 Thread Meng Xu
On Tue, Aug 1, 2017 at 2:33 PM, Meng Xu wrote: > > This series of patches enable the toolstack to > set and get per-VCPU work-conserving flag. > With the toolstack, system administrators can decide > which VCPUs will be made work-conserving. > > The design of the wor

[Xen-devel] [PATCH v4] xen: rtds: only tickle non-already tickled CPUs

2017-08-01 Thread Meng Xu
there is an idle core, making these VCPUs unnecessarily starve for one period. Therefore, always make sure that we only tickle PCPUs that have not been tickled already. Signed-off-by: Haoran Li Signed-off-by: Meng Xu --- The initial discussion of this patch can be found at https

[Xen-devel] [PATCH v5] xen: rtds: only tickle non-already tickled CPUs

2017-08-02 Thread Meng Xu
there is an idle core, making these VCPUs unnecessarily starve for one period. Therefore, always make sure that we only tickle PCPUs that have not been tickled already. Signed-off-by: Haoran Li Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli --- The initial discussion of this patch can be

Re: [Xen-devel] [PATCH RFC v1] xen:rtds: towards work conserving RTDS

2017-08-02 Thread Meng Xu
s for it > to have a work conserving mode! :-) Glad to hear that. :-) > > On Tue, 2017-08-01 at 14:13 -0400, Meng Xu wrote: >> Make RTDS scheduler work conserving to utilize the idle resource, >> without breaking the real-time guarantees. > > Just kill the "to u

Re: [Xen-devel] [PATCH RFC v1 0/3] Enable XL to set and get per-VCPU work conserving flag for RTDS scheduler

2017-08-02 Thread Meng Xu
On Wed, Aug 2, 2017 at 1:49 PM, Dario Faggioli wrote: > On Tue, 2017-08-01 at 14:33 -0400, Meng Xu wrote: >> This series of patches enable the toolstack to >> set and get per-VCPU work-conserving flag. >> With the toolstack, system administrators can decide >> wh

Re: [Xen-devel] [PATCH RFC v1 1/3] xen:rtds: enable XL to set and get vcpu work conserving flag

2017-08-03 Thread Meng Xu
On Thu, Aug 3, 2017 at 11:47 AM, Dario Faggioli wrote: > On Tue, 2017-08-01 at 14:33 -0400, Meng Xu wrote: >> --- a/xen/include/public/domctl.h >> +++ b/xen/include/public/domctl.h >> @@ -360,6 +360,7 @@ typedef struct xen_domctl_sched_credit2 { >> typedef s

Re: [Xen-devel] [PATCH RFC v1 2/3] libxl: enable per-VCPU work conserving flag for RTDS

2017-08-03 Thread Meng Xu
On Thu, Aug 3, 2017 at 11:53 AM, Dario Faggioli wrote: > On Tue, 2017-08-01 at 14:33 -0400, Meng Xu wrote: >> diff --git a/tools/libxl/libxl_types.idl >> b/tools/libxl/libxl_types.idl >> index 8a9849c..f6c3ead 100644 >> --- a/tools/libxl/libxl_types.idl >>

Re: [Xen-devel] [PATCH RFC v1 3/3] xl: enable per-VCPU work conserving flag for RTDS

2017-08-03 Thread Meng Xu
On Thu, Aug 3, 2017 at 12:03 PM, Dario Faggioli wrote: > On Tue, 2017-08-01 at 14:33 -0400, Meng Xu wrote: >> --- a/tools/xl/xl_cmdtable.c >> +++ b/tools/xl/xl_cmdtable.c >> @@ -272,12 +272,13 @@ struct cmd_spec cmd_table[] = { >> { "sched-rtds&qu

Re: [Xen-devel] [PATCH RFC v1 3/3] xl: enable per-VCPU work conserving flag for RTDS

2017-08-04 Thread Meng Xu
On Fri, Aug 4, 2017 at 5:01 AM, Dario Faggioli wrote: > On Thu, 2017-08-03 at 18:02 -0400, Meng Xu wrote: >> On Thu, Aug 3, 2017 at 12:03 PM, Dario Faggioli >> wrote: >> > >> > > @@ -702,14 +705,18 @@ int main_sched_rtds(int argc, char **argv) >> >

Re: [Xen-devel] [PATCH RFC v1 2/3] libxl: enable per-VCPU work conserving flag for RTDS

2017-08-04 Thread Meng Xu
On Fri, Aug 4, 2017 at 10:34 AM, Wei Liu wrote: > On Fri, Aug 04, 2017 at 02:53:51PM +0200, Dario Faggioli wrote: >> On Fri, 2017-08-04 at 13:10 +0100, Wei Liu wrote: >> > On Fri, Aug 04, 2017 at 10:13:18AM +0200, Dario Faggioli wrote: >> > > On Thu, 2017-08-03

Re: [Xen-devel] [PATCH RFC v1] xen:rtds: towards work conserving RTDS

2017-08-05 Thread Meng Xu
es how many times the VCPU gets the extra budget in the current period. > >> +svc->cur_budget = svc->budget; >> +} >> +else >> + { >> +svc->cur_budget = 0; >> +__set_bit(__RTDS_depleted, &svc->fl

[Xen-devel] [PATCH v1 1/3] xen:rtds: towards work conserving RTDS

2017-08-06 Thread Meng Xu
Queue management: Run queue holds VCPUs with extratime flag set and VCPUs with remaining budget. Run queue is sorted in increasing order of VCPUs priorities. Depleted queue holds VCPUs which have extratime flag cleared and depleted budget. Replenished queue is not modified. Signed-off-by: Meng Xu --- Ch

[Xen-devel] [PATCH v1 2/3] libxl: enable per-VCPU extratime flag for RTDS

2017-08-06 Thread Meng Xu
Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set functions to support per-VCPU extratime flag Signed-off-by: Meng Xu --- Changes from RFC v1 Change work_conserving flag to extratime flag --- tools/libxl/libxl_sched.c | 12 1 file changed, 12 insertions(+) diff

[Xen-devel] [PATCH v1 3/3] xl: enable per-VCPU extratime flag for RTDS

2017-08-06 Thread Meng Xu
Change main_sched_rtds and related output functions to support per-VCPU extratime flag. Signed-off-by: Meng Xu --- Changes from RFC v1 Changes work_conserving flag to extratime flag --- tools/xl/xl_cmdtable.c | 3 ++- tools/xl/xl_sched.c| 56

  1   2   3   4   >