Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun <skaplun@tarantool.org>
To: Igor Munkin <imun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [RFC v4] rfc: luajit metrics
Date: Fri, 9 Oct 2020 09:06:56 +0300	[thread overview]
Message-ID: <20201009060656.GA11255@root> (raw)
In-Reply-To: <20201008202613.GW18920@tarantool.org>

Igor,

On 08.10.20, Igor Munkin wrote:
> Sergey,
> 
> Thanks, the RFC LGTM in general now, but please consider the last minor
> comments below.
> 
> On 08.10.20, Sergey Kaplun wrote:
> > Hi, Igor! Thanks for the review!
> > 
> > On 08.10.20, Igor Munkin wrote:
> > > Sergey,
> > > 
> 
> <snipped>
> 
> > > 
> > > Minor: ChangeLog is misordered (the latest changes are the first entry).
> > 
> > Thanks!
> > 
> > Forgot to add ChangeLog to patch:
> > @ChangeLog:
> >  * Add Lua and C API for LuaJIT platform metrics about:
> >    - overall amount of allocated tables, cdata and udata objects
> >    - number of incremental GC steps grouped by GC state
> >    - number of string hashes hits and misses
> >    - amount of allocated and freed memory
> >    - number of trace aborts, number of traces and restored snapshots
> 
> The related issue should be also mentioned here.

Removed bullets as we had discussed offline.

@ChangeLog:
 * Introduced LuaJIT platform metrics (gh-5187).

> 
> > 
> > > 
> > > > 
> > > >  doc/rfc/5187-luajit-metrics.md | 299 +++++++++++++++++++++++++++++++++
> > > >  1 file changed, 299 insertions(+)
> > > >  create mode 100644 doc/rfc/5187-luajit-metrics.md
> > > > 
> > > > diff --git a/doc/rfc/5187-luajit-metrics.md b/doc/rfc/5187-luajit-metrics.md
> > > > new file mode 100644
> > > > index 000000000..02f5b559f
> > > > --- /dev/null
> > > > +++ b/doc/rfc/5187-luajit-metrics.md
> > > > @@ -0,0 +1,299 @@
> > > 
> 
> <snipped>
> 
> > 
> > > 
> > > > +- `jit_mcode_size` -- whenever new MCode area is allocated `jit_mcode_size` is
> > > > +  increased at corresponding size in bytes. Sets to 0 when all mcode area is
> > > > +  freed.
> > > 
> > > How does it change, when a trace is collected as a result of its flush?
> > 
> > It doesn't. IINM, this area will be reused later for other traces.
> > MCode area is linked with jit_State not with trace by itself. Trace just
> > reserve MCode area that needed.
> 
> I guess this should be explicitly mentioned here then.

OK, added. See iterative patch in the bottom. Branch force-pushed.

> 
> > 
> 
> <snipped>
> 
> > 
> > -- 
> > Best regards,
> > Sergey Kaplun
> 
> -- 
> Best regards,
> IM

===================================================================
diff --git a/doc/rfc/5187-luajit-metrics.md b/doc/rfc/5187-luajit-metrics.md
index 0c1df6901..db9ec7ee7 100644
--- a/doc/rfc/5187-luajit-metrics.md
+++ b/doc/rfc/5187-luajit-metrics.md
@@ -108,7 +108,9 @@ Couple of words about how metrics are collected:
   BC or builtins this counter is incremented.
 - `jit_mcode_size` -- whenever new MCode area is allocated `jit_mcode_size` is
   increased at corresponding size in bytes. Sets to 0 when all mcode area is
-  freed.
+  freed. When a trace is collected by GC this value doesn't change. This area
+  will be reused later for other traces. MCode area is linked with `jit_State`
+  not with trace by itself. Traces just reserve MCode area that needed.
 
 All metrics are collected throughout the platform uptime. These metrics
 increase monotonically and can overflow:
===================================================================

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2020-10-09  6:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-05  6:30 [Tarantool-patches] [PATCH v4 0/2] Implement LuaJIT platform metrics Sergey Kaplun
2020-10-05  6:30 ` [Tarantool-patches] [PATCH v4 1/2] core: introduce various " Sergey Kaplun
2020-10-07 14:11   ` Igor Munkin
2020-10-07 19:55     ` Sergey Kaplun
2020-10-07 20:16       ` Igor Munkin
2020-10-08  9:28         ` Igor Munkin
2020-10-08 10:11         ` Sergey Kaplun
2020-10-08 12:44           ` Igor Munkin
2020-10-09 14:39             ` Sergey Ostanevich
2020-10-05  6:30 ` [Tarantool-patches] [PATCH v4 2/2] misc: add C and Lua API for " Sergey Kaplun
2020-10-06 22:17   ` Igor Munkin
2020-10-07  5:57     ` Igor Munkin
2020-10-07 14:35     ` Sergey Kaplun
2020-10-07 18:23       ` Igor Munkin
2020-10-07 20:09         ` Sergey Kaplun
2020-10-09 14:45   ` Sergey Ostanevich
2020-10-13  6:01     ` Sergey Kaplun
2020-10-05  6:30 ` [Tarantool-patches] [RFC v4] rfc: luajit metrics Sergey Kaplun
2020-10-07 14:46   ` Sergey Kaplun
2020-10-08 17:25   ` Igor Munkin
2020-10-08 19:29     ` Sergey Kaplun
2020-10-08 20:26       ` Igor Munkin
2020-10-09  6:06         ` Sergey Kaplun [this message]
2020-12-22  9:07   ` Kirill Yukhin
2020-10-08 17:33 ` [Tarantool-patches] [PATCH v4 0/2] Implement LuaJIT platform metrics Igor Munkin
2020-10-13 13:17 ` Kirill Yukhin

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=20201009060656.GA11255@root \
    --to=skaplun@tarantool.org \
    --cc=imun@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [RFC v4] rfc: luajit metrics' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox