[Xen-devel] [PATCH v1 0/3] Towards work-conserving RTDS

2017-08-06 Thread Meng Xu
Minor change in variable name and comments. Signed-off-by: Meng Xu [PATCH v1 1/3] xen:rtds: towards work conserving RTDS [PATCH v1 2/3] libxl: enable per-VCPU extratime flag for RTDS [PATCH v1 3/3] xl: enable per-VCPU extratime flag for RTDS ___ Xen-

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

2017-08-06 Thread Meng Xu
On Sun, Aug 6, 2017 at 12:22 PM, Meng Xu wrote: > 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/x

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

2017-08-07 Thread Meng Xu
On Mon, Aug 7, 2017 at 1:35 PM, Dario Faggioli wrote: > On Sat, 2017-08-05 at 17:35 -0400, Meng Xu wrote: >> > >> > > @@ -966,8 +1001,16 @@ burn_budget(const struct scheduler *ops, >> > > struct >> > > rt_vcpu *svc, s_time_t n

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

2017-08-07 Thread Meng Xu
On Mon, Aug 7, 2017 at 3:14 PM, Dario Faggioli wrote: > On Mon, 2017-08-07 at 14:27 -0400, Meng Xu wrote: >> On Mon, Aug 7, 2017 at 1:35 PM, Dario Faggioli >> >> > Is this wanted or expected? >> >> It is wanted. >> >> A VCPU i that has already go

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

2017-08-08 Thread Meng Xu
On Tue, Aug 8, 2017 at 10:57 AM, Dario Faggioli wrote: > On Sun, 2017-08-06 at 12:22 -0400, Meng Xu wrote: >> Make RTDS scheduler work conserving without breaking the real-time >> guarantees. >> >> VCPU model: >> Each real-time VCPU is extended to have an extra

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

2017-08-08 Thread Meng Xu
On Tue, Aug 8, 2017 at 9:09 AM, Dario Faggioli wrote: > On Sun, 2017-08-06 at 22:43 -0400, Meng Xu wrote: >> On Sun, Aug 6, 2017 at 12:22 PM, Meng Xu >> wrote: >> > >> > diff --git a/tools/xl/xl_cmdtable.c b/tools/xl/xl_cmdtable.c >> > index 2

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

2017-08-08 Thread Meng Xu
On Tue, Aug 8, 2017 at 3:24 PM, Dario Faggioli wrote: > On Tue, 2017-08-08 at 12:16 -0700, Meng Xu wrote: >> On Tue, Aug 8, 2017 at 9:09 AM, Dario Faggioli >> wrote: >> > On Sun, 2017-08-06 at 22:43 -0400, Meng Xu wrote: >> > > >> > > As to (1)

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

2017-08-08 Thread Meng Xu
On Tue, Aug 8, 2017 at 3:52 PM, Dario Faggioli wrote: > On Tue, 2017-08-08 at 12:06 -0700, Meng Xu wrote: >> On Tue, Aug 8, 2017 at 10:57 AM, Dario Faggioli >> wrote: >> > On Sun, 2017-08-06 at 12:22 -0400, Meng Xu wrote: >> > > >> > > diff

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

2017-08-09 Thread Meng Xu
On Wed, Aug 9, 2017 at 3:32 AM, Dario Faggioli wrote: > On Tue, 2017-08-08 at 15:55 -0700, Meng Xu wrote: >> On Tue, Aug 8, 2017 at 3:24 PM, Dario Faggioli >> wrote: >> > >> > Therefore, I think I would set extratime as on by default in both >&

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

2017-07-03 Thread Meng Xu
On Mon, Jul 3, 2017 at 7:03 AM, Andrii Anisov wrote: > > Dear Meng Xu, Hi Andrii, > > > We are going to evaluate an RTDS scheduler on ARM. > > > Basically I'm going to repeat use-cases described in > https://www.cis.upenn.edu/~linhphan/papers/emsoft14-rt-xen.pdf

Re: [Xen-devel] [RTDS Patch v3 for Xen4.8]

2017-07-03 Thread Meng Xu
ady. > > Signed-off-by: Haoran Li > Reviewed-by: Meng Xu As Dario mentioned in the email, the title should be changed and the email should be a new email thread, instead of a forward email. A reference to the format of sending a newer version of patch can be found at https://www.m

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

2017-07-03 Thread Meng Xu
On Mon, Jul 3, 2017 at 10:58 AM, Andrii Anisov wrote: > Hello Meng Xu, > > > On 03.07.17 16:35, Meng Xu wrote: >>> >>> Do you have any recommendations or suggestions? >> >> Which experiment/use case do you plan to run? >> What are the requireme

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

2017-07-04 Thread Meng Xu
On Tue, Jul 4, 2017 at 8:28 AM, Andrii Anisov wrote: > > > On 03.07.17 21:42, Meng Xu wrote: >> >> As far as I know, there is no known issue for ARM as long as that >> version Xen runs on the ARM board. > > That's good. >> >> I assume you have

Re: [Xen-devel] [PATCH v13 01/23] docs: create Cache Allocation Technology (CAT) and Code and Data Prioritization (CDP) feature document

2017-07-07 Thread Meng Xu
indexed by COS ID. > + > + - Member `dom_ids` > + > +`dom_ids` is a bitmap, every bit corresponds to a domain. Index is > + domain_id. It is used to help restore domain_id to 0 when a socket is > +offline and then online ag

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

2017-07-07 Thread Meng Xu
On Wed, Jul 5, 2017 at 4:29 AM, Dario Faggioli wrote: > On Tue, 2017-07-04 at 11:12 -0400, Meng Xu wrote: >> On Tue, Jul 4, 2017 at 8:28 AM, Andrii Anisov > > wrote: >> > >> > So you are suggesting to introduce more RT schedulers with >> > different algo

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

2017-07-07 Thread Meng Xu
On Wed, Jul 5, 2017 at 4:51 AM, Dario Faggioli wrote: > On Mon, 2017-07-03 at 14:42 -0400, Meng Xu wrote: >> On Mon, Jul 3, 2017 at 10:58 AM, Andrii Anisov > m> wrote: >> > >> Once the scheduling policy is determined, you will need to configure >> the VC

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

2017-07-07 Thread Meng Xu
t to argue about the real-time timing properties required by some safety-critical systems' standard, such as the ISO-26262 for automotive systems, the system support (such as the RTDS scheduler), the correct configuration of the system, and the analysis computation and analysis will be required

Re: [Xen-devel] [PATCH v13 01/23] docs: create Cache Allocation Technology (CAT) and Code and Data Prioritization (CDP) feature document

2017-07-10 Thread Meng Xu
On Mon, Jul 10, 2017 at 1:25 AM, Yi Sun wrote: > On 17-07-07 12:37:28, Meng Xu wrote: >> > + Sample cache capacity bitmasks for a bitlength of 8 are shown below. >> > Please >> > + note that all (and only) contiguous '1' combinations are allowed (e.g

Re: [Xen-devel] [PATCH 1/2] public/domctl: drop unnecessary typedefs and handles

2017-09-12 Thread Meng Xu
type, > - make x86's paging_domctl() and descendants take a properly typed > handle, > - add const in a few places. > > Signed-off-by: Jan Beulich Acked-by: Meng Xu Thanks, Meng -- Meng Xu Ph.D. Candidate in Computer and Information Science University of Penn

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

2017-09-15 Thread Meng Xu
Hi Dario, On Wed, Sep 13, 2017 at 9:06 PM, Dario Faggioli wrote: > > On Fri, 2017-09-01 at 11:58 -0400, Meng Xu wrote: > > Make RTDS scheduler work conserving without breaking the real-time > > guarantees. > > > > VCPU model: > > Each real-time VCPU is extend

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

2017-09-15 Thread Meng Xu
On Wed, Sep 13, 2017 at 8:16 PM, Dario Faggioli wrote: > On Fri, 2017-09-01 at 12:03 -0400, Meng Xu wrote: >> On Fri, Sep 1, 2017 at 11:58 AM, Meng Xu >> wrote: >> > @@ -705,6 +717,12 @@ static int sched_rtds_domain_set(libxl__gc >> > *gc, uint32_t domid, &

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

2017-09-27 Thread Meng Xu
Hi Andrii, On Wed, Sep 27, 2017 at 8:37 AM, Andrii Anisov wrote: > > Dear Meng Xu, > > > On 22.08.17 05:02, Meng Xu wrote: >> >> Given the set of tasks in each VM, we compute the VCPUs' periods and >> budgets, using the CARTS tool [1]. Note that each

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

2017-09-27 Thread Meng Xu
On Wed, Sep 27, 2017 at 10:37 AM, Andrii Anisov wrote: > Hello, > > > On 27.09.17 16:57, Meng Xu wrote: >> >> The command is: >> java -jar carts.jar inputfile outputfile > > From the next example, I would say the command is: > java -jar carts.jar inpu

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

2017-10-02 Thread Meng Xu
On Mon, Oct 2, 2017 at 1:04 PM, Dario Faggioli wrote: > On Mon, 2017-10-02 at 17:38 +0300, Andrii Anisov wrote: > > Hello Meng Xu and Dario, > > > Hi, > > > On 01.09.17 18:58, Meng Xu wrote: > > > This series of patches make RTDS scheduler work-conserv

[Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Meng Xu
Hi Jan and Boris, I'm Meng Xu from the University of Pennsylvania. I'm wondering: How does Xen (vpmu) handle the general performance counter's overflow interrupt? Could you point me to the function handler, if Xen does handle it? ---What I want to achieve--- I'm look

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Meng Xu
[Sorry, I cc.ed Quan's previous email at Intel. Change to his current email.] On Fri, Mar 31, 2017 at 11:41 AM, Meng Xu wrote: > Hi Jan and Boris, > > I'm Meng Xu from the University of Pennsylvania. > > I'm wondering: > How does Xen (vpmu) handle the gener

Re: [Xen-devel] Question about the general performance counter overflow interrupt handling

2017-03-31 Thread Meng Xu
tried to set MSR_CORE_PERF_GLOBAL_OVF_CTRL to 0xf, but the register's content is not changed. :( Maybe I should set the MSR_CORE_PERF_GLOBAL_OVF_CTRL to 0xF to enable the overflow interrupt? Thank you very much for your time and help! Meng --- Meng Xu PhD Candidate in Computer and Information Science U

Re: [Xen-devel] Impact of HW vulnerabilities & Implications on Security Vulnerability Process

2016-09-07 Thread Meng Xu
little executable, that users could use > to find out whether their ram is vulnerable? That would be extremely > valuable. Google does have a github repo to do the rowhammer test: https://github.com/google/rowhammer-test Meng --- Meng Xu PhD Student in Computer and Information Scie

Re: [Xen-devel] [PATCH 0/3] Enable L2 Cache Allocation Technology

2016-09-17 Thread Meng Xu
he chapter for the L2 CAT and the version of the SDM you are referring? It makes people's life easier to find the reference. ;-) > > # History > > > Date Revision Version Notes > -- --- > 2016-08-12 1.0 Xen 4.7 Initial design It seems there is a RFC design in May this year: http://www.gossamer-threads.com/lists/xen/devel/431142 Shouldn't it be counted? 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 https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 0/3] Enable L2 Cache Allocation Technology

2016-09-18 Thread Meng Xu
On Sat, Sep 17, 2016 at 10:34 PM, Yi Sun wrote: > On 16-09-17 11:31:54, Meng Xu wrote: >> On Thu, Aug 25, 2016 at 1:21 AM, Yi Sun wrote: >> > >> > Design document is below: >> > === >>

Re: [Xen-devel] [RTDS Patch for Xen4.8] xen: sched_rt.c Check not_tickled Mask

2017-02-22 Thread Meng Xu
cpumask_test_cpu(new->vcpu->processor, ¬_tickled)) You should have a space before the last ). Can you resend the patch with the comment resolved? 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 https://lists.xen.org/xen-devel

Re: [Xen-devel] [RFC 01/16] docs: create Memory Bandwidth Allocation (MBA) feature document.

2017-02-23 Thread Meng Xu
tel.com/content/www/us/en/processors/architectures-software-developer-manuals.html) > + I checked the document. The CAT is in Chapter 17.17. However, there is no description about the MBA? ;-) 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 https://lists.xen.org/xen-devel

Re: [Xen-devel] [RFC 01/16] docs: create Memory Bandwidth Allocation (MBA) feature document.

2017-02-24 Thread Meng Xu
now. I guess I downloaded the old version. :-) I found this MBA feature is interesting. Is there any processor on the market we can purchase? We'd like to evaluate this feature. ;-) 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 https://lists.xen.org/xen-devel

Re: [Xen-devel] [RTDS Patch v2 for Xen4.8] xen: rtds: only tickle non-already tickled CPUs

2017-02-25 Thread Meng Xu
cpumask_clear_cpu(cpu, ¬_tickled); > +cpu = cpumask_cycle(cpu, ¬_tickled); > } > > -/* 3) candicate has higher priority, kick out lowest priority vcpu */ > +/* 2) candicate has higher priority, kick out lowest priority vcpu */ > if (

Re: [Xen-devel] [PATCH 2/3] xen: Have schedulers revise initial placement

2016-07-25 Thread Meng Xu
> automatically take all knowledge the scheduler has into account. > > Signed-off-by: George Dunlap > --- > CC: Dario Faggioli > CC: Anshul Makkar > CC: Meng Xu > CC: Jan Beulich > --- > xen/common/sched_credit.c | 3 +++ > xen/common/sched_credit2.c | 12 +++

Re: [Xen-devel] [PATCH 2/3] xen: Have schedulers revise initial placement

2016-07-25 Thread Meng Xu
gt;>> runqueue load, as in credit2). >>> >>> To solve this, when inserting a vcpu, always call the per-scheduler >>> "pick" function to revise the initial placement. This will >>> automatically take all knowledge the scheduler has into account. &

Re: [Xen-devel] [PATCH v2 2/3] xen: Have schedulers revise initial placement

2016-07-25 Thread Meng Xu
- Actually grab lock before calling vcpu_schedule_lock() to avoid > tripping over a new ASSERT > > CC: Dario Faggioli > CC: Anshul Makkar > CC: Meng Xu > CC: Jan Beulich > --- > xen/common/sched_credit.c | 3 +++ > xen/common/sched_credit2.c | 11 ++- > x

[Xen-devel] [Design RFC] Towards work-conserving RTDS scheduler

2016-08-03 Thread Meng Xu
) Scheduling point a) VCPU’s budget is depleted for the current priority index b) VCPU starts a new period c) VCPU is blocked or waked up 3) Scheduling decision is made when scheduler is invoked a) Always pick the current M highest-priority VCPUs to run on the M cores. --- Meng

Re: [Xen-devel] [Design RFC] Towards work-conserving RTDS scheduler

2016-08-09 Thread Meng Xu
On Mon, Aug 8, 2016 at 5:38 AM, Dario Faggioli wrote: > On Thu, 2016-08-04 at 01:15 -0400, Meng Xu wrote: >> Hi Dario, >> > Hi, > >> I'm thinking about changing the current RTDS scheduler to >> work-conserving version as we briefly discussed before. >&

