All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dfaggioli@suse.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: George Dunlap <george.dunlap@citrix.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: crash in csched_load_balance after xl vcpu-pin
Date: Wed, 11 Apr 2018 10:42:09 +0200	[thread overview]
Message-ID: <c730538a94b5de4b83aa76883fa050abd5737b94.camel@suse.com> (raw)
In-Reply-To: <20180411062306.GG7177@aepfle.de>


[-- Attachment #1.1: Type: text/plain, Size: 3203 bytes --]

On Wed, 2018-04-11 at 08:23 +0200, Olaf Hering wrote:
> It turned out that I had a typo all the time in my template, it used
> 'cpu=' rather than 'cpus='. On this system none of this works:
> #pus="node:${node}"
> cpus="nodes:${node}"
> #pus="nodes:${node},^node:0"
> #pus_soft="nodes:${node},^node:0"
> 
> Only 'cpus=node:1' or 'cpus=nodes:1' works, cpus=node:2 or node:3
> does
> not.
> There is room for domUs:
> numa_info              :
> node:    memsize    memfree    distances
>    0:     30720       1912      10,21,21,21
>    1:     28672      22355      21,10,21,21
>    2:     24576      24502      21,21,10,21
>    3:     32768      31760      21,21,21,10
> 
So, now, when you say 'does not work', do you mean 'domain creation is
aborted with errors' or 'domain is created, but memory is not where it
should be'.

IAC, here, when using `xl vcpu-pin':

root@Zhaman:/home/dario# xl vcpu-pin 1 all node:0-1,^nodes:0,4-7,^5
root@Zhaman:/home/dario# xl vcpu-list 1
Name                                ID  VCPU   CPU State   Time(s) Affinity (Hard / Soft)
leap15                               1     0   14   -b-      15.5  4,6-15 / all
leap15                               1     1   11   -b-       4.7  4,6-15 / all
leap15                               1     2   12   -b-       4.6  4,6-15 / all
leap15                               1     3   14   -b-       4.3  4,6-15 / all
leap15                               1     4   14   -b-       5.8  4,6-15 / all
leap15                               1     5    8   -b-       4.5  4,6-15 / all
leap15                               1     6   10   -b-       4.3  4,6-15 / all
leap15                               1     7    9   -b-       3.7  4,6-15 / all

If I shut the domain down, and re-create it with cpus="..." and
cpus_soft="...":

root@Zhaman:/home/dario# cat vms/hvm/leap15.cfg |grep -e "cpus[=|_]"
cpus="node:0,^4-6,nodes:1,^12,^14"
cpus_soft="nodes:0,^node:1"
root@Zhaman:/home/dario# xl vcpu-list 2
Name                                ID  VCPU   CPU State   Time(s) Affinity (Hard / Soft)
leap15                               2     0   13   -b-      17.3  0-3,7-11,13,15 / 0-7
leap15                               2     1    7   -b-       7.4  0-3,7-11,13,15 / 0-7
leap15                               2     2    0   -b-       6.0  0-3,7-11,13,15 / 0-7
leap15                               2     3    2   -b-       7.9  0-3,7-11,13,15 / 0-7

And from `xl debug-key u':
(XEN) [ 3841.835310] Domain 2 (total: 1044554):
(XEN) [ 3841.844555]     Node 0: 1044554
(XEN) [ 3841.844559]     Node 1: 0

which is fine, because soft-affinity is used, if it is explicitly specified.

So, I'd say that all seems to work fine, even using nodes and then only
a single digit, or using node and then a range. And also doing all the
various set manipulations, like "nodes:0,^node:1".

I really am not sure what the issue could be, there at your side...

Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Software Engineer @ SUSE https://www.suse.com/

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-04-11  8:42 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10  8:57 crash in csched_load_balance after xl vcpu-pin Olaf Hering
2018-04-10  9:34 ` George Dunlap
2018-04-10 10:33   ` Dario Faggioli
2018-04-10 10:59     ` George Dunlap
2018-04-10 11:29       ` Dario Faggioli
2018-04-10 15:25         ` George Dunlap
2018-04-10 15:36           ` Dario Faggioli
     [not found]           ` <960702b6d9dfb67bfae72ae02ae502210695416b.camel@suse.com>
2018-04-10 20:37             ` Olaf Hering
2018-04-10 22:59               ` Dario Faggioli
2018-04-11  7:31                 ` Dario Faggioli
2018-04-11  7:39                   ` Juergen Gross
2018-04-11  7:42                     ` Dario Faggioli
2018-04-11 10:00                   ` Olaf Hering
     [not found]                     ` <298ec681a9c38eb7618e6b3e226486691e9eab4d.camel@suse.com>
2018-04-11 11:02                       ` George Dunlap
2018-04-11 12:31                         ` Jan Beulich
2018-04-11 15:03                     ` Olaf Hering
2018-04-11 15:27                       ` Olaf Hering
2018-04-11 17:20                         ` Dario Faggioli
2018-04-11 20:43                           ` Olaf Hering
2018-04-11 21:31                             ` Dario Faggioli
     [not found]                               ` <5ACE29E00200005B03782666@prv1-mh.provo.novell.com>
     [not found]                                 ` <5ACE443D020000E603784221@prv1-mh.provo.novell.com>
     [not found]                                   ` <5ACE73C402000076046FD1E0@prv1-mh.provo.novell.com>
     [not found]                                     ` <5ACE7F370200002F0378782F@prv1-mh.provo.novell.com>
2018-04-12  7:18                                       ` Jan Beulich
2018-04-12  9:38                               ` George Dunlap
2018-04-12 10:16                                 ` Dario Faggioli
2018-04-12 12:45                                   ` Olaf Hering
2018-04-12 13:15                                     ` Dario Faggioli
2018-04-12 15:38                                       ` Dario Faggioli
2018-04-12 17:25                                         ` Dario Faggioli
2018-04-13  6:23                                           ` Olaf Hering
2018-04-13  9:01                                             ` Dario Faggioli
2018-04-13  9:03                                           ` George Dunlap
2018-04-13  9:25                                             ` Dario Faggioli
2018-04-13 10:38                                               ` Olaf Hering
2018-04-13 11:29                                               ` George Dunlap
2018-04-13 11:41                                                 ` Dario Faggioli
2018-04-13 10:47                                             ` Dario Faggioli
     [not found]                       ` <5ACE23DF0200002D03781F6A@prv1-mh.provo.novell.com>
2018-04-11 15:38                         ` Jan Beulich
2018-04-11 15:48                           ` Olaf Hering
     [not found]                 ` <9c857d1a-d592-8db5-827c-30fbc97477e0@citrix.com>
2018-04-11 11:00                   ` Dario Faggioli
2018-04-10 11:30       ` Dario Faggioli
2018-04-10 11:31       ` Dario Faggioli
2018-04-10 11:32       ` Dario Faggioli
2018-04-10 11:33       ` Dario Faggioli
2018-04-10 15:18 ` Olaf Hering
2018-04-10 15:29   ` George Dunlap
2018-04-10 15:59 ` Olaf Hering
2018-04-10 16:28   ` Dario Faggioli
2018-04-10 19:03     ` Olaf Hering
2018-04-10 20:02       ` Dario Faggioli
2018-04-10 20:09         ` Olaf Hering
2018-04-10 20:13           ` Olaf Hering
2018-04-10 20:41             ` Dario Faggioli
2018-04-11  6:23               ` Olaf Hering
2018-04-11  8:42                 ` Dario Faggioli [this message]
2018-04-11  8:48                   ` Olaf Hering
2018-04-11 10:20                     ` Dario Faggioli
2018-04-11 12:45                       ` Olaf Hering
2018-04-17 12:39                         ` Dario Faggioli
2018-04-11 10:20                     ` Dario Faggioli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c730538a94b5de4b83aa76883fa050abd5737b94.camel@suse.com \
    --to=dfaggioli@suse.com \
    --cc=george.dunlap@citrix.com \
    --cc=olaf@aepfle.de \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.