Re: [PATCH 0/4] add task handling notifier

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Hellwig <hch@...>
Cc: Jan Beulich <jbeulich@...>, <linux-kernel@...>, <pagg@...>, <erikj@...>, <pj@...>
Date: Tuesday, January 8, 2008 - 10:24 pm

On Sun, 2007-12-23 at 12:26 +0000, Christoph Hellwig wrote:

Apologies for the late reply -- I haven't had internet access for the
last few weeks.


Yeah. Some discussion on measuring the performance of Task Watchers:
http://thread.gmane.org/gmane.linux.lse/4698

The requirements for Task Watchers were:

Allow sleeping in most/all notifier functions in these paths:
	fork
	exec
	exit
	change [re][ug]id
No performance overhead
One "chain" per path ("I only care about exec().")
Easy to use
Scales to large numbers of CPUs
Useful to make most in-tree code more readable. Task Watchers took
direct calls to these pieces of code out of the fork/exec/exit paths:
	audit
	semundo
	cpusets
	mempolicy
	trace irqflags
	lockdep
	keys (for processes -- not for thread groups)
	process events connector
Useful for loadable modules

Performance overhead in microbenchmarks was measurable at around 1% (see
the URL above). Overhead on benchmarks like kernbench on the other hand
were in the noise margins (which were around 1.6%) and hence I couldn't
determine the overhead there.

I never got the loadable module part completely working due to races
between notifier functions and the module unload path. The solution to
the races seemed to require adding more overhead to the notifier
function paths (SRCU-like grace periods).

I stopped pushing the patch set because I hadn't found any new
optimizations to offset the overheads while still meeting all the
requirements and Andrew still felt that the "make it more readable"
argument was not sufficient to justify its inclusion.

Jan, instead of adding notifiers could utrace be used or made to work
for modules? Also, please add me to the Cc list for any reposts of the
entire series. Thanks!

Cheers,
	-Matt Helsley

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] add task handling notifier, Jan Beulich, (Thu Dec 20, 9:11 am)
Re: [PATCH 0/4] add task handling notifier, Christoph Hellwig, (Sun Dec 23, 8:26 am)
Re: [PATCH 0/4] add task handling notifier, Matt Helsley, (Tue Jan 8, 10:24 pm)
Re: [PATCH 0/4] add task handling notifier, Matthew Helsley, (Tue Jan 8, 11:27 pm)
Re: [PATCH 0/4] add task handling notifier, Andrew Morton, (Tue Dec 25, 6:05 pm)
Re: [PATCH 0/4] add task handling notifier, Jan Beulich, (Tue Jan 8, 9:38 am)
Re: [PATCH 0/4] add task handling notifier, Andrew Morton, (Tue Jan 8, 6:14 pm)
Re: [PATCH 0/4] add task handling notifier, Jan Beulich, (Wed Jan 9, 5:52 am)
Re: [PATCH 0/4] add task handling notifier, Christoph Hellwig, (Wed Jan 9, 6:03 am)
Re: [PATCH 0/4] add task handling notifier, Matt Helsley, (Tue Jan 8, 10:47 pm)
Re: [PATCH 0/4] add task handling notifier, Andrew Morton, (Tue Jan 8, 11:22 pm)
Re: [PATCH 0/4] add task handling notifier, Paul Jackson, (Tue Jan 8, 8:03 pm)
Re: [PATCH 0/4] add task handling notifier, Andrew Morton, (Tue Jan 8, 8:31 pm)
Re: [PATCH 0/4] add task handling notifier, Ingo Oeser, (Thu Dec 20, 6:25 pm)
Re: [PATCH 0/4] add task handling notifier, Jan Beulich, (Fri Dec 21, 3:36 am)