Messages in this thread | | | Date | Tue, 20 Oct 2015 10:48:56 +0200 | From | Ingo Molnar <> | Subject | Re: [RFC PATCH] qspinlock: Improve performance by reducing load instruction rollback |
| |
* Ling Ma <ling.ma.program@gmail.com> wrote:
> > So it would be nice to create a new user-space spinlock testing facility, via > > a new 'perf bench spinlock' feature or so. That way others can test and > > validate your results on different hardware as well. > > Attached the spinlock test module . Queued spinlock will run very slowly in user > space because process switch context, it is OK for spinlock-test implementation > with kernel module ?
Not sure what you mean by 'because process switch context': if you pin the test tasks to individual CPUs and make sure there's nothing else running it should be equivalent to kernel-space execution.
Thanks,
Ingo
| |