Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330017

Re: [PATCH RESEND] kprobe: Use percpu counter to collect nhit statistics

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH RESEND] kprobe: Use percpu counter to collect nhit statistics
Date 2016-02-09 11:10 +0100
Message-ID <r0dp8-2Ab-3@gated-at.bofh.it> (permalink)
References <qYcdQ-6IA-17@gated-at.bofh.it> <qYpkL-7ir-29@gated-at.bofh.it> <qYs8W-Kq-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Steven Rostedt <rostedt@goodmis.org> wrote:

> On Thu, 4 Feb 2016 10:24:12 +0000
> 平松雅巳 / HIRAMATU,MASAMI <masami.hiramatsu.pt@hitachi.com> wrote:
> 
> > From: Martin KaFai Lau [mailto:kafai@fb.com]
> > >
> > >When doing ebpf+kprobe on some hot TCP functions (e.g.
> > >tcp_rcv_established), the kprobe_dispatcher shows up in 'perf report'.
> > >
> > >In kprobe_dispatcher(), there is a lot of cache bouncing
> > >in 'tk->nhit++'.  'tk->nhit' and 'tk->tp.flags' also share
> > >the same cacheline.
> > >  
> > 
> > Ingo, could you consider to merge this?
> > 
> 
> Ingo, you can also add my
> 
>  Acked-by: Steven Rostedt <rostedt@goodmis.org>

Yeah, nice optimization, picked it up - thanks guys!

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RESEND] kprobe: Use percpu counter to collect nhit statistics Martin KaFai Lau <kafai@fb.com> - 2016-02-03 21:30 +0100
  RE: [PATCH RESEND] kprobe: Use percpu counter to collect nhit  statistics 平松雅巳 / HIRAMATU,MASAMI   <masami.hiramatsu.pt@hitachi.com> - 2016-02-04 11:30 +0100
    Re: [PATCH RESEND] kprobe: Use percpu counter to collect nhit  statistics Steven Rostedt <rostedt@goodmis.org> - 2016-02-04 14:30 +0100
      Re: [PATCH RESEND] kprobe: Use percpu counter to collect nhit  statistics Ingo Molnar <mingo@kernel.org> - 2016-02-09 11:10 +0100
  [tip:perf/core] kprobes:   Optimize hot path by using percpu counter to collect 'nhit' statistics tip-bot for Martin KaFai Lau <tipbot@zytor.com> - 2016-02-09 13:30 +0100

csiph-web