From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbdIUXSb (ORCPT ); Thu, 21 Sep 2017 19:18:31 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36485 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728AbdIUXSa (ORCPT ); Thu, 21 Sep 2017 19:18:30 -0400 X-Google-Smtp-Source: AOwi7QCOBY2Wkpu+GxQ9X9YlIQQsqcXrd7WGoh/4wbfSfdePs/QJuVdj1JcBTE/KB/09BHBLRwLc4g== From: Timofey Titovets To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Timofey Titovets Subject: [PATCH v2 0/2] KSM: Replace jhash2 with xxhash Date: Fri, 22 Sep 2017 02:18:16 +0300 Message-Id: <20170921231818.10271-1-nefelim4ag@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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