All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Olaf Hering <olaf@aepfle.de>,
	George Dunlap <george.dunlap@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Julien Grall <julien.grall@citrix.com>
Subject: Re: [PATCH v5 2/8] xenalyze: increase NR_CPUS to 256
Date: Mon, 15 Jun 2015 18:19:21 +0100	[thread overview]
Message-ID: <557F0919.6020909@citrix.com> (raw)
In-Reply-To: <20150615161451.GA29475@aepfle.de>

On 15/06/15 17:14, Olaf Hering wrote:
> On Thu, Jun 11, George Dunlap wrote:
>
>> On 06/11/2015 12:03 PM, Julien Grall wrote:
>>> I would suggest some refactoring to remove NR_CPUS and associated code
>>> in order to avoid mis-usage later.
>>>
>>> Also, cpu_mask_t is a uint32_t, is it intentional?
>> When xenalyze was originally written back in 2006, I think that's
>> probably how it was defined in Xen.  I just haven't used it on a system
>> with more than 32 cpus. :-)
>>
>> That certainly should be addressed at some point.  I'd be in favor of
>> checking this in and fixing it up later; or, for the time being, just
>> disabling the skew detection functionality (which is the only place that
>> uses it, AFAICT).
> Today I looked at this part:
>
> In v6 I have added a patch to remove cpumask_t. Now I see xenalyze.c has
> a cpu_mask_t with just 32 bits. Easy change would be to change that to
> uin64_t.
>
> To really support MAX_CPUS the code can either include
> xen/include/xen/cpumask.h, or just the few required functions can be
> pasted into xenalyze.c.
>
> What do you prefer?

In an ideal world, userspace tools like this should not really be tied
to NR_CPUS or MAX_CPUS.  They should get max_cpu_id from Xen and
dynamically allocate a bitmap of sufficient size.

Whether this is a yak worth shaving now is a different matter.

~Andrew

  reply	other threads:[~2015-06-15 17:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09 11:23 [PATCH v5 0/8] add xenalyze to staging Olaf Hering
2015-06-09 11:23 ` [PATCH v5 1/8] xenalyze: add to tools/xentrace/ Olaf Hering
2015-06-11 15:23   ` George Dunlap
2015-06-11 16:04     ` Olaf Hering
2015-06-09 11:23 ` [PATCH v5 2/8] xenalyze: increase NR_CPUS to 256 Olaf Hering
2015-06-10 20:29   ` Julien Grall
2015-06-11  6:12     ` Olaf Hering
2015-06-11 11:03       ` Julien Grall
2015-06-11 14:35         ` George Dunlap
2015-06-15 16:14           ` Olaf Hering
2015-06-15 17:19             ` Andrew Cooper [this message]
2015-06-15 17:58               ` Olaf Hering
2015-06-16  8:33                 ` Ian Campbell
2015-06-16  8:35                   ` Olaf Hering
2015-06-09 11:23 ` [PATCH v5 3/8] xenalyze: print newline after unknown hvm events Olaf Hering
2015-06-09 11:23 ` [PATCH v5 4/8] xenalyze: include odd mmio states in default output Olaf Hering
2015-06-09 11:23 ` [PATCH v5 5/8] xenalyze: handle TRC_TRACE_WRAP_BUFFER Olaf Hering
2015-06-09 11:23 ` [PATCH v5 6/8] xenalyze: handle more events in sched_process Olaf Hering
2015-06-09 11:23 ` [PATCH v5 7/8] xenalyze: remove trailing whitespaces Olaf Hering
2015-06-09 11:23 ` [PATCH v5 8/8] xenalyze: remove argp_program_version Olaf Hering

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=557F0919.6020909@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@citrix.com \
    --cc=olaf@aepfle.de \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.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.