Mikulas Patocka 48338daaa0 dm writecache: improve performance on DDR persistent memory (Optane)
When testing the dm-writecache target on a real DDR persistent memory
(Intel Optane), it turned out that explicit cache flushing using the
clflushopt instruction performs better than non-temporal stores for
block sizes 1k, 2k and 4k.

The dm-writecache target is singlethreaded (all the copying is done
while holding the writecache lock), so it benefits from clwb, see:
http://lore.kernel.org/r/alpine.LRH.2.02.2004160411460.7833@file01.intranet.prod.int.rdu2.redhat.com

Add a new function memcpy_flushcache_optimized() that tests if
clflushopt is present - and if it is, we use it instead of
memcpy_flushcache.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2020-05-15 10:29:36 -04:00
..
2020-03-30 11:43:51 -07:00
2020-05-15 10:29:35 -04:00
2019-11-12 19:12:07 -07:00
2019-09-16 10:18:01 -04:00
2016-11-01 09:43:26 -06:00
2019-09-04 09:39:22 -04:00
2017-06-09 09:27:32 -06:00
2020-04-08 21:03:40 -07:00
2019-08-23 10:13:12 -04:00
2020-05-15 10:29:35 -04:00
2020-05-15 10:29:35 -04:00
2020-03-30 11:43:51 -07:00
2019-03-12 10:15:18 -07:00
2019-12-09 10:36:44 -08:00