From: Pedro Alves <pedro@codesourcery.com>
To: Vyacheslav Egorov <vegorov@chromium.org>
Cc: gdb@sourceware.org
Subject: Re: JIT interface slowness
Date: Fri, 31 Dec 2010 23:36:00 -0000 [thread overview]
Message-ID: <201012312336.08222.pedro@codesourcery.com> (raw)
In-Reply-To: <AANLkTimp_X92h4uXAS3fm=BSLSej-pD69Tkk=TowzYp_@mail.gmail.com>
On Friday 31 December 2010 23:11:55, Vyacheslav Egorov wrote:
> > If your JIT runs on a separate thread, and pausing just that
> > thread doesn't block all others immediately, you could try
> > running gdb in non-stop mode.
> >
>
> I thought you said that hitting __jit_debug_register_code stops the
> world i.e. stops all threads.
I did, and it does, in all-stop mode, which is the gdb default
mode. There's a new-ish mode (called the non-stop mode), where
gdb does _not_ stop all your threads whenever a breakpoint is
hit --- only the particular thread that hit the breakpoint.
(There's a chapter about it in the manual). Not all your users
will want to enable this mode. And most frontends don't know
about it either, so, it's not really a "fix" for everyone, I
guess.
> > What was the cost for a first registrations?
>
> Up to 88 it is < 2ms
> Up to 276 --- < 10ms
> Up to 535 --- < 50ms
> registered new entry, total 1115 entries [took 333 ms]
> registered new entry, total 1116 entries [took 334 ms]
> registered new entry, total 1117 entries [took 335 ms]
> registered new entry, total 1118 entries [took 336 ms]
It would be quite interesting to know what causes this.
You should also try a recent snapshot (or cvs head), and
7.2, if you aren't already.
--
Pedro Alves
next prev parent reply other threads:[~2010-12-31 23:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-31 19:43 Vyacheslav Egorov
2010-12-31 20:10 ` Pedro Alves
2010-12-31 21:39 ` Vyacheslav Egorov
2010-12-31 22:23 ` Pedro Alves
2010-12-31 23:12 ` Vyacheslav Egorov
2010-12-31 23:36 ` Pedro Alves [this message]
2011-01-02 7:54 ` Paul Pluzhnikov
2011-01-03 10:44 ` Vyacheslav Egorov
2011-01-03 17:32 ` Paul Pluzhnikov
2011-01-03 22:01 ` Paul Pluzhnikov
2011-01-03 23:32 ` Pedro Alves
2011-01-03 23:40 ` Pedro Alves
2011-01-03 23:47 ` Paul Pluzhnikov
2011-01-04 0:13 ` Pedro Alves
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=201012312336.08222.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=vegorov@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox