Skip to contentSkip to conversation

Queries on time quantum for domains

DISCUSSION Arjun 2 participants 2 messages Mar 25, 2006 – Mar 27, 2006

lore
Share & tools
lore

Arjun

author
#0 lore raw

Hi,

For both SEDF and BVT , what is the minimum and maximum time quantum for domains ? Can these be changed ? If so, from where ?
Also, is there any information on domain context-switch times ?

Thanks in advance
Arjun

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 4 lines · Arjun

Hi,

For both SEDF and BVT , what is the minimum and maximum time quantum for domains ? Can these be changed ? If so, from where ?

xen/common/sched_sedf.c has the following for min/max

#define PERIOD_MAX MILLISECS(10000) /* 10s */
#define PERIOD_MIN (MICROSECS(10)) /* 10us */
#define SLICE_MIN (MICROSECS(5)) /* 5us */

You can display/modify period/slice/latency/extra/weight of the sedf scheduler through xm:

# xm sched-sedf
Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
Domain-0                           0      20.0      15.0     0.0      1      0
# xm help sched-sedf
   sched-sedf [DOM] [OPTIONS]       Show|Set simple EDF parameters
              -p, --period          Relative deadline(ms).
              -s, --slice           Worst-case execution time(ms)
                                    (slice < period).
              -l, --latency         scaled period(ms) in case the domain
                                    is doing heavy I/O.
              -e, --extra           flag (0/1) which controls whether the
                                    domain can run in extra-time
              -w, --weight          mutually exclusive with period/slice and
                                    specifies another way of setting a domain's
                                    cpu period/slice.
Quoted 1 line

Also, is there any information on domain context-switch times ?

There used to be a scheduler latency histogram that would track things along those lines, but that has been removed from the tree for some time.

Signature · 5 lines
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
[email protected]