linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm/zswap & crypto/acompress: remove a couple of memcpy
@ 2024-01-03  9:50 Barry Song
  2024-01-03  9:50 ` [PATCH 1/3] crypto: introduce acomp_is_async to expose if a acomp has a scomp backend Barry Song
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Barry Song @ 2024-01-03  9:50 UTC (permalink / raw)
  To: herbert, davem, akpm, ddstreet, sjenning, vitaly.wool, linux-crypto
  Cc: chriscli, chrisl, hannes, linux-kernel, linux-mm, nphamcs,
	yosryahmed, zhouchengming, Barry Song

From: Barry Song <v-songbaohua@oppo.com>

The patchset removes a couple of memcpy in zswap and crypto
to improve zswap's performance.

Thanks for Chengming Zhou's test and perf data.
Quote from Chengming,
 I just tested these three patches on my server, found improvement in the
 kernel build testcase on a tmpfs with zswap (lz4 + zsmalloc) enabled.
 
         mm-stable 501a06fe8e4c  patched
 real    1m38.028s               1m32.317s
 user    19m11.482s              18m39.439s
 sys     19m26.445s              17m5.646s

The patchset is based on mm-stable.

Barry Song (3):
  crypto: introduce acomp_is_async to expose if a acomp has a scomp
    backend
  mm/zswap: remove the memcpy if acomp is not asynchronous
  crypto: scompress: remove memcpy if sg_nents is 1

 crypto/acompress.c         |  8 ++++++++
 crypto/scompress.c         | 35 ++++++++++++++++++++++++++++-------
 include/crypto/acompress.h |  9 +++++++++
 mm/zswap.c                 |  6 ++++--
 4 files changed, 49 insertions(+), 9 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-02-16  6:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03  9:50 [PATCH 0/3] mm/zswap & crypto/acompress: remove a couple of memcpy Barry Song
2024-01-03  9:50 ` [PATCH 1/3] crypto: introduce acomp_is_async to expose if a acomp has a scomp backend Barry Song
2024-01-08 22:35   ` Yosry Ahmed
2024-01-09  3:38     ` Barry Song
2024-01-03  9:50 ` [PATCH 2/3] mm/zswap: remove the memcpy if acomp is not asynchronous Barry Song
2024-01-04  0:38   ` Nhat Pham
2024-02-16  3:55     ` Barry Song
2024-01-08 22:36   ` Yosry Ahmed
2024-01-03  9:50 ` [PATCH 3/3] crypto: scompress: remove memcpy if sg_nents is 1 Barry Song
2024-01-25  9:58   ` Herbert Xu
2024-02-16  3:49     ` Barry Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox