Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2894897pxy; Tue, 3 Aug 2021 19:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPoAr28yvCB0IZB6Ky4l5lpTXVDXV3hkLyvxw6PRZhcg/2dZ4rD9azcmclEQQQ4H5pIfIw X-Received: by 2002:a05:6402:516f:: with SMTP id d15mr30209963ede.210.1628042725316; 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=zgpsYCLVuG285npaDuu1MbLAJQl0ODoqh+S8VtvMQ9dP4K2kYYyo4olsMx8fJINHHk ZDmLOvGcUoYTnggOWCsWU8rRPuxUd1Osvq93Ct26a5L5f+jkZTM4Irzg3Tmdx4a8ux9U eLIKwcnbzMfTPwgs+H/i5VBRHd9vU/6tA8OpACiLGNc5L8vJrOr6CNtZAwft+UOdVmvt HPwP4jWIAAW0m4+NULERRl0Jovi3uDMUPXXDk46jwBmbCrHx78IRFoW99/BqOLyeJHJe CGh/Z8oSi59e+2vXRo5/RMSscbf8fO6KDMK1bysSmPTINR5sP4tpu+ALmGUrmvNL6As2 alFQ== 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=KnuZs/g8Oew5RJJwXI/t9ztON31nLnDM5yCpxcP3G5Y=; b=KTtnsoe/SEbHgFsajoy/PDyr/1N0ar9TiErEd7UA7slMptflt6CT8hLvTuqUtlBjiT rz8tm4epFndJZXg/O2Roy/dm5tHsHF51NuCosnQpntCa79+wHXPJohAFlQE8EtLtKSU4 fZTIbKONvtdlJLgB42mqwxH5q7Ahp9h7k8NxxPLbKzOu0NVx2UZsFwgm/6eGuL3agRoe TRm+tFkEUNIdocUz8HJpuOLjKS5AsRv+LXGg4yMh/rc5IPsM7nzFrMJDShYaJe9ViJLr tAM8MPla5zOMDWu+3cf7HLzjQsbg0eMU3AjssEINuASYQkXEfkSq93EGuL9XjVfkkxoQ gn4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=M+OBkl7N; 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 u6si657554eju.58.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=M+OBkl7N; 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 S229892AbhHDCAU (ORCPT + 99 others); Tue, 3 Aug 2021 22:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbhHDCAT (ORCPT ); Tue, 3 Aug 2021 22:00:19 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA76DC06175F for ; Tue, 3 Aug 2021 19:00:07 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id hw6so1342537ejc.10 for ; Tue, 03 Aug 2021 19:00:07 -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=KnuZs/g8Oew5RJJwXI/t9ztON31nLnDM5yCpxcP3G5Y=; b=M+OBkl7Ni519XngieCIV8Nw7Z3EiKgKSxTlp7loQj9h9rhj3+EAkRpflcKTj02vYCr T+a5qt2T4XvSU2J3rpwVHUGXIabN167Bq1GNqy/pNlomMwnmc+iG3CxMGxZhV8JVMaLf woHlclSeqZP9UqG8RTivp2FtSH94w/Ul8yTnYGkz4RRRzH/ZIzRNoPP4PNX5Ei+d0uGb ZlHPg9s7oF50/OtM7981W/R0vLRyp9zy6jix2xvKjKH4ShnHXbuURbvJEOqe11u52OGi ckXT2tKfpC/o4vJKAhjZxRd2UIFXlWpCYEF21knP9FNOvsLefIHvzg8JD62mSiEtMh4M X63Q== 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=KnuZs/g8Oew5RJJwXI/t9ztON31nLnDM5yCpxcP3G5Y=; b=hwf18bB4VdUtyTnHMVxxuxLBpYaTtkEynRWc5LctO0Cl2bsPb4VCTTJ2wgkL/uI0Zc /+ab91itLHomitQoxNfX4j0t4dMHslfeFP52F3MaoN+fzmT5jqn1VfjFMiVu9x2XQeYM zM29nMObg+B7UlAvcK10C6XsgEUIdT9UTC7DFltWO4twpRHQY4fz+5f1rJAzVF03d6hU yjTPIPWRwGUsfQ8ixSW6nn9AvGCyYRQNrcTfaNpnXuFqbj7Ubw1TIEhCpVErsqzzxCV8 9JdsgUNi6kEatRstFNZxmYtpEWAwc+3fHqQKbWYcSFQ5WxAFg+1h0wu4Ki1Ij8ZjvmvO OMxA== X-Gm-Message-State: AOAM532qQmCHp004uZMEfdw3Vqek/a4vzKey8+vRmkmdUEtipgbnfn9B U0OrqHpNKacjMLI7GIwQb5P6JNf1L7prCkn1KF1eww== X-Received: by 2002:a17:906:d20a:: with SMTP id w10mr24376079ejz.426.1628042406564; Tue, 03 Aug 2021 19:00:06 -0700 (PDT) MIME-Version: 1.0 References: <6d0caab00d4bdccf5e3791cb95cf6dfd5eb85e45.1626252248.git.zhansayabagdaulet@gmail.com> In-Reply-To: <6d0caab00d4bdccf5e3791cb95cf6dfd5eb85e45.1626252248.git.zhansayabagdaulet@gmail.com> From: Pavel Tatashin Date: Tue, 3 Aug 2021 21:59:30 -0400 Message-ID: Subject: Re: [PATCH v2 3/4] selftests: vm: add KSM zero page merging 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_zero_page_merge() function to test that empty pages are > being handled properly. For this, several zero pages are allocated and > merged using madvise. If use_zero_pages is enabled, the pages must be > shared with the special kernel zero pages; otherwise, they are merged > as usual duplicate pages. The test is run as follows: ./ksm_tests -Z > > Signed-off-by: Zhansaya Bagdauletkyzy Reviewed-by: Pavel Tatashin