[dm-crypt] [PATCH v2] make dm and dm-crypt forward cgroup context (was: dm-crypt parallelization patches)
mpatocka at redhat.com
Fri Apr 12 20:17:06 CEST 2013
On Thu, 11 Apr 2013, Tejun Heo wrote:
> On Thu, Apr 11, 2013 at 08:06:10PM -0400, Mikulas Patocka wrote:
> > All that I can tell you is that adding an empty atomic operation
> > "cmpxchg(&bio->bi_css->refcnt, bio->bi_css->refcnt, bio->bi_css->refcnt);"
> > to bio_clone_context and bio_disassociate_task increases the time to run a
> > benchmark from 23 to 40 seconds.
> Right, linear target on ramdisk, very realistic, and you know what,
> hell with dm, let's just hand code everything into submit_bio(). I'm
> sure it will speed up your test case significantly.
The purpose of this benchmarking is not to optimize linear target on
ramdisk. The purpose is to optimize the kernel for upcoming massively
parallel servers, with possibly hundreds of energy-efficient cores or so.
On these systems every single atomic reference really becomes a
bottleneck. And since I don't have such massively parallel server, I am
testing it on 12-core machine with ramdisk - the performance drop due to
atomic accesses can be measured even on that.
I already eliminated most of the atomic operations with this patch
And I don't see a sense in adding more for cgroup, especially, if it can
be easily avoided.
More information about the dm-crypt