From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Matt Wilson <msw@linux.com>,
Dario Faggioli <dario.faggioli@citrix.com>,
Li Yechen <lccycc123@gmail.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Elena Ufimtseva <ufimtseva@gmail.com>
Subject: Re: [PATCH RFC v2 7/7] xen/vNUMA: adds vNUMA to NUMA debug-key
Date: Fri, 27 Sep 2013 13:05:51 -0400 [thread overview]
Message-ID: <20130927170551.GB11397@phenom.dumpdata.com> (raw)
In-Reply-To: <CAFLBxZbc3KxAadSxxHmWTC4uQM__pSMzbKPkCWSctJ4b6R8q+g@mail.gmail.com>
On Thu, Sep 19, 2013 at 03:38:29PM +0100, George Dunlap wrote:
> On Fri, Sep 13, 2013 at 9:50 AM, Elena Ufimtseva <ufimtseva@gmail.com> wrote:
> > Prints basic information about vNUMA topology
> > for vNUMA enabled domains when issuing debug-key 'u'.
> >
> > Signed-off-by: Elena Ufimtseva <ufimtseva@gmail.com>
> > ---
> > xen/arch/x86/numa.c | 23 ++++++++++++++++++++++-
> > 1 file changed, 22 insertions(+), 1 deletion(-)
> >
> > diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c
> > index b141877..7980e54 100644
> > --- a/xen/arch/x86/numa.c
> > +++ b/xen/arch/x86/numa.c
> > @@ -347,7 +347,7 @@ EXPORT_SYMBOL(node_data);
> > static void dump_numa(unsigned char key)
> > {
> > s_time_t now = NOW();
> > - int i;
> > + int i, j;
> > struct domain *d;
> > struct page_info *page;
> > unsigned int page_num_node[MAX_NUMNODES];
> > @@ -389,6 +389,27 @@ static void dump_numa(unsigned char key)
> >
> > for_each_online_node(i)
> > printk(" Node %u: %u\n", i, page_num_node[i]);
>
> Blank line
>
> > + if(d->vnuma.nr_vnodes > 0)
I think you need a space there between the 'if' and '('..
> > + {
> > + printk(" Domain has %d vnodes\n", d->vnuma.nr_vnodes);
>
> Blank line, &c
>
> > + for_each_online_node(i)
> > + {
> > +
>
> Remove this blank line. :-)
>
> > + printk(" pnode %d: vnodes: ", i);
> > + for(j = 0; j < d->vnuma.nr_vnodes; j++) {
> > + if (d->vnuma.vnode_to_pnode[j] == i)
> > + printk("%d (%Lu), ", j, (unsigned long long)
> > + (d->vnuma.vnuma_memblks[j].end -
> > + d->vnuma.vnuma_memblks[j].start)
> > + >> 20);
>
> I think here it probable makes sense to be more vnuma-centric rather
> than pnuma centric: Rather than print the vnodes sorted by pnodes,
> just print the vnodes and print the pnode associated with it. That
> gets rid of the need for the extra nest of the loop.
>
> Other than that (and the blank lines) it looks good.
>
> -George
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
prev parent reply other threads:[~2013-09-27 17:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 8:50 [PATCH RFC v2 7/7] xen/vNUMA: adds vNUMA to NUMA debug-key Elena Ufimtseva
2013-09-19 14:38 ` George Dunlap
2013-09-27 17:05 ` Konrad Rzeszutek Wilk [this message]
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=20130927170551.GB11397@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=dario.faggioli@citrix.com \
--cc=lccycc123@gmail.com \
--cc=msw@linux.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=ufimtseva@gmail.com \
--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.