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

2016-06-22 Thread Meng Xu
umask_t tickled; /* cpus been tickled */ >> -struct timer *repl_timer; /* replenishment timer */ >> +spinlock_t lock; /* the global coarse grand lock */ > > * course-grained > > Also, I'm not sure what the point of indenting all thes

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

2016-06-24 Thread Meng Xu
On Fri, Jun 24, 2016 at 3:45 AM, Dario Faggioli wrote: > On Thu, 2016-06-23 at 11:42 +0100, George Dunlap wrote: >> On 22/06/16 17:16, Meng Xu wrote: >> > >> > I think he is trying to align those comments to make them start >> > from >> > the same col

Re: [Xen-devel] Question about unable to add disk device after VM is destroyed and recreated on NVIDIA Jetson board

2016-07-03 Thread Meng Xu
On Mon, Jun 20, 2016 at 11:43 AM, Meng Xu wrote: > > Hi all, > > I'm running Xen on NVIDIA Jetson TK1 board. The Xen code is from Ian's > repo.: git://xenbits.xen.org/people/ianc/xen.git with the commit point > c78d51660446d33dac4bb07c3c17e1d14d62ebc2 > > Right

Re: [Xen-devel] [Embedded-pv-devel] Xen Project Developer Summit : program Published

2016-07-15 Thread Meng Xu
On Fri, Jul 15, 2016 at 8:01 AM, Dario Faggioli wrote: > [Reducing the rate of cross-posting a bit] > > On Wed, 2016-06-08 at 11:43 -0400, Meng Xu wrote: > > On Wed, Jun 8, 2016 at 9:02 AM, Lars Kurth > > wrote: > > > In addition to presentations, we will be runn

Re: [Xen-devel] [PATCH 1/3] xen: Some code motion to avoid having to do forward-declaration

2016-07-16 Thread Meng Xu
pure code motion; no functional change. > > Signed-off-by: George Dunlap > As to sched_rt.c, Reviewed-by: Meng Xu ​ ​Thanks, Meng​ Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___

Re: [Xen-devel] [PATCH v4] xen: sched: convert RTDS from time to event driven model

2016-02-02 Thread Meng Xu
next > svc->cur_deadline ) > > +t_next = svc->cur_deadline; > > + > Why do you need to do this? The next time at which the timer needs to > be reprogrammed is, after you'll have done all the replenishments that > needed to be done, here in this loop

Re: [Xen-devel] [PATCH v4] xen: sched: convert RTDS from time to event driven model

2016-02-03 Thread Meng Xu
edule() be > > sorting it? > > > Ops, yes, you are right, this is not budget enforcement. So, budget > enforcement looks still to be missing from this patch (and that is why > I asked whether it is actually working). > > And this chunk of code (and perhaps this whole function)

Re: [Xen-devel] [PATCH v5][RFC]xen: sched: convert RTDS from time to event driven model

2016-02-15 Thread Meng Xu
gt; added repl queue to keep track of repl events. > timer is now per scheduler. > timer is init on a valid cpu in a cpupool. > > Signed-off-by: Tianyang Chen > Signed-off-by: Meng Xu > Signed-off-by: Dagaen Golomb > --- > xen/common/sched_rt.c | 337 +++

Re: [Xen-devel] [PATCH v2 06/16] xen: sched: tracing: enable TSC tracing for all events

2016-02-16 Thread Meng Xu
off-by: Dario Faggioli > --- > Cc: George Dunlap > Cc: Meng Xu > Cc: Tianyang Chen > Cc: Olaf Hering > --- > xen/common/sched_credit.c |2 +- > xen/common/sched_credit2.c |6 +++--- > xen/common/sched_rt.c |2 +- > 3 files changed, 5 insert

Re: [Xen-devel] [PATCH v2 06/16] xen: sched: tracing: enable TSC tracing for all events

2016-02-17 Thread Meng Xu
On Wed, Feb 17, 2016 at 4:52 AM, Dario Faggioli wrote: > On Tue, 2016-02-16 at 13:21 -0500, Meng Xu wrote: >> Hi Dario, >> >> Since this patch did some obvious change, I will reply with >> reviewed-by, although my reviewed-by does not count much. ;-) >> > T

Re: [Xen-devel] [PATCH v2 05/16] xen: RTDS: pack trace data better for xentrace_format

2016-02-18 Thread Meng Xu
been > picked from the runqueue, by looking at when cpu_idle > is invoked --which is the same thing one would do if on > Credit or Credit2. > > Signed-off-by: Dario Faggioli > Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Meng Xu > --- > Cc: George Dunlap > Cc:

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

2015-12-01 Thread Meng Xu
re information just cause more confusion. What do you guys think which type of information we should include? Thanks, Meng > > > Lars > > > On 1 Dec 2015, at 08:59, Dario Faggioli wrote: > > > > On Sun, 2015-11-29 at 11:44 -0500, Meng Xu wrote: &g

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

