All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHES]: dm lock optimization
@ 2012-04-19  3:03 Mikulas Patocka
  2012-04-19  5:17 ` Jun'ichi Nomura
  2012-04-23 13:14 ` Joe Thornber
  0 siblings, 2 replies; 10+ messages in thread
From: Mikulas Patocka @ 2012-04-19  3:03 UTC (permalink / raw)
  To: Alasdair G. Kergon, dm-devel

Hi

I placed dm lock optimization patches here

http://people.redhat.com/mpatocka/patches/kernel/dm-lock-optimization/

The patches remove cache-line bouncing from device mapper when multiple 
processors submit requests simultaneously.


I was able to measure performance improvement, although in a very specific 
setup (it is unmeasurable with normal disks).

The setup to measure it is:
- two quad-core Opterons
- use ramdisk as a block device, leave it empty
- create 11 nested dm-linear mappings on it (so that each i/o passes 
through 11 levels of dm-linear and then goes to the ramdisk)
- run fio with 8 threads, using direct-io to read 512-byte blocks
(time fio --rw=randread --size=1G --bsrange=512-512 --direct=1 
--filename=/dev/mapper/dm-test --name=job1 --name=job2 --name=job3 
--name=job4 --name=job5 --name=job6 --name=job7 --name=job8)

With this setup it can be measured that the patches help:

no patch (3.3 kernel):  68.9s
patch 1:                64.3s
patch 1,2:              52.3s
patch 1,2,3:            45.2s
patch 1,2,3,4:          41.2s
patch 1,2,3,4,5:        34.0s

Mikulas

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

end of thread, other threads:[~2012-05-23  6:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19  3:03 [PATCHES]: dm lock optimization Mikulas Patocka
2012-04-19  5:17 ` Jun'ichi Nomura
2012-04-21 16:17   ` Mikulas Patocka
2012-04-23 10:56     ` Jun'ichi Nomura
2012-05-02  2:17       ` Mikulas Patocka
2012-05-10  4:33         ` Jun'ichi Nomura
2012-05-18  6:37           ` Mikulas Patocka
2012-05-23  6:27             ` Jun'ichi Nomura
2012-04-23 13:14 ` Joe Thornber
2012-05-02  0:03   ` Mikulas Patocka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.