public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* lock's trace events can improve mutex's performance in userspace?
@ 2010-03-11  9:43 Xiao Guangrong
  2010-03-13  4:27 ` Hitoshi Mitake
  0 siblings, 1 reply; 4+ messages in thread
From: Xiao Guangrong @ 2010-03-11  9:43 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Steven Rostedt, Frederic Weisbecker, Peter Zijlstra,
	Hitoshi Mitake, KAMEZAWA Hiroyuki, KOSAKI Motohiro, Ming Lei,
	LKML

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

We found that if enable lock's trace events, the 'sysbench mutex'
benchmark program can run quicker.

The simple program that is attached can reproduce it, the system info,
kernel config, and the script are also attached.

The test step is below:

# tar -zxvf test-mutex.tar.bz
# cd test-mutex
# make
# ./tscript.sh >& log
# cat log | grep "real"
real    0m46.765s < all trace events are disabled >
real    0m47.073s
real    0m47.402s
real    0m46.458s
real    0m47.433s
real    0m47.395s
real    0m47.010s
real    0m47.454s
real    0m47.044s
real    0m47.464s
real    0m39.245s < enable lock's trace events >
real    0m40.822s
real    0m40.779s
real    0m40.549s
real    0m40.605s
real    0m40.923s
real    0m40.560s
real    0m41.050s
real    0m40.757s
real    0m40.715s

[ "< ... >" is my comments ]

>From the result, we can see the program's runtime is less if enable lock's
trace events.

The conclusion is weird but i don't know why.

[-- Attachment #2: test-mutex.tar.bz --]
[-- Type: application/octet-stream, Size: 23996 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-08  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-11  9:43 lock's trace events can improve mutex's performance in userspace? Xiao Guangrong
2010-03-13  4:27 ` Hitoshi Mitake
2010-04-05  9:14   ` Michel Lespinasse
2010-04-08  9:05     ` Xiao Guangrong

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