All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <George.Dunlap@eu.citrix.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: "Lu, Guanqun" <guanqun.lu@intel.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [RFC][PATCH] eliminate extra tb_init_done check
Date: Wed, 15 Oct 2008 16:54:53 +0100	[thread overview]
Message-ID: <48F6124D.5020604@eu.citrix.com> (raw)
In-Reply-To: <C51B57A7.1E2C8%keir.fraser@eu.citrix.com>

Well, I just tested ddk-build running inside a w2k3 box.  This normally
touches a lot of shadow code, which has a lot of tracing in it.

For each configuration, I ran the build once to warm up the disk cache,
then three more times for actual testing.


No patch: 156s, 161s, 156s
Patch:    161s, 156s, 156s

So I'm not seeing a big impact from this change.

Personally, I think I'd leave it as-is, because I don't like the idea of
marshalling all that code and then not doing anything, but I think
that's just a taste thing at this point. :-)

 -George

Keir Fraser wrote:
> On 15/10/08 07:20, "Lu, Guanqun" <guanqun.lu@intel.com> wrote:
> 
>> Two corner conditions are left untouched. One is the assembly in entry.S,
>> the other is the check of tb_init_done not immediately followed by
>> __trace_var.
>>
>> Or more aggressively, we can eliminate all the extra checks, make tb_init_done
>> a static variable, and rename __trace_var to trace_var which looks more like
>> a right interface name.
> 
> The macros check tb_init_done before calling __trace_var() to try and reduce
> the cost of the common case (tracing disabled) as far as possible. Hence we
> avoid a function call and computation of some arguments to that function.
> 
> I don't know if we've actually measured teh performance win from this. If we
> have, George would know about it.
> 
>  -- Keir
> 
> 

      reply	other threads:[~2008-10-15 15:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15  6:20 [RFC][PATCH] eliminate extra tb_init_done check Lu, Guanqun
2008-10-15  7:17 ` Keir Fraser
2008-10-15 15:54   ` George Dunlap [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=48F6124D.5020604@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=guanqun.lu@intel.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.