2015-12-02 Thread Meng Xu
Hi Dario, 2015-12-02 5:19 GMT-06:00 Dario Faggioli : > On Wed, 2015-12-02 at 11:03 +, Lars Kurth wrote: >> > On 2 Dec 2015, at 05:54, Meng Xu wrote: >> > >> > Maybe we could add some health warning and add a link to this >> > discussion? >> > M

Re: [Xen-devel] [PATCH V2 1/1] Improved RTDS scheduler

2015-12-31 Thread Meng Xu
On Thu, Dec 31, 2015 at 6:20 PM, Tianyang Chen wrote: > > Budget replenishment is now handled by a dedicated timer which is > triggered at the most imminent release time of all runnable vcpus. > > Changes since V1: > None > > Signed-off-by: Tianyang Chen > Signe

Re: [Xen-devel] [PATCH 1/1] Improved RTDS scheduler

2016-01-04 Thread Meng Xu
y: Tianyang Chen >> Signed-off-by: Meng Xu >> Signed-off-by: Dagaen Golomb >> --- >> -cover-letter.patch| 16 +++ >> 0001-Improved-RTDS-scheduler.patch | 280 >> >> bak

Re: [Xen-devel] Xen 4.7 Development Update

2016-01-05 Thread Meng Xu
following to the Xen 4.7 development update? * Convert RTDS from time to event driven model - Tianyang Chen - Meng Xu Tianyang is cc.ed and his email is ti...@seas.upenn.edu My email is men...@cis.upenn.edu Thank you very much! :-) Best regards, Meng --- Meng

Re: [Xen-devel] Xen 4.7 Development Update

2016-01-05 Thread Meng Xu
On Tue, Jan 5, 2016 at 10:34 PM, Wei Liu wrote: > On Tue, Jan 05, 2016 at 10:30:53PM +0800, Meng Xu wrote: >> Hi Wei, >> >> On Mon, Jan 4, 2016 at 6:15 PM, Wei Liu wrote: >> > This email only tracks big items for xen.git tree. Please reply for items >> &g

Re: [Xen-devel] [PATCH V2 1/1] Improved RTDS scheduler

2016-01-15 Thread Meng Xu
On Wed, Jan 6, 2016 at 2:57 AM, Tianyang Chen wrote: > > > > On 12/31/2015 8:44 AM, Meng Xu wrote: >> >> On Thu, Dec 31, 2015 at 6:20 PM, Tianyang Chen wrote: >>> >>> >>> Budget replenishment is now handled by a dedicated timer which is >

Re: [Xen-devel] Questions about the use of idle_vcpu[]

2016-01-18 Thread Meng Xu
Yes, you are right. The current RTDS should not return 0 when the idle VCPU is picked. I think it should do as what the credit does, i.e., returning a negative value to avoid arming the timer. Right now, we are working on changing RTDS to event-driven model. We will fix this in the next version of t

Re: [Xen-devel] Questions about the use of idle_vcpu[]

2016-01-18 Thread Meng Xu
Hi Dario, On Mon, Jan 18, 2016 at 11:32 AM, Dario Faggioli wrote: > On Mon, 2016-01-18 at 11:07 -0500, Meng Xu wrote: >> On Mon, Jan 18, 2016 at 6:00 AM, Dario Faggioli >> wrote: >> > >> > RTDS behavior is broken in many respect, including this, >> > &g

Re: [Xen-devel] [PATCH V2 1/1] Improved RTDS scheduler

2016-01-19 Thread Meng Xu
On Tue, Jan 19, 2016 at 11:35 AM, Tianyang Chen wrote: > > > > On 1/15/2016 10:33 AM, Meng Xu wrote: >> >> On Wed, Jan 6, 2016 at 2:57 AM, Tianyang Chen wrote: >>> >>> >>> >>> >>> On 12/31/2015 8:44 AM, Meng Xu wrote: >&

Re: [Xen-devel] [PATCH v3 1/1] xen: sched: convert RTDS from time to event driven model

2016-01-22 Thread Meng Xu
o back to v2, and comment on it. Sure! Please comment on it. Another option is to keep the running VCPUs onto the top of the runq. > > If, during the review, it turns out that we need something like this, > I'll come here again. > Sure! Looking forward to your comment. > In

Re: [Xen-devel] [PATCH V2 1/1] Improved RTDS scheduler

2016-01-25 Thread Meng Xu
re re-arming the >> replenishment timer) >> >> Meng's example falls in a., AFAICT, and we can just deal with that when >> we handle the 'budget exhausted' event (in rt_schedule(), in this case, >> I think). >> >> The case you refer to in

Re: [Xen-devel] [PATCH V2 1/1] Improved RTDS scheduler

2016-01-26 Thread Meng Xu
Hi Dario and Tianyang, On Tue, Jan 26, 2016 at 9:06 AM, Dario Faggioli wrote: > On Mon, 2016-01-25 at 18:00 -0500, Meng Xu wrote: >> On Mon, Jan 25, 2016 at 5:04 PM, Tianyang Chen >> wrote: >> > I have removed some of the Ccs so they won't get bothered as we &

Re: [Xen-devel] Xen 4.6 Development Update (two months reminder)

2015-03-12 Thread Meng Xu
;m working on the code and then evaluating its performance. Once I can confirm this will definitely benefit the RTDS scheduler, I will send a separate email to the ML to explain the goal/design/implementation in detail. Thanks, Meng -- --- Meng Xu PhD Student in Computer and Information S

Re: [Xen-devel] [PATCH 2/7] xen: sched_rt: implement the .free_pdata hook

2015-03-16 Thread Meng Xu
xplode, e.g., when removing > pCPUs from an RTDS cpupool and assigning them to another > one. > > Signed-off-by: Dario Faggioli > Cc: George Dunlap > Cc: Meng Xu > Cc: Jan Beulich > Cc: Keir Fraser > --- > xen/common/sched_rt.c | 18 ++ > 1

Re: [Xen-devel] [PATCH 2/7] xen: sched_rt: implement the .free_pdata hook

2015-03-16 Thread Meng Xu
Hi Dario, 2015-03-16 13:10 GMT-04:00 Dario Faggioli : > On Mon, 2015-03-16 at 18:04 +0100, Dario Faggioli wrote: >> which is called by cpu_schedule_down(), and is necessary >> for resetting the spinlock pointers in schedule_data from >> the RTDS global runqueue lock, back to the default _lock >> f

Re: [Xen-devel] [PATCH 3/7] xen: rework locking for dump of scheduler info (debug-key r)

2015-03-16 Thread Meng Xu
a few style issues (indentation, trailing > whitespace, parentheses and blank line after var declarations) > > Signed-off-by: Dario Faggioli > Cc: George Dunlap > Cc: Meng Xu > Cc: Jan Beulich > Cc: Keir Fraser > --- > xen/common/sched_credit.c | 42 +++

Re: [Xen-devel] [PATCH 5/7] xen: make dumping vcpu info look better

2015-03-16 Thread Meng Xu
so, put the > info about affinity on the same, properly indented. > > Signed-off-by: Dario Faggioli > Cc: George Dunlap > Cc: Meng Xu > Cc: Jan Beulich > Cc: Keir Fraser Reviewed-by: Meng Xu Thanks, Meng --- Meng Xu PhD Student in Computer and Information Sc

Re: [Xen-devel] [PATCH 7/7] xen: sched_rt: print useful affinity info when dumping

2015-03-16 Thread Meng Xu
tch, > instead of open coded string buffers. > > Signed-off-by: Dario Faggioli > Cc: George Dunlap > Cc: Meng Xu > Cc: Jan Beulich > Cc: Keir Fraser > --- > xen/common/sched_rt.c | 40 > 1 file changed, 32 insertions(+), 8

Re: [Xen-devel] [PATCH 1/7] xen: sched_rt: avoid ASSERT()ing on runq dump if there are no domains

2015-03-16 Thread Meng Xu
2015-03-16 13:04 GMT-04:00 Dario Faggioli : > being serviced by the RTDS scheduler, as that is a > legit situation to be in: think, for instance, of a > newly created RTDS cpupool, with no domains migrated > to it yet. > > Signed-off-by: Dario Faggioli > Cc: George Dunlap

Re: [Xen-devel] [PATCH 7/7] xen: sched_rt: print useful affinity info when dumping

2015-03-17 Thread Meng Xu
ee. I didn't realize the fact of the limited size of hypervisor stack. That makes sense. Thank you very much for clarification! :-) Best, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 7/7] xen: sched_rt: print useful affinity info when dumping

2015-03-17 Thread Meng Xu
Hi Dario, 2015-03-17 10:12 GMT-04:00 Dario Faggioli : > On Mon, 2015-03-16 at 16:30 -0400, Meng Xu wrote: >> Hi Dario, >> > Hey, > >> 2015-03-16 13:05 GMT-04:00 Dario Faggioli : > >> > >> > This change also takes the chance to add a scratch

Re: [Xen-devel] [PATCH v2 5/5] xen: sched_rt: print useful affinity info when dumping

2015-03-17 Thread Meng Xu
f CPUs.) > > Such scratch area can be used to kill most of the > cpumasks{_var}_t local variables in other functions > in the file, but that is *NOT* done in this chage. > > Finally, convert the file to use keyhandler scratch, > instead of open coded string buffers. > > Signed-

[Xen-devel] Design and Question: Eliminate Xen (RTDS) scheduler overhead on dedicated CPU

2015-03-23 Thread Meng Xu
6cad92e833165fe45305 . (I'm not sure if it's a good idea to attach the patch at the end of this email. It may just make this email too long and hard to read. Please let me know if you need it and I will send it in a separate email.) Thank you very much for

Re: [Xen-devel] Design and Question: Eliminate Xen (RTDS) scheduler overhead on dedicated CPU

2015-03-24 Thread Meng Xu
2015-03-24 7:54 GMT-04:00 George Dunlap : > On Tue, Mar 24, 2015 at 3:50 AM, Meng Xu wrote: > > Hi Dario and George, > > > > I'm exploring the design choice of eliminating the Xen scheduler > overhead on > > the dedicated CPU. A dedicated CPU is a PCPU that ha

