[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 53/59] controller: Add WorkerConfig.SoftAffinity
From: George Dunlap <george.dunlap@xxxxxxxxxx> If the SoftAffinity is present, pass it as "cpus_soft = ..." in the config file. Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxx> --- benchmark.go | 1 + xenworker.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/benchmark.go b/benchmark.go index bd513fd..d5a0ac8 100644 --- a/benchmark.go +++ b/benchmark.go @@ -58,6 +58,7 @@ func (l *WorkerParams) SetkHZ(kHZ uint64) { type WorkerConfig struct { Pool string + SoftAffinity string } // Propagate unset values from a higher level diff --git a/xenworker.go b/xenworker.go index 10817b5..f2f316f 100644 --- a/xenworker.go +++ b/xenworker.go @@ -91,6 +91,10 @@ func (w *XenWorker) Init(p WorkerParams, g WorkerConfig) (err error) { fmt.Fprintf(cfg, "pool = '%s'\n", g.Pool) } + if g.SoftAffinity != "" { + fmt.Fprintf(cfg, "cpus_soft = '%s'\n", g.SoftAffinity) + } + // xl create -p [filename] { -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |