From patchwork Wed Jun 30 20:22:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhansaya Bagdauletkyzy X-Patchwork-Id: 12352809 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,URIBL_BLOCKED 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 67170C11F68 for ; Wed, 30 Jun 2021 20:22:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E53D461457 for ; Wed, 30 Jun 2021 20:22:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E53D461457 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E30A68D01C5; Wed, 30 Jun 2021 16:22:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DDFE88D01A2; Wed, 30 Jun 2021 16:22:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C80B78D01C5; Wed, 30 Jun 2021 16:22:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0177.hostedemail.com [216.40.44.177]) by kanga.kvack.org (Postfix) with ESMTP id A56138D01A2 for ; Wed, 30 Jun 2021 16:22:11 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6263E1B679 for ; Wed, 30 Jun 2021 20:22:11 +0000 (UTC) X-FDA: 78311512062.01.6C90714 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by imf24.hostedemail.com (Postfix) with ESMTP id 248B7B00009F for ; Wed, 30 Jun 2021 20:22:11 +0000 (UTC) Received: by mail-lj1-f180.google.com with SMTP id h6so5036701ljl.8 for ; Wed, 30 Jun 2021 13:22:10 -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=asiPWTg/9LdxIDMuM03tyPCc7XSGdVqNFdWPqsCB8Y4=; b=TZqkgdXmmTyR0b6OjQEVeOUjuaXgNAAoq96Q/gm8nNxGOWW0PhwtOUzAYnAX2BUpfa OFiBla7yFtrSwSyEH3liO1Fhzaxj6m1NBzxQvC0hfbvLhqbBxaFq1EcITTqJ2Vcl2LyD mEfS+sTGb6FqmSyWNbtnAPnDQ2Tx4E+/zGIfeJys5LOdazyALBixZqssnn2NEz0yAnEj Sn+t7x+drRE64ig/NHWbbycCUDXVV2iK9daURwdUZsuuIqN+88sWjPiA5zozm47CUlH5 gpZKs3Ne5g+MsuHyXvqMpVLnV3TvWnhgd4yYGXeuA2FVA392TJC/q3xi0dM9GQ51Dwb0 kYGA== 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=asiPWTg/9LdxIDMuM03tyPCc7XSGdVqNFdWPqsCB8Y4=; b=LrOvdKCNEqG8SAvHuatBoZLmNbDmSyux5Q0p/WC7z/LuIo0N+oCzLh7VF+S/xZ6E9y eD07UkqU6m3ZKVSPLd90SroG17U7dA4fWlFsUVCxMXVVChnz/bbNtSDxJTe+etK/NXOT XKTqRA+9919hXEoA6xdijsmPp8oscjYOK83GhdVp1WaNdlUP1MhnjuiIK4ZrM/xh0WAX yjcFWxl64TblShHHZJIbs5mrYIfx/GAclR/xidE+214MxWFAYnAH86MxgmzB7YphEbQl S6Q+KzOflepZMQpErGDozEN0h5ZNJ/jPGbmjTavjwaQKSxJDq9G82H6AcWrP6cmI4hYz MVUg== X-Gm-Message-State: AOAM532z4LbMrvEbhhMbZumF2zX0Q1bcT7VmMeHPr3aJboWm0qDp+Fu3 TYw5/c+vXgLsu9LXWHy7k5o= X-Google-Smtp-Source: ABdhPJxsz4WexCal2555CfKKJjXEIfGhb9O5Owy3jWZ0R9LZNS6i8u6iWiEm3qc7l7HemyZD8UxUzg== X-Received: by 2002:a2e:5848:: with SMTP id x8mr3618338ljd.191.1625084529507; Wed, 30 Jun 2021 13:22:09 -0700 (PDT) Received: from asus ([37.151.208.206]) by smtp.gmail.com with ESMTPSA id l10sm306117ljg.81.2021.06.30.13.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 13:22:08 -0700 (PDT) Date: Thu, 1 Jul 2021 02:22:06 +0600 From: Zhansaya Bagdauletkyzy To: shuah@kernel.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, tyhicks@linux.microsoft.com, pasha.tatashin@soleen.com Subject: [PATCH 0/1] add KSM selftests Message-ID: MIME-Version: 1.0 Content-Disposition: inline Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=TZqkgdXm; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf24.hostedemail.com: domain of zhansayabagdaulet@gmail.com designates 209.85.208.180 as permitted sender) smtp.mailfrom=zhansayabagdaulet@gmail.com X-Rspamd-Server: rspam02 X-Stat-Signature: f6dzaw1cwj4beee1tawntj6asczbu4gu X-Rspamd-Queue-Id: 248B7B00009F X-HE-Tag: 1625084531-778463 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: As a part of the Outreachy internship project, add unit tests for Kernel Samepage Merging. More tests to be added later; they would focus on unmerging, handling zero pages and pages in different NUMA nodes. Zhansaya Bagdauletkyzy (1): selftests: vm: add KSM tests tools/testing/selftests/vm/.gitignore | 1 + tools/testing/selftests/vm/Makefile | 1 + tools/testing/selftests/vm/ksm_tests.c | 289 ++++++++++++++++++++++ tools/testing/selftests/vm/run_vmtests.sh | 16 ++ 4 files changed, 307 insertions(+) create mode 100644 tools/testing/selftests/vm/ksm_tests.c