Re: [Xen-devel] Design and Question: Eliminate Xen (RTDS) scheduler overhead on dedicated CPU

2015-03-24 Thread Meng Xu
2015-03-24 17:08 GMT-04:00 George Dunlap : > On Tue, Mar 24, 2015 at 3:27 PM, Meng Xu wrote: > >> The simplest way to get your prototype working, in that case, would be > >> to return the idle vcpu for that pcpu if the guest is blocked. > > > > > > Exact

Re: [Xen-devel] Design and Question: Eliminate Xen (RTDS) scheduler overhead on dedicated CPU

2015-03-25 Thread Meng Xu
2015-03-25 7:58 GMT-04:00 George Dunlap : > On 03/25/2015 01:48 AM, Meng Xu wrote: > > ​Exactly! I will do some measurement on the overhead in #2 before I > really > > try to do it. Since #1 is fairly easy, I will first implement #1 and see > > how much gap it remains t

Re: [Xen-devel] domU jiffies not incrementing - timer issue? - Kernel 3.18.10 on Xen 4.5.0

2015-03-30 Thread Meng Xu
continuous time below Xen in nested virtualization may affect the scheduling decision and then make some domU starving. But it's weird that a domU is never scheduled... (When I run Xen on virtual box, domU is slow but still running) So I'm unsure if it's the scheduler issue or not...

Re: [Xen-devel] Xen 4.6 Development Update

2015-02-16 Thread Meng Xu
> misunderstanding. Dagaen Golomb and I (Meng Xu) will improve the RTDS scheduler for Xen 4.6: RTDS Scheduler Improvement Burn budget in finer granularity instead of 1ms; Use separate timer per VCPU for each VCPU's budget replenishment, instead of scanning the full runqueue

[Xen-devel] [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6

2015-02-21 Thread Meng Xu
Choice 1 or Choice 2? or do you have better suggestion? Thank you very much! best, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [RFC] More efficient RTDS scheduler for Xen 4.6

2015-02-22 Thread Meng Xu
duler file > (sched_rt.c) and will not require changes to any other Xen subsystems. > > Discussion, comments, and suggestions are welcome. > > Regards, > Dagaen Golomb Best, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6

2015-02-22 Thread Meng Xu
[Adding Denys and Andri from globallogic for their advice about the user interface and why we need such functionality] 2015-02-21 10:51 GMT-05:00 Meng Xu : > Hi all, > > This is for Xen 4.6: Enabling XL to set the parameters of each > individual VCPU of a domain for RTDS schedule

Re: [Xen-devel] [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6

2015-02-24 Thread Meng Xu
libxl will also use the array-based implementation.) As to the data structure, we will use the union structure to hold the data of the RTDS per-vcpu parameters, so that when other schedulers want to support per-vcpu operation, they can add the specific data structure in the union structure. Does th

Re: [Xen-devel] [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6

2015-02-25 Thread Meng Xu
Hi Dario, In summary, I agree with you and will apply these comments discussed in this thread to work out a RFC patch for it. Below is just some reply to your question. :-) 2015-02-25 3:44 GMT-05:00 Dario Faggioli : > On Tue, 2015-02-24 at 21:42 -0500, Meng Xu wrote: >> Hi all, &

Re: [Xen-devel] [PATCH 1/4] xen: sched: honour generic perf conuters in the RTDS scheduler

2015-02-26 Thread Meng Xu
a couple of counters > in credit2 and SEDF"). > > Signed-off-by: Dario Faggioli > Cc: Meng Xu > Cc: George Dunlap > Cc: Jan Beulich > Cc: Keir Fraser > --- > xen/common/sched_rt.c |4 > 1 file changed, 4 insertions(+) > > diff --git a/xen/commo

Re: [Xen-devel] [PATCH 3/4] xen: sched: make counters for vCPU tickling generic

2015-02-26 Thread Meng Xu
2015-02-26 8:37 GMT-05:00 Dario Faggioli : > and update them from Credit2 and RTDS schedulers. > > Signed-off-by: Dario Faggioli > Cc: Meng Xu > Cc: George Dunlap > Cc: Jan Beulich > Cc: Keir Fraser > --- > xen/common/sched_credit2.c |2 ++ > xen/c

Re: [Xen-devel] [PATCH 3/4] xen: sched: make counters for vCPU tickling generic

2015-02-27 Thread Meng Xu
2015-02-27 5:53 GMT-05:00 Dario Faggioli : > On Fri, 2015-02-27 at 00:47 -0500, Meng Xu wrote: > >> 2015-02-26 8:37 GMT-05:00 Dario Faggioli : >> and update them from Credit2 and RTDS schedulers. >> >> Signed-off-by: Dario Faggioli >>

Re: [Xen-devel] [PATCH 2/4] xen: sched: make counters for vCPU sleep and wakeup generic

2015-02-27 Thread Meng Xu
;) > -PERFCOUNTER(vcpu_sleep, "csched: vcpu_sleep") > -PERFCOUNTER(vcpu_wake_running, "csched: vcpu_wake_running") > -PERFCOUNTER(vcpu_wake_onrunq, "csched: vcpu_wake_onrunq") > -PERFCOUNTER(vcpu_wake_runnable, "csched: vcpu_wake_runnable") > -PERFCOUNTER(vcpu_wake_not_runnable, "csched: vcpu_wake_not_runnable") > PERFCOUNTER(vcpu_park, "csched: vcpu_park") > PERFCOUNTER(vcpu_unpark,"csched: vcpu_unpark") > PERFCOUNTER(tickle_idlers_none, "csched: tickle_idlers_none") > Reviewed-by: Meng Xu Thanks, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 1/9] docs: RTDS is a valid alternative as a scheduler for a cpupool

2015-03-06 Thread Meng Xu
2015-03-06 12:20 GMT-05:00 Dario Faggioli : > so update the relevant manpage and the example file. > > Signed-off-by: Dario Faggioli > Cc: Ian Campbell > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Wei Liu > Cc: Juergen Gross > Cc: Meng Xu > --- > do

Re: [Xen-devel] Page Table Entry Modifications

2015-09-27 Thread Meng Xu
2015-09-23 4:42 GMT-04:00 Gohar Irfan : > > It is for a project, I'm trying to experiment with a couple of things. Well, this is too general... Everything can be a project. People tries to know what exact things you want to achieve so that they can figure out if you are heading the correct directi

Re: [Xen-devel] Xen4.7 unable to get domain type for domid

2015-09-29 Thread Meng Xu
e used to ​boot the domU, the error disappears. So it is likely that the linux-image provided by the ubuntu archive that he uses is kind of broken. It is glad to know that it is not Xen's problem. :-) ​Best regards,​ ​Meng​ --- Meng Xu PhD Student in Com

Re: [Xen-devel] Reminder: Urgent - Action Required - Xen Dev Summit Bof's Developer Meetings and WG Meetings on Aug 18 & 19t (print and food order deadline Friday 7th)

2015-08-07 Thread Meng Xu
en to" the meeting if there is still space left? 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

[Xen-devel] Question: Redirect guest kernel's message via serial port to a file on dom0

2015-08-23 Thread Meng Xu
above three steps? ​ I really appreciate any help or suggestion or comment. Thank you very much! Best, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/ ___ Xen-devel mailin

Re: [Xen-devel] Question: Redirect guest kernel's message via serial port to a file on dom0

2015-08-24 Thread Meng Xu
Hi Andrew, Thank you so much for your suggestion! I tried but have some questions. 2015-08-24 4:10 GMT-04:00 Andrew Cooper : > > On 24/08/2015 04:01, Meng Xu wrote: > > Hi, > > I'm trying to use a PV guest VM on Xen to help debug Linux. > I was using VirtualBox to

Re: [Xen-devel] Question: Redirect guest kernel's message via serial port to a file on dom0

2015-08-25 Thread Meng Xu
2015-08-25 3:42 GMT-04:00 Andrew Cooper : > On 25/08/2015 03:48, Meng Xu wrote: >> Hi Andrew, >> >> Thank you so much for your suggestion! I tried but have some questions. >> >> 2015-08-24 4:10 GMT-04:00 Andrew Cooper : >>> On 24/08/2015 04:01, Meng Xu wr

[Xen-devel] Question about the CAT and CMT in Xen

2015-08-31 Thread Meng Xu
Hi Chao, I'm Meng Xu from the University of Pennsylvania. We purchased a computer that has Intel(R) Xeon(R) CPU E5-2618L v3 @ 2.30GHz inside. According to http://www.intel.com/content/www/us/en/communications/cache-monitoring-cache-allocation-technologies.html, Intel E5-2618L v3 should su

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-08-31 Thread Meng Xu
Hi Andrew and Chao, 2015-08-31 14:25 GMT-04:00 Andrew Cooper : > > On 31/08/15 18:42, Meng Xu wrote: > > Hi Chao, > > I'm Meng Xu from the University of Pennsylvania. > > We purchased a computer that has Intel(R) Xeon(R) CPU E5-2618L v3 @ 2.30GHz > inside. > A

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-09-01 Thread Meng Xu
2015-09-01 1:47 GMT-04:00 Chao Peng : > On Mon, Aug 31, 2015 at 04:09:31PM -0400, Meng Xu wrote: >> I looked into the xen/arch/x86/psr.c and found that the function >> cat_cpu_init() just returned without initializing the variable >> "cat_socket_enable". >>

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-09-01 Thread Meng Xu
2015-09-01 9:04 GMT-04:00 Andrew Cooper : > On 01/09/15 13:55, Meng Xu wrote: >> 2015-09-01 1:47 GMT-04:00 Chao Peng : >>> On Mon, Aug 31, 2015 at 04:09:31PM -0400, Meng Xu wrote: >>>> I looked into the xen/arch/x86/psr.c and found that the function >>>

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-09-01 Thread Meng Xu
2015-09-01 10:30 GMT-04:00 Andrew Cooper : > On 01/09/15 15:20, Meng Xu wrote: >> 2015-09-01 9:04 GMT-04:00 Andrew Cooper : >>> On 01/09/15 13:55, Meng Xu wrote: >>>> 2015-09-01 1:47 GMT-04:00 Chao Peng : >>>>> On Mon, Aug 31, 2015 at 04:09:31PM -0400