Re: [Xen-devel] unable start xen in hikey

2016-08-09 Thread Meng Xu
/ >>> /Shell >>> >>> / >>> I am following this wiki (http://wiki.xen.org/wiki/HiKey) to >>> setup xen in hikey. I am not sure what could cause this issue >>> here. Appreciate all of you input and a

Re: [Xen-devel] [PATCH 08/24] xen: tracing: add trace records for schedule and rate-limiting.

2016-08-17 Thread Meng Xu
e cpu that is going through the scheduler has > been tickled or not, if it is currently idle, etc > (they vary, on a per-scheduler basis). > > For Credit1 and Credit2, add a record about when > rate-limiting kicks in too. > > Signed-off-by: Dario Faggioli > --- > Cc: Georg

Re: [Xen-devel] [Design RFC] Towards work-conserving RTDS scheduler

2016-08-18 Thread Meng Xu
On Thu, Aug 18, 2016 at 6:22 AM, Dario Faggioli wrote: > On Tue, 2016-08-09 at 09:57 -0400, Meng Xu wrote: >> On Mon, Aug 8, 2016 at 5:38 AM, Dario Faggioli >> wrote: >> > >> > I'm just thinking out loud and >> > wondering: >> > - could

Re: [Xen-devel] unable start xen in hikey

2016-08-18 Thread Meng Xu
EN) d0v2: vGICD: unhandled word write 0x to ICACTIVER0 >> > (XEN) d0v3: vGICD: unhandled word write 0x to ICACTIVER0 >> > >> > It just hang there after the last line above. >> > I have looked into those messages " d0v3: vGI

Re: [Xen-devel] [PATCH] xen: sched: improve debug dump output.

2017-01-26 Thread Meng Xu
2144 (~100%) > > Stop printing details of idle vCPUs also in Credit1 > and RTDS (they're pretty useless in there too). > > Signed-off-by: Dario Faggioli > --- > Cc: George Dunlap > Cc: Anshul Makkar > Cc: Meng Xu > --- > xen/common/sched_credit.c |6 ++--

Re: [Xen-devel] [PATCH] xen: sched: improve debug dump output.

2017-01-27 Thread Meng Xu
On Thu, Jan 26, 2017 at 5:08 PM, Dario Faggioli wrote: > On Thu, 2017-01-26 at 13:59 -0500, Meng Xu wrote: >> Hi Dario, >> > Hi, > >> On Thu, Jan 26, 2017 at 11:52 AM, Dario Faggioli >> wrote: >> > >> > Runqueue 0: >> > CPU[0

Re: [Xen-devel] [PATCH] xen: sched: improve debug dump output.

2017-01-27 Thread Meng Xu
27;t remember). > > > > > > That being said, it's not that I can't live with the added "idle" > > > indication. But I like it less and would prefer not to add it. > > > > Sure! I was thinking if we should even avoid printing out the idle >

Re: [Xen-devel] [PATCH] xen: sched: improve debug dump output.

2017-01-27 Thread Meng Xu
ore=,00ff > RUNQ: > 0: [0.1] flags=0 cpu=2 credit=6561215 [w=256] load=262144 (~100%) > 1: [0.2] flags=0 cpu=2 credit=5812356 [w=256] load=262144 (~100%) > > Stop printing details of idle vCPUs also in Credit1 > and RTDS (they're pretty useless in

Re: [Xen-devel] Xen On Nvidia Jetson TX1

2016-12-30 Thread Meng Xu
ybe he has a repo. for the kernel. 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 https://lists.xen.org/xen-devel

Re: [Xen-devel] Granularity of Credit and RTDS Scheduler

2017-01-07 Thread Meng Xu
ock source TSC with a granularity of > nanoseconds. I'd like to know if there is any reason that the Xen hypervisor > does not choose a nanosecond scheduler? What do you mean by a nanosecond scheduler? In the kernel, scheduler accounts the budget in nanoseconds. Meng --

Re: [Xen-devel] Granularity of Credit and RTDS Scheduler

2017-01-10 Thread Meng Xu
in burn_budget function in sched_rt.c . > > Again, thanks a lot for your help. :-) Meng > > > Quoting Meng Xu : > >> [cc. Dario and George] >> >> On Fri, Jan 6, 2017 at 1:34 PM, wy11 wrote: >>> >>> Dear Xen developers, >> >> >> Hi, &

Re: [Xen-devel] [PATCH v3 2/2] xen: tracing: add trace records for schedule and rate-limiting.

2016-09-30 Thread Meng Xu
pu that is going through the scheduler has > been tickled or not, if it is currently idle, etc > (they vary, on a per-scheduler basis). > > For Credit1 and Credit2, add a record about when > rate-limiting kicks in too. > > Signed-off-by: Dario Faggioli > --- > Cc: George Dunl

Re: [Xen-devel] [PATCH v2 06/10] xen: tracing: add trace records for schedule and rate-limiting.

2016-09-30 Thread Meng Xu
pu that is going through the scheduler has > been tickled or not, if it is currently idle, etc > (they vary, on a per-scheduler basis). > > For Credit1 and Credit2, add a record about when > rate-limiting kicks in too. > > Signed-off-by: Dario Faggioli > --- > Cc: George Dunl

Re: [Xen-devel] [BUG] XEN-4.8-rc2 sched-rtds does not accept settings

2016-10-18 Thread Meng Xu
On Tue, Oct 18, 2016 at 6:51 AM, Wei Liu wrote: > CC Dario and Meng Thank you very much for cc.ing me, Wei! :-) > > On Mon, Oct 17, 2016 at 10:55:21PM +0100, Juergen Schinker wrote: >> Hey Meng XU Hi, Thanks for your interest in RTDS scheduler! :-) >> >> >>

