login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
27
Re: [RFC] [PATCH] To improve kretprobe scalability
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Ananth N Mavinakayanahalli <ananth@...>
To: Srinivasa D S <srinivasa@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <mhiramat@...>, <jkenisto@...>, <srikar@...>
Subject:
Re: [RFC] [PATCH] To improve kretprobe scalability
Date: Tuesday, May 27, 2008 - 4:22 am
On Thu, May 22, 2008 at 01:56:39PM +0530, Srinivasa D S wrote:
quoted text
> On Thursday 22 May 2008 05:02:35 am Andrew Morton wrote: > > On Wed, 21 May 2008 06:32:17 +0530 > > > > Srinivasa D S <srinivasa@in.ibm.com> wrote:
...
quoted text
> Resending the patch, Again > > > Currently list of kretprobe instances are stored in kretprobe object (as > used_instances,free_instances) and in kretprobe hash table. We have one > global kretprobe lock to serialise the access to these lists. This causes > only one kretprobe handler to execute at a time. Hence affects system > performance, particularly on SMP systems and when return probe is set on > lot of functions (like on all systemcalls). > > Solution proposed here gives fine-grain locks that performs better on SMP > system compared to present kretprobe implementation. > > Solution: > 1) Instead of having one global lock to protect kretprobe instances > present > in kretprobe object and kretprobe hash table. We will have two locks, one lock > for protecting kretprobe hash table and another lock for kretporbe object. > > 2) We hold lock present in kretprobe object while we modify kretprobe > instance in > kretprobe object and we hold per-hash-list lock while modifying kretprobe > instances > present in that hash list. To prevent deadlock, we never grab a per-hash-list > lock while holding a kretprobe lock. > > 3) We can remove used_instances from struct kretprobe, as we can track used > instances of kretprobe instances using kretprobe hash table. > > Time duration for kernel compilation ("make -j 8") on a 8-way ppc64 system > with return probes set on all systemcalls looks like this. > > cacheline non-cacheline Un-patched kernel > aligned patch aligned patch > =============================================================================== > real 9m46.784s 9m54.412s 10m2.450s > user 40m5.715s 40m7.142s 40m4.273s > sys 2m57.754s 2m58.583s 3m17.430s > =========================================================== > > Time duration for kernel compilation ("make -j 8) on the same system, when > kernel is not probed. > ========================= > real 9m26.389s > user 40m8.775s > sys 2m7.283s > ========================= > > Please let me know your comments on the patch attached here. > > Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com> > Signed-off-by: Jim Keniston <jkenisto@us.ibm.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[RFC] [PATCH] To improve kretprobe scalability
, Srinivasa D S
, (Tue May 20, 9:02 pm)
Re: [RFC] [PATCH] To improve kretprobe scalability
, Abhishek Sagar
, (Thu May 22, 3:07 am)
Re: [RFC] [PATCH] To improve kretprobe scalability
, Srinivasa DS
, (Thu May 22, 4:42 am)
Re: [RFC] [PATCH] To improve kretprobe scalability
, Abhishek Sagar
, (Thu May 22, 8:16 am)
Re: [RFC] [PATCH] To improve kretprobe scalability
, Andrew Morton
, (Wed May 21, 7:32 pm)
Re: [RFC] [PATCH] To improve kretprobe scalability
, Srinivasa D S
, (Thu May 22, 4:26 am)
Re: [RFC] [PATCH] To improve kretprobe scalability
, Ananth N Mavinakayanahalli...
, (Tue May 27, 4:22 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: containers (was Re: -mm merge plans for 2.6.23)
Greg Kroah-Hartman
[PATCH 009/196] Chinese: add translation of sparse.txt
holzheu
Re: [RFC/PATCH] Documentation of kernel messages
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Antonio Almeida
HTB accuracy for high speed
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
610 guests
online.
Online users
strcmp
pinnglee1
jcadam
finethymes1
Syndicate