diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-04-29 12:30:03 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-05-15 10:29:36 -0400 |
commit | 48338daaa00e6137a43fa5d0e54b763aa34f450b (patch) | |
tree | 8a3b7250121a73df9de065be338d582f192c9632 /drivers/macintosh | |
parent | 499c18045eab16656ef4159c35b05865038f9f25 (diff) |
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>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions