From patchwork Fri Aug 6 10:10:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhansaya Bagdauletkyzy X-Patchwork-Id: 12423159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56698C432BE for ; Fri, 6 Aug 2021 10:10:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C889861058 for ; Fri, 6 Aug 2021 10:10:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C889861058 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id CEE6E6B006C; Fri, 6 Aug 2021 06:10:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C9DFE6B0071; Fri, 6 Aug 2021 06:10:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B65E18D0001; Fri, 6 Aug 2021 06:10:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0020.hostedemail.com [216.40.44.20]) by kanga.kvack.org (Postfix) with ESMTP id 99EE66B006C for ; Fri, 6 Aug 2021 06:10:33 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 4858912784 for ; Fri, 6 Aug 2021 10:10:33 +0000 (UTC) X-FDA: 78444236346.18.D7A3F19 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by imf28.hostedemail.com (Postfix) with ESMTP id 0441B9009F1B for ; Fri, 6 Aug 2021 10:10:32 +0000 (UTC) Received: by mail-lf1-f48.google.com with SMTP id g30so12621327lfv.4 for ; Fri, 06 Aug 2021 03:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=Cg4WXIsZYnbUd442Oahs9GZTt+sKbIJi8MwnGCykt+Q=; b=XPqTayydqB7XeIci2sFJG36nePUJsDxmFlECE42HuKuMz35087FwU3R8m2z8rbyHs1 yLyT/0OI0INIF1Uc6JL7iSxDCeWL+dueJp7+GHhHXzbKMHuFFIjqcOPu2zPH4uHF4Ju5 WNI+8pQFlUjJ4HxxVXKVQKCPTK3IS450KPaJHEXptdTMUWGp4hFb9TN/ttNHUJ5aDApl jB3vzdjkd8ltExrmJyZ5NTh2KjNWzshLkWd+0Iv+79fPSKwMaenJAmnUHXVL+JFe0bxQ luKyJiMbTVcWvpRPloQMQB775StJgoBumr4jQP60ZUVVy64EbQBgP0oZDnBNJQs6p3SK xXqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=Cg4WXIsZYnbUd442Oahs9GZTt+sKbIJi8MwnGCykt+Q=; b=WY7Dlkc+7/v3brYp+Xm6NHROHIwF42pMBZXzJwqkiNPZJU2ZicfrGw/w8ncBN4+3D1 lAXMjwcu9OFVH/by0EBpLMskbP3OsHWX0tBEXbwp01tNagRQZj6/EVbUTjJPqDlxsr9C 0bVxFr1J/LfWkxE4PYC77Sy1CEJpTSFjERJr7XslMtqjclOJ0JUL2CpmpegDSoHAJ1ey Psfje7PKp61rcUboUOZUJQpElZo2zu9TJloX070b3wqMtBaQn8KR+O26YAlMldz2KiPk k3ltwcAx3MwUKLi5WU7KzOaLKkK0k8YCep6zj2PIipjZhXTR7/wbpHln+50Z1C18OER5 YIbg== X-Gm-Message-State: AOAM533oDynpWNZB1B1PEoS4QN42HVq1iXSv3q5qmqCFU/vRWNUL/KR5 dvMDFQr3A6UEuj0zqFFlkCGAcd6EKRpbm/zp X-Google-Smtp-Source: ABdhPJyvIQJSwcNKYPOAlz/6bQ9oXP1Rr6I9mtMx2ZN31ncfx4sv/abaI1tq6YjaNJ2Sr/ZX44IAkw== X-Received: by 2002:a05:6512:131d:: with SMTP id x29mr7572790lfu.655.1628244631438; Fri, 06 Aug 2021 03:10:31 -0700 (PDT) Received: from asus ([93.95.240.58]) by smtp.gmail.com with ESMTPSA id s12sm640722ljg.60.2021.08.06.03.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 03:10:30 -0700 (PDT) Date: Fri, 6 Aug 2021 16:10:26 +0600 From: Zhansaya Bagdauletkyzy To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, tyhicks@linux.microsoft.com, pasha.tatashin@soleen.com Subject: [PATCH v2 0/2] add KSM performance tests Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 0441B9009F1B Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=XPqTayyd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf28.hostedemail.com: domain of zhansayabagdaulet@gmail.com designates 209.85.167.48 as permitted sender) smtp.mailfrom=zhansayabagdaulet@gmail.com X-Stat-Signature: beeejp6ptony1oyje31t83gg8doisqd8 X-HE-Tag: 1628244632-605117 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Extend KSM self tests with a performance benchmark. These tests are not part of regular regression testing, as they are mainly intended to be used by developers making changes to the memory management subsystem. This patchset is a respin of the previous series: https://lore.kernel.org/lkml/cover.1627828548.git.zhansayabagdaulet@gmail.com/ Zhansaya Bagdauletkyzy (2): selftests: vm: add KSM merging time test selftests: vm: add COW time test for KSM pages v1 -> v2: - replace MB with MiB - address COW test review comments tools/testing/selftests/vm/ksm_tests.c | 152 ++++++++++++++++++++++++- 1 file changed, 148 insertions(+), 4 deletions(-)