All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jürgen Groß" <jgross@suse.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	xen-devel@lists.xenproject.org,
	Dario Faggioli <dfaggioli@suse.com>
Subject: Re: [Xen-devel] [PATCH v2] xen/sched: add some diagnostic info in the run queue keyhandler
Date: Tue, 11 Feb 2020 14:10:55 +0100	[thread overview]
Message-ID: <54c6223a-4ca5-40d2-d377-b7ec8eb19eb0@suse.com> (raw)
In-Reply-To: <ab86650e-62b2-9967-c88d-3e0fc50bba11@suse.com>

On 11.02.20 14:01, Jan Beulich wrote:
> On 11.02.2020 13:27, Juergen Gross wrote:
>> When dumping the run queue information add some more data regarding
>> current and (if known) previous vcpu for each physical cpu.
>>
>> With core scheduling activated the printed data will be e.g.:
>>
>> (XEN) CPUs info:
>> (XEN) CPU[00] current=d[IDLE]v0, curr=d[IDLE]v0, prev=NULL
>> (XEN) CPU[01] current=d[IDLE]v1
>> (XEN) CPU[02] current=d[IDLE]v2, curr=d[IDLE]v2, prev=NULL
>> (XEN) CPU[03] current=d[IDLE]v3
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> ---
>> V2: add proper locking
> 
> "Proper" is ambiguous in the context of dumping functions. In a
> number of places we use try-lock, to avoid the dumping hanging
> on something else monopolizing the lock. I'd like to suggest to
> do so here, too.

All the scheduler related dumping functions are using the "real" locks.
So using trylock in this single case wouldn't help at all. Additionally
using trylock only would make a crash during dumping the data more
probable, so I'm not sure we want that.

Instead of unconditionally using trylock in dumping functions I could
imagine to have a "dumplock" using proper locking by default which can
be toggled to trylock in case it is needed (or maybe automatically by
adding a timeout to the dumplock variant).


Juergen

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

  reply	other threads:[~2020-02-11 13:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-11 12:27 [Xen-devel] [PATCH v2] xen/sched: add some diagnostic info in the run queue keyhandler Juergen Gross
2020-02-11 13:01 ` Jan Beulich
2020-02-11 13:10   ` Jürgen Groß [this message]
2020-02-11 16:46     ` Jan Beulich
2020-02-11 16:54       ` Jürgen Groß
2020-02-11 17:04         ` Jan Beulich
2020-02-20  9:57 ` 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=54c6223a-4ca5-40d2-d377-b7ec8eb19eb0@suse.com \
    --to=jgross@suse.com \
    --cc=dfaggioli@suse.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xenproject.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.