Re: [Xen-devel] Question: Redirect guest kernel's message via serial port to a file on dom0

2015-09-01 Thread Meng Xu
2015-09-01 6:52 GMT-04:00 Ian Campbell : > On Tue, 2015-08-25 at 09:04 -0400, Meng Xu wrote: >> 2015-08-25 3:42 GMT-04:00 Andrew Cooper : >> > On 25/08/2015 03:48, Meng Xu wrote: >> > > Hi Andrew, >> > > >> > > Thank you so much for y

Re: [Xen-devel] Question: Redirect guest kernel's message via serial port to a file on dom0

2015-09-01 Thread Meng Xu
2015-09-01 11:26 GMT-04:00 Ian Campbell : > On Tue, 2015-09-01 at 11:15 -0400, Meng Xu wrote: >> 2015-09-01 6:52 GMT-04:00 Ian Campbell : >> > On Tue, 2015-08-25 at 09:04 -0400, Meng Xu wrote: >> > > 2015-08-25 3:42 GMT-04:00 Andrew Cooper : >> >

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-09-01 Thread Meng Xu
Hi Andrew and Chao, [Important things go first] It turns out my machine (Intel E5-2618L v3) does have CAT capability! Xen gives the false alarm that my machine does not have it. This should be a bug, IMO. :-) 2015-09-01 10:42 GMT-04:00 Meng Xu : > 2015-09-01 10:30 GMT-04:00 Andrew Cooper : &g

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-09-01 Thread Meng Xu
2015-09-01 21:47 GMT-04:00 Chao Peng : > On Tue, Sep 01, 2015 at 10:42:57AM -0400, Meng Xu wrote: >> 2015-09-01 10:30 GMT-04:00 Andrew Cooper : >> > On 01/09/15 15:20, Meng Xu wrote: >> >> 2015-09-01 9:04 GMT-04:00 Andrew Cooper : >> >>> On 01/09/15

Re: [Xen-devel] Question about the CAT and CMT in Xen

2015-09-01 Thread Meng Xu
2015-09-01 22:31 GMT-04:00 Chao Peng : > On Tue, Sep 01, 2015 at 09:51:57PM -0400, Meng Xu wrote: >> Hi Andrew and Chao, >> >> [Important things go first] It turns out my machine (Intel E5-2618L >> v3) does have CAT capability! >> Xen gives the false alarm that

Re: [Xen-devel] [rtxen-devel] XEN::SCHEDULER::libxl.c::make install error ::libxenlight.so: undefined reference to `xc_sched_rm_domain_set'

2014-12-14 Thread Meng Xu
e Student in Computer Science > Illinois Institute of Technology > Stuart Building Chicago, IL 60616 > +1 312 404 0122 > > -- > You received this message because you are subscribed to the Google Groups > "rtxen-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rtxen-devel+unsubscr...@googlegroups.com. > To post to this group, send email to rtxen-de...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Xen 4.5 Development Update (RC4) - Documentation Updates

2014-12-19 Thread Meng Xu
exen/getting-started. ​I can add a wiki page very quickly today based on the pages on ​ https://sites.google.com/site/realtimexen/ . Is that ok? Thanks, Meng -- --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania _

Re: [Xen-devel] Xen 4.5 Development Update (RC4) - Documentation Updates

2014-12-19 Thread Meng Xu
Hi Lars and Dario, 2014-12-19 11:15 GMT-05:00 Dario Faggioli : > On Fri, 2014-12-19 at 10:55 -0500, Meng Xu wrote: > > > 2014-12-19 9:52 GMT-05:00 Lars Kurth : > > Hi all, > > > > Please reply to the thread and I will add that page. > >

Re: [Xen-devel] [rtxen-devel] Re: rt-xen::make Done::xl :: sched-rm not shown:: how to add a command line in xl

2014-12-29 Thread Meng Xu
>> cd-insert Insert a cdrom into a guest's cd drive >>> cd-ejectEject a cdrom from a guest's cd drive >>> mem-max Set the maximum amount reservation for a domain >>> mem-set

[Xen-devel] Question about partitioning shared cache in Xen

2015-01-13 Thread Meng Xu
y_info xen_vnuma_topology_info_t; DEFINE_XEN_GUEST_HANDLE(xen_vnuma_topology_info_t); /* Next available subop number is 27 */ -#define RTXEN_PAGE_BITS 12 -#define RTXEN_PAGE_SIZE 4096 -#define RTXEN_LLC_SLICE_SIZE (2*1024*1024) -#define RTXEN_LLC_ASSOC (1

Re: [Xen-devel] Question about partitioning shared cache in Xen

2015-01-14 Thread Meng Xu
Hi Andrew, Thank you very much for your quick reply! 2015-01-14 7:20 GMT-05:00 Andrew Cooper : > On 14/01/15 00:41, Meng Xu wrote: >> Hi, >> >> [Goal] >> I want to investigate the impact of the shared cache on the >> performance of workload in guest domain. >&

Re: [Xen-devel] Question about partitioning shared cache in Xen

2015-01-14 Thread Meng Xu
rc = xc_domain_populate_physmap_exact_ca( dom->xch, dom->guest_domid, allocsz, 0, 0, &dom->p2m_host[i], cache_colors); } } Thank you very much! Best, Meng -- --- Meng Xu PhD Student in Computer and I

Re: [Xen-devel] Question about partitioning shared cache in Xen

2015-01-14 Thread Meng Xu
peak of > 1G) pages anyway. Right now, I'm only looking at the PV guests and try to have some measurements of the cache partitioning mechanisms on the PV guests. I want to first show the benefits and cost of the page coloring mechanisms in Xen and then may explore the other types of gu

Re: [Xen-devel] Question about partitioning shared cache in Xen

2015-01-15 Thread Meng Xu
wikipedia.org/wiki/Cache_coloring), some OS, e.g., FreeBSD, supports it. So I'm curious about the performance of the page coloring mechanism on Xen and the strength and weakness of it. (Although in theory, we know the strength and weakness, I want/hope to see it in practical implementation.

Re: [Xen-devel] [PATCH v2 5/6] xen: sched: get rid of the per domain vCPU list in RTDS

2015-10-22 Thread Meng Xu
e, take care of the case when > XEN_DOMCTL_SCHEDOP_getinfo is called but no vCPUs have > been allocated yet (by returning the default scheduling > parameters). > > Signed-off-by: Dario Faggioli > --- > Cc: Meng Xu > Cc: George Dunlap > Cc: Andrew Cooper > --- > Chan

[Xen-devel] Question about Xen on Freescale IMX6 SABRE Board?

2015-10-25 Thread Meng Xu
processors/i.mx6qp/sabre-board-for-smart-devices-reference-design-based-on-the-i.mx-6-series:RDIMX6SABREBRD [2] http://www.cnx-software.com/2013/12/19/mentor-embedded-arm-hypervisor-automotive-demo-on-freescale-i-mx6-board/ ------- Meng Xu PhD Student in Computer and Information Science Uni

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

2015-10-30 Thread Meng Xu
's no need to do *_irqsave()). > > Signed-off-by: Dario Faggioli > --- > Cc: George Dunlap > Cc: Meng Xu > Cc: Andrew Cooper > Cc: Jan Beulich > --- > Cahnges from v2: > * locking in schedule_cpu_switch() is left in place (but >turned to just _irq(), instea

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

2015-11-02 Thread Meng Xu
gt; branch rel/sched/fix-vcpu-ins-rem-v2 in your repo., it is the >> following code: >> >> lock = vcpu_schedule_lock_irq(vc, &flags); >> >> I guess maybe you forgot to change it in this commit but change it >> the >> following commit? >> > No, th

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, 2015-11-04 9:12 GMT-05:00 Dario Faggioli : > On Mon, 2015-11-02 at 09:45 -0500, Meng Xu wrote: > > > > I guess maybe you forgot to change it in this commit but change > > > > it > > > > the > > > > following commit? > > > >

Re: [Xen-devel] [PATCH v4 for Xen 4.6 0/4] Enable per-VCPU parameter settings for RTDS scheduler

2015-07-13 Thread Meng Xu
e to improve the efficiency of the scheduler "a lot"​ ​,​ ​I will evaluate the performance of the RTDS scheduler with cyclictest once Dagaen have the improved version done. ​ ​Thanks, Meng​ --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http:/

[Xen-devel] Performance evaluation and Questions: Eliminating Xen (RTDS) scheduler overhead on dedicated CPU

2015-04-07 Thread Meng Xu
If we cannot eliminate one of virtualization, we should at least be able to upper bound the effect of it. Do you have some suggestions? Thank you very much for your help and advice! Best, Meng --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___

Re: [Xen-devel] Performance evaluation and Questions: Eliminating Xen (RTDS) scheduler overhead on dedicated CPU

2015-04-08 Thread Meng Xu
2015-04-08 5:13 GMT-04:00 George Dunlap : > On 04/07/2015 09:25 PM, Meng Xu wrote: >> Hi George, Dario and Konrad, >> >> I finished a prototype of the RTDS scheduler with the dedicated CPU >> feature and did some quick evaluation on this feature. Right now, I >> n

Re: [Xen-devel] [RFC PATCH 0/7] Intel Cache Monitoring: Current Status and Future Opportunities

2015-04-09 Thread Meng Xu
perf, which also use the PMC.) Another thought on the CMT is that it seems that Intel introduces CMT along with CAT. So I assume they want to use CMT along with CAT so that it gives some hint on how to allocate LLC to different guests? For example, if a crazy guest is thrashing the LLC, they can app

Re: [Xen-devel] [RFC PATCH 0/7] Intel Cache Monitoring: Current Status and Future Opportunities

2015-04-09 Thread Meng Xu
pu runs long enough. IMHO, there should exist some heuristics to indicate when the "near-accurate" cache usage information will be very useful to guide the scheduling decisions. For example, another situation in my mind which does not need so frequent sampling is that: If a domain

Re: [Xen-devel] Xen 4.6 Development Update (three months reminder)

2015-04-14 Thread Meng Xu
2015-04-14 9:33 GMT-04:00 George Dunlap : > On 04/14/2015 11:27 AM, wei.l...@citrix.com wrote: > > == Hypervisor == > > > > * Alternate p2m: support multiple copies of host p2m (ok) > > - Ed White > > > > * Improve RTDS scheduler (none) > > -

[Xen-devel] Question about the tools/misc/xen-hptool

2015-04-17 Thread Meng Xu
t;4" handle = "0" mac = "00:16:3e:0f:49:33" tx-ring-ref = "768" rx-ring-ref = "769" event-channel = "16" request-rx-copy = "1" feature-rx-notify = "1" feature-sg = "

[Xen-devel] Possible bug/question in xen-hptool?

2015-04-22 Thread Meng Xu
FLINED, PG_OFFLINE_OWNED] I'm wondering if this is a bug in do_mmu_update() or at least some inconsistence is in the do_mmu_update() code? Of course, this could also be because I misunderstood something. If so, could you please let me know what I misunderstood and how I should correct

Re: [Xen-devel] Possible bug/question in xen-hptool?

2015-04-23 Thread Meng Xu
ne ` does not take the , to which the belongs. I think this tool should take the as an extra parameter just as `xen-mfndump lookup-pte ` does. When the tool construct the foreigndom for mmu, it should make the foreigndom as ((pt_owner_id + 1 << 16) | pg_owner_id). Am I correct? Thank y

Re: [Xen-devel] Performance evaluation and Questions: Eliminating Xen (RTDS) scheduler overhead on dedicated CPU

2015-04-23 Thread Meng Xu
o > pointed out a few things. What you pointed out is very interesting! I will have a look at them and then show the numbers of the measurements. (I will also need/have to redo some experiments to see how the TSC may affect the results, which I didn't realize before. :-( ) > > On Wed

Re: [Xen-devel] Fwd: How to get real time in a xen vm?

2015-04-29 Thread Meng Xu
virtual time of the dom0, which makes it meaningless to > compare to the latency on a physical machine. > > How can I get the real and highly accurate time in dom0? Thanks:) > ​ > > ​You may want to try the instruction 'rdtsc' ​to read the timestamp counter register

Re: [Xen-devel] [PATCH for Xen 4.5 v2 2/2] xen: serialize vcpu data in sched_rt.c

2014-11-10 Thread Meng Xu
I'm not sure if I should resend the patch just to change the commit log and add the reason of why doing this. I want to first add the reason. If I should resend the patch set, please let me know. 2014-11-10 7:53 GMT-05:00 George Dunlap : > On 10/25/2014 03:16 PM, Meng Xu wrote: > &

Re: [Xen-devel] [PATCH for Xen 4.5 v2 2/2] xen: serialize vcpu data in sched_rt.c

2014-11-10 Thread Meng Xu
2014-11-10 10:40 GMT-05:00 George Dunlap : > On 11/10/2014 03:29 PM, Meng Xu wrote: > > I'm not sure if I should resend the patch just to change the commit log > and add the reason of why doing this. > > I want to first add the reason. If I should resend the patch se

[Xen-devel] [PATCH for Xen 4.5 v3 0/2] Sanity check input and serialize vcpu data in sched_rt.c

2014-11-10 Thread Meng Xu
Faggioli --- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH for Xen 4.5 v3 1/2] xen: sanity check input and serialization in sched_rt.c

2014-11-10 Thread Meng Xu
Sanity check input params in rt_dom_cntl(); Serialize rt_dom_cntl() against the global lock. Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli Reviewed-by: George Dunlap --- xen/common/sched_rt.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/xen/common/sched_rt.c b/xen

[Xen-devel] [PATCH for Xen 4.5 v3 2/2] xen: serialize vcpu data in sched_rt.c

2014-11-10 Thread Meng Xu
(). Signed-off-by: Meng Xu Reviewed-by: Dario Faggioli --- xen/common/sched_rt.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 8251e41..e70d6c7 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c

Re: [Xen-devel] [PATCH for Xen 4.5 v3 0/2] Sanity check input and serialize vcpu data in sched_rt.c

2014-11-10 Thread Meng Xu
Sorry, the cover letter missed one line. :-( 2014-11-10 16:11 GMT-05:00 Meng Xu : These two patches are to solve the issues found by Jan Beulich at http://lists.xen.org/archives/html/xen-devel/2014-09/msg03554.html. The solution is summarized by Dario Faggioli at > http://lists.xen.org/archi

<    1   2   3   4