Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2894898pxy; Tue, 3 Aug 2021 19:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrnH73bnxc8qPsYecUkgrkhQEMhiLTQgK/gtXkfnbMPeSaIkQCpUFCUWzKOY+bpaf4v/9a X-Received: by 2002:a17:906:260e:: with SMTP id h14mr23418781ejc.258.1628042725318; Tue, 03 Aug 2021 19:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628042725; cv=none; d=google.com; s=arc-20160816; b=fhaVo6C2VyCQeoovGJZuIPErJ9mtC1+VlsoEjLRhStS1E0XqlHCuowYKbLqJfmlUAn 4zFgGhCiK6viH1yHtAZASQnllVjk0Gnxcqv8wFizHFGElTi/D1huCBs7zyypesLT4RiL zlK5u/5jgRp/Uq5/CMDbmaY5eNy7xVUNSPRcCX3/p3BQmMgwKbytKoBv2s7kM/2XD0WG pnTCct1D7iomeg7eLttFcBxR2M3MUl/n8UlBx5uwajYzo7BpQVS3LJ8ldyNk0OYZNKCU tqnfswM74z56tiWlELTxoRfHJHvTT+x6ctgz7M6DTPcxomovf10rIsdkbaZdJE2PEDxF C+CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ik/aRIJnGF3BUxWdSYGMICWQOswUuEj2isGKQOk90Bc=; b=K7+UXW04IO4yymnUwDRXt0sPkOEdl2sNihj3eCk8iYdLEEzEC4ImgsCFfnpWQpKYcO kD5xcivG3jC9Zbaw5NukP4ymJ6Qdbr99Nji4Z77/enNx0Sk7+MppxoMQIp2WedEvi6w+ Lr4MlYj6BI24UE85lKpX8xL5HZLC0XsORsg3acwBpheFkyWTvpyvIKBpzIkhrA3KmSME 2n7vEiFvVJ6C2HZ7Lm5WMwm/5xdZJeQHj2J0z1Stv1dgF5isRJMw5qULaypR/aNCePVt 1jg05kGfP9+iqRhr3DgzzxqsClSDztDUrNe+eNv0StrerA+qPCJbKE9BJuA08RGM8slU pLaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=gbrIZDmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si666275ejc.233.2021.08.03.19.05.00; Tue, 03 Aug 2021 19:05:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=gbrIZDmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233662AbhHDB6v (ORCPT + 99 others); Tue, 3 Aug 2021 21:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbhHDB6u (ORCPT ); Tue, 3 Aug 2021 21:58:50 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3EC3C06175F for ; Tue, 3 Aug 2021 18:58:37 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id u3so1409487ejz.1 for ; Tue, 03 Aug 2021 18:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ik/aRIJnGF3BUxWdSYGMICWQOswUuEj2isGKQOk90Bc=; b=gbrIZDmSoqXU6IDsTYkf/KNp4sxEyt9n0JuBLXR4M+OQtbi6PO6/p5Jnabp3EgxaJd bc7GBDZviL+k0aVQ1+BjauRfFralpG13Y0UrqKmcsQLssFA3Bt56JjsTxcLY07z4fsE4 0X8KVKQLiC1G7+i4LKomSEthomV5aEzZWq/9eXniewGLpKyqBAslfb45b6OnFkGGKFnW fjTQPFlxroF8tmwH/dHrhrVMRR2gyyCfgQ7w/tFTGEucUEVAiwTjaZ9b/k7qvBfEFs5A aJdXt9Py38xBkkXUKHIesIsuEoPRtU4vchx2c5Xew0LwGTbT+btlCIZFnlTI90PgamYL hlCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ik/aRIJnGF3BUxWdSYGMICWQOswUuEj2isGKQOk90Bc=; b=XYEIWw25M5JkjK9Y9XY8vuw5bcJsHaqQN0mowA44OElvfrNlKUphABhpOF/gSims9P Rw/RnOsOr/bBASqdoTBEVcHKrrZ4WQvYKeHeJOaFiq3/6ecDz0+tUQBNU/QFYq80YP1C 1p4FmsAZ+BAVm6YRtn8A/754kpDWLZDPZkFPqE4t+o9+HJLiFTfUaqOBzUo0QapLQ5K+ Qk7fGX7vkrC5du0qD47BOE+vaAxxXO2NeU1bPvMxn90DQgv4XOH6Y57ZBSDRv5H7QAqZ wvbnyZv77cVJES2Z1jBJYB9JuCOJwwsL8gxS2V6cTWX5csK9MClbP/3f8Wp+1QzOknDx QwaQ== X-Gm-Message-State: AOAM531/+kP2C3n4cOPBg6K545a0RCmivOoeQRTZjBPDRoFmeQzseC56 MQA2WkKrPvgC4T+0mpPlURkL6/I6/d1KkGh7lumcTQ== X-Received: by 2002:a17:906:d7b2:: with SMTP id pk18mr23582718ejb.541.1628042316601; Tue, 03 Aug 2021 18:58:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pavel Tatashin Date: Tue, 3 Aug 2021 21:58:00 -0400 Message-ID: Subject: Re: [PATCH v2 2/4] selftests: vm: add KSM unmerge test To: Zhansaya Bagdauletkyzy Cc: shuah@kernel.org, Andrew Morton , LKML , linux-kselftest@vger.kernel.org, linux-mm , Tyler Hicks Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 4:56 AM Zhansaya Bagdauletkyzy wrote: > > Add check_ksm_unmerge() function to verify that KSM is properly > unmerging shared pages. For this, two duplicate pages are merged first > and then their contents are modified. Since they are not identical > anymore, the pages must be unmerged and the number of merged pages has > to be 0. The test is run as follows: ./ksm_tests -U > > Signed-off-by: Zhansaya Bagdauletkyzy Reviewed-by: Pavel Tatashin