Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2895730pxy; Tue, 3 Aug 2021 19:07:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxB20c0ZcDSiJagjU6IJJNvQCt6QGQruBfV3PqJZUE16nwbSkxUbkhQOMTDMInKb05+T2C X-Received: by 2002:a05:6402:d7:: with SMTP id i23mr29240460edu.291.1628042849253; Tue, 03 Aug 2021 19:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628042849; cv=none; d=google.com; s=arc-20160816; b=MQ/SiBDFn/Qnb6wLvCnX3uAujqc7z5mkYxT024oxyTV5GiQ7PY0g3Hd/opfBiEodFv uhATHSBopLzIt4wuHSXwgMVRjYUq9k+RRHAq12jW/6RSRItjYnB60YenMb6o/hTEhore iizZq/Qxf7P3YbeB+pnjc5Ix2ODRRrY8dzIRo9DDSdMzc0QFrPOCUC4c2aaxmGZn+mRC MpMGr6LKAZktz4l9cFD2YR5e7n1YSEzn2n6cpI/ULW+N4LTdc5xPQiJe/OWrOzowd3/g og8r9bxlpV1TYxKC07SC6KU7N8sx3p1aJQemBVvNIdJ/6AGKFuck1quJs2EOD2Comf5A fAWA== 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=8OQYuCzODGsyt/DqKxZOBjYjUO0WZANTojPvfkOL4rQ=; b=i1DHdMAdOdHO6NEI5iZxaDGn+dvaPeh0edagLl3ru2WYdZ9WX9Jdtr2v0SOd2m6xez eK6/FXuJzUHQezVuXz8D2tsRP1fUL498auK+pQbcRZn51iRyBYy9CSMVEprInFgzYz/C KsmFPQtk8IopVMWegE6eFhmwF5Et0bRJ/+Qsq1NUaaQtJVlC1D8H7T5rMLU3uBSY7uzK 25d0pUCNGY6JE1RVMMCvFzSFLZBh570k1PzDQaqwH1ALxCjb23pMsDCog2fefGlcCP0x WKw81Hf6HVwWu6MSx/bl3VR8iGITnivmYmY3betxA0WInUhvvCwakrHUiMbvdTiIRD2c r5Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=je0WvXR4; 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 hr2si738228ejc.132.2021.08.03.19.07.06; Tue, 03 Aug 2021 19:07:29 -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=je0WvXR4; 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 S233900AbhHDCCL (ORCPT + 99 others); Tue, 3 Aug 2021 22:02:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234024AbhHDCCJ (ORCPT ); Tue, 3 Aug 2021 22:02:09 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E16C061764 for ; Tue, 3 Aug 2021 19:01:57 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id ec13so1579040edb.0 for ; Tue, 03 Aug 2021 19:01:57 -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=8OQYuCzODGsyt/DqKxZOBjYjUO0WZANTojPvfkOL4rQ=; b=je0WvXR42DZrGfIyJqkwj9wuQGH2H9H70uJNtg7JBiUYNAVDbdO7Fkkpl5Bf4Sfbq/ rqhwGp5yhtZugm73fIOtkQj3oagsGwMgIUWZ/CTLdTqe3rSFLtjjJTIC+mtLwx04hH5w D2AYpAmYMSjWror3Se8f4gKV0iyUliUoinpIbWnLH/d6yaM+ECKkbtR+/dIGieu+6pYc ULiPGwRV6wcvOy7XGeVx6ZOXEHXvd8S1nazEkVg6tXsgDtCKl5tGh1LoNDWezCYOlwBU M0wzL06fhCAW7A5g90U6/NhiUlil/qYxmxjXhz5iXTB3LW3D4uMJjoWHJdYy9Q+YtR0J 7plw== 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=8OQYuCzODGsyt/DqKxZOBjYjUO0WZANTojPvfkOL4rQ=; b=oxAKCziT1nr37PB+UpViwEv/M+U0jPl3pVcFoHDnjYhE3BYJrQi88C8KJi+/EnQLah I5PuRCCMF/lm6+BBLM0e+xHq2MVti8NlTVTpIR4YloCuNg4YdAtER3KZvkLhEVReL9fE tqvIoeQ8+xq+LSTKsPEJvRNMcXKcMmTeY6tAOvbwkm0VDCqkaE4vwRlTQ5DnwZcHM7DF s4nKESjCtXgVjBq95PG8UDhk0kpvxedazdMIDX/0lOuAlNNfH1ZhA1yeVed1s8wF1X2x Ter+R9RjbQFHGopegU36jf1S4rYOS+hU1EXPou7PB1FIZgCWk1z4OGMokWct8GufphjQ wN2Q== X-Gm-Message-State: AOAM532e1C+JoDtI4Nc8TH9hscZhWDfGV+d2hvaRzCemoTx7Y/8gYxmn R3ZIcUZJ/FnF5pxwGqsl84DA0ViDVPghkFTHkD0OzQ== X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr28987239edv.26.1628042516316; Tue, 03 Aug 2021 19:01:56 -0700 (PDT) MIME-Version: 1.0 References: <071c17b5b04ebb0dfeba137acc495e5dd9d2a719.1626252248.git.zhansayabagdaulet@gmail.com> In-Reply-To: <071c17b5b04ebb0dfeba137acc495e5dd9d2a719.1626252248.git.zhansayabagdaulet@gmail.com> From: Pavel Tatashin Date: Tue, 3 Aug 2021 22:01:20 -0400 Message-ID: Subject: Re: [PATCH v2 4/4] selftests: vm: add KSM merging across nodes 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_numa_merge() function to test that pages in different NUMA > nodes are being handled properly. First, two duplicate pages are allocated > in two separate NUMA nodes using the libnuma library. Since there is one > unique page in each node, with merge_across_nodes = 0, there won't be any > shared pages. If merge_across_nodes is set to 1, the pages will be > treated as usual duplicate pages and will be merged. If NUMA config is > not enabled or the number of NUMA nodes is less than two, then the test > is skipped. The test is run as follows: ./ksm_tests -N > > Signed-off-by: Zhansaya Bagdauletkyzy Reviewed-by: Pavel Tatashin