linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] KSM: Replace jhash2 with xxhash
@ 2017-09-25 19:33 Timofey Titovets
  2017-09-25 19:33 ` [PATCH v3 1/2] xxHash: create arch dependent 32/64-bit xxhash() Timofey Titovets
  2017-09-25 19:33 ` [PATCH v3 2/2] KSM: Replace jhash2 with xxhash Timofey Titovets
  0 siblings, 2 replies; 3+ messages in thread
From: Timofey Titovets @ 2017-09-25 19:33 UTC (permalink / raw)
  To: linux-mm; +Cc: linux-kernel, borntraeger, kvm, Timofey Titovets

ksm use jhash2 for hashing pages,
in 4.14 xxhash has been merged to mainline kernel.

xxhash much faster then jhash2 on big inputs (32 byte+)

xxhash has 2 versions, one with 32-bit hash and
one with 64-bit hash.

64-bit version works faster then 32-bit on 64-bit arch.

So lets get better from two worlds,
create arch dependent xxhash() function that will use
fastest algo for current arch.
This a first patch.

Performance info and ksm update can be found in second patch.

Changelog:
  v1 -> v2:
    - Move xxhash() to xxhash.h/c and separate patches

  v2 -> v3:
    - Move xxhash() xxhash.c -> xxhash.h
    - replace xxhash_t with 'unsigned long'
    - update kerneldoc above xxhash()

Timofey Titovets (2):
  xxHash: create arch dependent 32/64-bit xxhash()
  KSM: Replace jhash2 with xxhash

 include/linux/xxhash.h | 23 +++++++++++++++++++++++
 mm/Kconfig             |  1 +
 mm/ksm.c               | 14 +++++++-------
 3 files changed, 31 insertions(+), 7 deletions(-)

--
2.14.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2017-09-25 19:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 19:33 [PATCH v3 0/2] KSM: Replace jhash2 with xxhash Timofey Titovets
2017-09-25 19:33 ` [PATCH v3 1/2] xxHash: create arch dependent 32/64-bit xxhash() Timofey Titovets
2017-09-25 19:33 ` [PATCH v3 2/2] KSM: Replace jhash2 with xxhash Timofey Titovets

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