Re: [Xen-devel] [PATCH v2 3/3] docs: RTDS feature document.

2016-10-18 Thread Meng Xu
e verified. > + > +Finally, to check that the scheduler is working properly (although only > +at a macroscopic level), the following should be done: > + > +* create a VM with 1 vCPU and put it in the RTDS cpupool, > +* set the scheduling parameters such as it has a 50% reservation

[Xen-devel] [PATCH] docs:RTDS: Correct mistakes in feature doc

2016-10-19 Thread Meng Xu
Correct the mistakes in the example command Correct a simple typo. Signed-off-by: Meng Xu --- Cc: Meng Xu Cc: Dario Faggioli Cc: Wei Liu Cc: Lars Kurth Cc: George Dunlap Cc: Chong Li --- docs/features/sched_rtds.pandoc | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[Xen-devel] [PATCH] xen:rtds:fix bug in accounting budget

2016-10-19 Thread Meng Xu
context switching out, we will always tickle the core where the VCPU was running, if the VCPU cannot find another core to tickle This bug was reported by Dagaen Golomb Signed-off-by: Meng Xu --- Cc: Dagaen Golomb Cc: Dario Faggioli Cc: George Dunlap Cc: Wei Liu Cc: Linh Thi Xuan Phan

Re: [Xen-devel] [PATCH] xen:rtds:fix bug in accounting budget

2016-10-19 Thread Meng Xu
On Wed, Oct 19, 2016 at 11:13 AM, Meng Xu wrote: > The bug is introduced in Xen 4.7 when we converted RTDS scheduler > from quantum-driven model to event-driven model. > We assumed rt_schedule() is always called for a VCPU > before the VCPUs budget replenished handler. > This assu

Re: [Xen-devel] [PATCH] xen:rtds:fix bug in accounting budget

2016-10-19 Thread Meng Xu
[cc. Tianyang...] On Wed, Oct 19, 2016 at 11:45 AM, Wei Liu wrote: > On Wed, Oct 19, 2016 at 11:13:54AM -0400, Meng Xu wrote: >> The bug is introduced in Xen 4.7 when we converted RTDS scheduler >> from quantum-driven model to event-driven model. >> We assumed rt_schedule()

Re: [Xen-devel] [PATCH] xen:rtds:fix bug in accounting budget

2016-10-21 Thread Meng Xu
On Fri, Oct 21, 2016 at 1:36 PM, Dario Faggioli wrote: > > On Wed, 2016-10-19 at 11:13 -0400, Meng Xu wrote: > > The bug is introduced in Xen 4.7 when we converted RTDS scheduler > > from quantum-driven model to event-driven model. > > We assumed rt_schedule() is

[Xen-devel] [PATCH] xen:rtds:Clear __RTDS_depleted bit once replenish vcpu

2016-10-21 Thread Meng Xu
We should clear the __RTDS_depleted bit once a VCPU budget is replenished. Because repl_timer_handler may be called after rt_schedule but before rt_context_saved, the VCPU may be not on CPU or on queue when the VCPU is the middle of context switch Signed-off-by: Meng Xu --- Cc: Dario Faggioli

[Xen-devel] [PATCH v2] xen:rtds:Fix bug in budget accounting

2016-10-21 Thread Meng Xu
. Fix: We keeps last_start always within the current period for a VCPU, so that We only deduct the time spent in the current period from the VCPU budget. Signed-off-by: Meng Xu Reported-by: Dagaen Golomb --- Cc: Dario Faggioli Cc: George Dunlap Cc: Wei Liu Cc: Linh Thi Xuan Phan Cc: Haoran Li

Re: [Xen-devel] [PATCH v2] xen:rtds:Fix bug in budget accounting

2016-10-21 Thread Meng Xu
On Fri, Oct 21, 2016 at 10:11 PM, Meng Xu wrote: > Bug scenario: > While a VCPU is running on a core, it may misses its deadline. > Then repl_timer_handler() will update the VCPU period and deadline. > The VCPU may have high priority with the new deadline and repl_timer_handler()

Re: [Xen-devel] [PATCH] xen:rtds:Clear __RTDS_depleted bit once replenish vcpu

2016-10-25 Thread Meng Xu
On Tue, Oct 25, 2016 at 5:20 AM, Dario Faggioli wrote: > On Fri, 2016-10-21 at 22:12 -0400, Meng Xu wrote: >> We should clear the __RTDS_depleted bit once a VCPU budget is >> replenished. >> Because repl_timer_handler may be called after rt_schedule >> but before rt_con

Re: [Xen-devel] [PATCH v2] xen:rtds:Fix bug in budget accounting

2016-10-26 Thread Meng Xu
On Wed, Oct 26, 2016 at 10:43 AM, Dario Faggioli wrote: > On Fri, 2016-10-21 at 22:11 -0400, Meng Xu wrote: >> Bug scenario: >> While a VCPU is running on a core, it may misses its deadline. >> > May be useful to mention why (at least the most common reasons, like > o

Re: [Xen-devel] [PATCH v2] xen:rtds:Fix bug in budget accounting

2016-10-26 Thread Meng Xu
> >> Since we always account for the time spent in hypervisor into the >> budget of currently running VCPU, I chose last_start = cur_deadline - >> period. >> I'm ok for last_start = now, considering the consistency. So your >> call. :-) >> > I

[Xen-devel] [PATCH v3] xen:rtds: Fix bug in budget accounting

2016-10-26 Thread Meng Xu
. Signed-off-by: Meng Xu Reported-by: Dagaen Golomb --- Cc: Dario Faggioli Cc: George Dunlap Cc: Wei Liu Cc: Linh Thi Xuan Phan Cc: Haoran Li Cc: Meng Xu Cc: Dagaen Golomb Cc: Tianyang Chen --- Changes from v1: * Change commit message to make the bug scenario easier to understand; * The

[Xen-devel] [PATCH] xen:rtds: Update last_start whenever cur_budget is updated

2016-10-26 Thread Meng Xu
We keep last_start updated whenever cur_budget is updated. This avoids subtle bugs in case burn_budget() will be called in other places in the future. Signed-off-by: Meng Xu --- Cc: Dario Faggioli Cc: George Dunlap Cc: Wei Liu Cc: Linh Thi Xuan Phan Cc: Haoran Li Cc: Meng Xu Cc: Dagaen

Re: [Xen-devel] [PATCH] xen:rtds: Update last_start whenever cur_budget is updated

2016-10-27 Thread Meng Xu
Hi Wei and Dario, On Thu, Oct 27, 2016 at 6:03 AM, Wei Liu wrote: > On Thu, Oct 27, 2016 at 11:14:36AM +0200, Dario Faggioli wrote: >> On Wed, 2016-10-26 at 15:06 -0400, Meng Xu wrote: >> > We keep last_start updated whenever cur_budget is updated. >> > This

Re: [Xen-devel] [PATCH] xen:rtds: Update last_start whenever cur_budget is updated

2016-10-27 Thread Meng Xu
Sorry, I accidentally sent out the previous email... On Thu, Oct 27, 2016 at 6:03 AM, Wei Liu wrote: > On Thu, Oct 27, 2016 at 11:14:36AM +0200, Dario Faggioli wrote: >> On Wed, 2016-10-26 at 15:06 -0400, Meng Xu wrote: >> > We keep last_start updated whenever cur_budget is

Re: [Xen-devel] [Apply for Xen Outreach Prj] QEMU analysis

2016-10-30 Thread Meng Xu
"QEMU xen-blkback performance analysis and > improvements", as shown in > https://wiki.xenproject.org/wiki/Outreach_Program_Projects. You can use to highlight the sentence. People use the plain text in the ML. :-) Meng -- --- Meng Xu PhD Student in Computer and

Re: [Xen-devel] [PATCH v3 01/15] docs: L2 Cache Allocation Technology (CAT) feature document.

2016-10-30 Thread Meng Xu
beyond > + I'm interested in trying out your code. I'm planning to purchase a SoC with the Atom Goldmont processors. Do you have some suggestions about the SoC I should purchase? I would prefer to use the same

Re: [Xen-devel] Xen ARM community call

2016-11-08 Thread Meng Xu
I'm at EST (GMT-5). Thank you very much! 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 https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 2/6] xen: sched: fix locking for insert_vcpu() in credit1 and RTDS

2015-11-04 Thread Meng Xu
Hi Dario, Thank you very much for the explanation! I got it. To be specific, 2015-11-04 10:52 GMT-05:00 Dario Faggioli : > On Wed, 2015-11-04 at 10:01 -0500, Meng Xu wrote: > > 2015-11-04 9:12 GMT-05:00 Dario Faggioli : > > > Just FTR (and for next time :-D), is the above

[Xen-devel] Question about Xilinx ZynqMP

2015-11-06 Thread Meng Xu
roject.org/archives/html/xen-devel/2015-03/msg01219.html Best, 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.xe

Re: [Xen-devel] Question about Xilinx ZynqMP

2015-11-06 Thread Meng Xu
HI Edgar, Thank you so much for your reply! 2015-11-06 13:25 GMT-05:00 Edgar E. Iglesias : > On Fri, Nov 06, 2015 at 01:19:04PM -0500, Meng Xu wrote: > > Hi, > > Hi Meng, > > > > > I saw Xen is supported on Xilinx ZynqMP platform at [1]. > > I want to hav

[Xen-devel] Question about Xen serial console on non-standard PCI serial ports

2015-11-11 Thread Meng Xu
115200n8 earlyprintk=xen quiet splash echo'Loading initial ramdisk ...' module /boot/initrd.img-3.8.0-44-generic } [1] http://wiki.xenproject.org/wiki/Xen_Serial_Console -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania h

Re: [Xen-devel] Question about Xen serial console on non-standard PCI serial ports

2015-11-11 Thread Meng Xu
/boot/vmlinuz-3.8.0-44-generic placeholder root=/dev/sda5 > ro panic=10 panic_on_oops=1 console=hvc0,115200n8 earlyprintk=xen > quiet splash > > echo'Loading initial ramdisk ...' > > module /boot/initrd.img-3.8.0-44-generic > > } > > Finally,

Re: [Xen-devel] Question about Xen serial console on non-standard PCI serial ports

2015-11-11 Thread Meng Xu
command line works: placeholder dom0_mem=8192M,max:8192M dom0_max_vcpus=8 sched=credit com1=115200,8n1,pci console=com1,vga Thank you again for your help! Best regards, Meng -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~meng

[Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Meng Xu
*** (XEN) (XEN) Reboot in five seconds... ***It says "Reboot in five seconds", but I want for 1 min and nothing happened. :-( Did anyone happen to know why Xen does not reboot under this situation? (Xen could reboot if it fails on an ASSERT()) Thank you very much for your time and h

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Meng Xu
Hi Andrew, First, thank you so much for your super fast reply! I really appreciate it. :-) 2015-11-11 17:54 GMT-05:00 Andrew Cooper : > On 11/11/2015 22:49, Meng Xu wrote: >> Hi all, >> >> I'm trying to work remotely with the machine I have. So I want Xen >

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Meng Xu
Hi Andrew, 2015-11-11 18:34 GMT-05:00 Andrew Cooper : > On 11/11/2015 23:21, Meng Xu wrote: >> >>> Finally, I can't tell from your paste below, but ensure that you are >>> always using a debug hypervisor. >> The source file Config.mk under the xen folder has

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Andrew, 2015-11-12 7:52 GMT-05:00 Andrew Cooper : > On 12/11/15 02:10, Meng Xu wrote: >> Hi Andrew, >> >> 2015-11-11 18:34 GMT-05:00 Andrew Cooper : >>> On 11/11/2015 23:21, Meng Xu wrote: >>>>> Finally, I can't tell from your paste below,

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
put some printk in the machine_restart as Andrew suggested to see if I can find more information. If you happen to know any other ways that I can try, could you let me know? Thank you very much! Best, Meng --- Meng Xu PhD Student in Computer and Information Science University o

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
ggestions? Thank you very much for your help! Best, 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 Xen reboot on panic

2015-11-12 Thread Meng Xu
I think the machine_restart() may have a bug. :-( 2015-11-12 11:13 GMT-05:00 Meng Xu : > Hi Andrew, > > I thought I might find where the system got stuck. > > As you suggested, I add several printks inside machine_restart(); > If the machine restart when Xen kernel cras

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
(); __stop_this_cpu(); disable_IO_APIC(); hpet_disable(); local_irq_enable(); I'm guessing at __stop_this_cpu() when it is on P0, P0 will be stopped. That's why P0 will never have the chance to proceed to the rest of logic in th

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-18 Thread Meng Xu
think this could be a fix? > > Definitely not. I see the reason now... This issue does not happen on another machine of mine. Probably it is because of the oddity on the assembled machine, as Jan said. :-( Thank you very much for your help and advice! Best, 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] sched_rt: Improved nested virtualization performance

2015-11-18 Thread Meng Xu
tion*/ > ret.task = snext->vcpu; > Tianyang, The comment for this line should not be changed. The new comment should be in the commit message since this is the explanation of the whole patch. Thanks, Meng --- Meng Xu PhD Student in Computer and

Re: [Xen-devel] [PATCH] sched_rt: Improved nested virtualization performance

2015-11-19 Thread Meng Xu
Hi Dario, 2015-11-19 4:51 GMT-05:00 Dario Faggioli : > Hi, > > Thanks Tianyang for the report and for the patch, and Meng for helping > getting the patch itself on the list and to me, and for commenting. > > On Wed, 2015-11-18 at 22:38 -0500, Meng Xu wrote: >> [cc. Dario

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-23 Thread Meng Xu
> The experiment I am doing is running real time tasks with different total > utilization rate and measure the task success rate in the vm. Which kind of RT tasks are you running inside VM? Are they independent? Are they involving a lot of I/O or memory? Thanks, Meng > >

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-23 Thread Meng Xu
Hi, 2015-11-23 11:35 GMT-05:00 Yu-An(Victor) Chen : > Hi Meng, > > Thank you very much for replying! > > The RT tasks I am running for each trial at a certain utilization rate is a > collection of real-time tasks, and each real-time task is a sequence of jobs > that are released periodically. All

Re: [Xen-devel] [PATCH v4 0/6] xen: sched: fix locking of {insert, remove}_vcpu()

2015-11-23 Thread Meng Xu
ast, make sure it has no problem in applying on the latest commit point. >> >> What are the rules again, then? Dario is a scheduler maintainer, and >> Meng is an established contributor. I thought that was enough. > > My understanding is that patches by maintainers need

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-23 Thread Meng Xu
does, the IPI issue may still exist in LITMUS. :-( Then you have to look at the TRACE to figure out which part misses the IPI in LITMUS. > > Again, thank you very much, I really appreciate your help! No problem. Meng > > Victor > > > > > > > On Mon, Nov 23, 2015 at 6

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-27 Thread Meng Xu
2015-11-27 12:23 GMT-05:00 Dario Faggioli : > On Fri, 2015-11-27 at 08:36 -0800, Yu-An(Victor) Chen wrote: >> Hi Dario, >> > Hi, > >> Thanks for the reply! >> > You're welcome. :-) > > I'm adding Meng to Cc... > Thanks! :-) >> My goal for the experiment is to show that xen rtds scheduler is >> be

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-27 Thread Meng Xu
When a taskset miss ddl., which task inside miss deadline? Meng > > Thank you both very much again, if there is any unclear part, please lemme > know, thx! > > Victor > > > > On Fri, Nov 27, 2015 at 9:41 AM, Meng Xu wrote: >> >> 2015-11-27 12:23 GMT-05:00 D

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-28 Thread Meng Xu
taks utilization in a taskset, scheduling algorithm, task period relation, can affect schedulability also. Best, Meng > > > On Fri, Nov 27, 2015 at 4:17 PM, Meng Xu wrote: >> >> 2015-11-27 14:50 GMT-05:00 Yu-An(Victor) Chen : >> > Hi Dario & Meng, >> > &

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-29 Thread Meng Xu
nto the reference you provide, I just started my research > in the rt fields, there is still a lot for me to learn. Thank you again for > reply! > Yeah, you need to read and learn the real-time scheduling theory, especially you are doing research in RT field. :-D > > Thank you! &

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-29 Thread Meng Xu
completion time of the job is 79ms and then 87ms, and then 95ms > > > That depends on how missing a deadline is handled and accounted for. I > don't recall how Litmus^RT does that. LITMUS by default let the task keep running even when it misses deadline. But if users speci

Re: [Xen-devel] xen 4.5.0 rtds scheduler perform poorly with 2vms

2015-11-29 Thread Meng Xu
2015-11-29 11:27 GMT-05:00 Dario Faggioli : > On Sun, 2015-11-29 at 10:38 -0500, Meng Xu wrote: >> >> >> 2015-11-29 7:46 GMT-05:00 Yu-An(Victor) Chen : >> > Hi Meng, >> > >> Hi, >> >> > >> > So I will rewrite my setup here again,

[Xen-devel] Status of Improved RTDS (Was: Xen 4.6 Development Update (X months reminder)

2015-06-05 Thread Meng Xu
Hi Wei, > > > * Improve RTDS scheduler (none) It has two parts: > >Change RTDS from quantum driven to event driven This is part 1 which only involves the hypervisor change; The part 2 is supporting per-vcpu parameter get/set function in the toolstack. > > - D

<    1   2   3   4   >