From: "Abhishek Sagar" <sagar.abhishek@gmail.com>
To: "Srinivasa DS" <srinivasa@in.ibm.com>
Cc: "Jim Keniston" <jkenisto@us.ibm.com>,
linux-kernel@vger.kernel.org,
"Andrew Morton" <akpm@linux-foundation.org>,
"Ananth Mavinakayanahalli" <ananth@in.ibm.com>,
"Masami Hiramatsu" <mhiramat@redhat.com>,
"Srikar Dronamraju" <srikar@linux.vnet.ibm.com>
Subject: Re: [RFC] [PATCH] To improve kretprobe scalability
Date: Thu, 22 May 2008 17:46:19 +0530 [thread overview]
Message-ID: <863e9df20805220516x7e6cd4ecvc4e88e2d4ec62ed@mail.gmail.com> (raw)
In-Reply-To: <483531DA.8030203@in.ibm.com>
On 5/22/08, Srinivasa DS <srinivasa@in.ibm.com> wrote:
> There were ideas of storing kretprobe instances in task_struct to get rid
> of locking, but that would require extending task_struct
Wouldn't chaining of return instances in task_struct only increase its
size by sizeof(struct list_head) bytes?
> and catching each task exit, destroying its kretprobe instances.
Which is kind of stil done by (...or at least we have a precendent of
this issue's awareness) kprobe_flush_task().
> This makes code more invasive.
Ok.
> But in this implementation (global hash table, hashed by task), we
> lock only the current task's hash bucket and hence we have fairly low
> contention.
I may be underestimating the complexity of having returns instances
associated with current task_struct, but anything else seems counter
intuitive. There might be more possibilites to exploit the fact that
functions instances are per-task.
A step in the right direction nevertheless :-)
> Thanks
> Srinivasa DS
--
Regards,
Abhishek Sagar
prev parent reply other threads:[~2008-05-22 12:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 1:02 [RFC] [PATCH] To improve kretprobe scalability Srinivasa D S
2008-05-21 23:32 ` Andrew Morton
2008-05-22 8:26 ` Srinivasa D S
2008-05-27 8:22 ` Ananth N Mavinakayanahalli
2008-05-22 7:07 ` Abhishek Sagar
2008-05-22 8:42 ` Srinivasa DS
2008-05-22 12:16 ` Abhishek Sagar [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=863e9df20805220516x7e6cd4ecvc4e88e2d4ec62ed@mail.gmail.com \
--to=sagar.abhishek@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ananth@in.ibm.com \
--cc=jkenisto@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@redhat.com \
--cc=srikar@linux.vnet.ibm.com \
--cc=srinivasa@in.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox