From: Timofey Titovets <nefelim4ag@gmail.com>
To: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org, Timofey Titovets <nefelim4ag@gmail.com>
Subject: [PATCH v2 0/2] KSM: Replace jhash2 with xxhash
Date: Fri, 22 Sep 2017 02:18:16 +0300 [thread overview]
Message-ID: <20170921231818.10271-1-nefelim4ag@gmail.com> (raw)
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
Timofey Titovets (2):
xxHash: create arch dependent 32/64-bit xxhash()
KSM: Replace jhash2 with xxhash
include/linux/xxhash.h | 24 ++++++++++++++++++++++++
lib/xxhash.c | 10 ++++++++++
mm/Kconfig | 1 +
mm/ksm.c | 14 +++++++-------
4 files changed, 42 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>
next reply other threads:[~2017-09-21 23:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 23:18 Timofey Titovets [this message]
2017-09-21 23:18 ` [PATCH v2 1/2] xxHash: create arch dependent 32/64-bit xxhash() Timofey Titovets
2017-09-25 14:59 ` Matthew Wilcox
2017-09-25 16:17 ` Timofey Titovets
2017-09-21 23:18 ` [PATCH v2 2/2] KSM: Replace jhash2 with xxhash Timofey Titovets
2017-09-22 9:52 [PATCH v2 0/2] " Timofey Titovets
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170921231818.10271-1-nefelim4ag@gmail.com \
--to=nefelim4ag@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox