Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp399687yba; Thu, 16 May 2019 02:44:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqycKj0VbKEyLHQxPaJxRuqhPu3TjbWDQXQfGVtt5rR4O1C8hTuPB4gHh6Qj3z+EkaG5R5Hh X-Received: by 2002:a62:4281:: with SMTP id h1mr52614480pfd.162.1557999875130; Thu, 16 May 2019 02:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557999875; cv=none; d=google.com; s=arc-20160816; b=yUewc+PHOBgsBEIiGgUdjEu7B4wNpc6p9syFmh3LKVHuv0Bb31CHPU24h8GRPlRVuu HUVJmegv/c/6yO5el1a2cn+5xtR8PnKuSTWyiNcfPfASnwBiNAxX9zTyd5TWuWvnJpGd zMhIdAY5N6+RRcU434Wgzybu8yXCvSxL3Ha3waCPtXZWw5fL4hcSNSX2oAYwkL49vp0C pXowtRRaL45xIwOThm1lTuDZP0HwAOJ4w27Xyn0ajCqZZJmwCaGkHH9fAQWrZYsy0g1t eOS38kxetI/KlPx8j59U8IvIn7R63VXMrHbfbvDdos9Ew+hXX6bJ1sdXY40pNyi24LvH xIjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=I6Qf9WePQnjM1qP5GnvXQ6iGQgDn7ErWaVxKlruplAs=; b=bChnnazMevZNTO7VNYnZsCe6TqtNzYV4PdQTnuQbHUqsR2FJROPCoBIof7WUrSdtZf +cBfEcWXG+0BqRFbCK0StZkDunQJYwaWE+VRxCTrLWSYaQc1NhzRm/5F/t5oNs4XbOlJ RQO34s5B6ztx0hrQY13Qpn2teRgtXpqQLx7Fc67LCGrIpczJMzWyz/qPWGubSTQj10EX /BRibPqd1Ymvpdq8kVZZPUNS3VCDuPZ4fwfA4EIch5XXVkin/UDGwMyX8iCUrSBOYIox 5+bgHlY69+9dr/6/4OHFCpOR9fL70AXMJvB7vUBqRX6wYDMHyZUKRGYFph3FPeV6r4db zJ8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o23si4249072pgm.595.2019.05.16.02.44.19; Thu, 16 May 2019 02:44:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727195AbfEPJmt (ORCPT + 99 others); Thu, 16 May 2019 05:42:49 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53935 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727179AbfEPJmr (ORCPT ); Thu, 16 May 2019 05:42:47 -0400 Received: by mail-wm1-f67.google.com with SMTP id 198so2878079wme.3 for ; Thu, 16 May 2019 02:42:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I6Qf9WePQnjM1qP5GnvXQ6iGQgDn7ErWaVxKlruplAs=; b=aakeEEMBdRn3zuLuopJRfhSbvE3+fo2f5/w26VGEteexomB6EjhoJ1RustBwrbduFn kUJ2NGrESzVxI+DpwrLcIoulX5VQlMAIYGG5e88gEt5Jk/LYY5lIQmm6lF/hkywQ7qmL eMLlUfhfFwHwo3B0AdwoRYFC7yYiNlP4Ng+p98qBT2c6HYMOTlNb8MQA/Ss2UGOZrsjp QKGWJFyNGmJ4Sxk3ZeHKQdEIu71Bm9iUGJ1ICGwckUhp0LEaWQoyp8rpXkssvLc69a0g Ip5dPlmk4ti+X3ZCardFN3R16T/586Bdya0qDoVLzvRzcLf59IVYXerOUKLoRLSfKF82 qhGA== X-Gm-Message-State: APjAAAWid0yEX3H2ydKz1fXH9F1a+nO1Wm1B6EEBpmdRoH2jRD92+mY6 ZGuTt+rvhWgfqeFsoqETcVd1KOmdoWQ+IA== X-Received: by 2002:a1c:a695:: with SMTP id p143mr27260709wme.128.1557999764844; Thu, 16 May 2019 02:42:44 -0700 (PDT) Received: from localhost (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id t15sm4635388wmt.2.2019.05.16.02.42.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 02:42:44 -0700 (PDT) From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org Cc: Kirill Tkhai , Hugh Dickins , Alexey Dobriyan , Vlastimil Babka , Michal Hocko , Matthew Wilcox , Pavel Tatashin , Greg KH , Suren Baghdasaryan , Minchan Kim , Timofey Titovets , Aaron Tomlin , Grzegorz Halat , linux-mm@kvack.org, linux-api@vger.kernel.org Subject: [PATCH RFC 5/5] mm/ksm, proc: add remote madvise documentation Date: Thu, 16 May 2019 11:42:34 +0200 Message-Id: <20190516094234.9116-6-oleksandr@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190516094234.9116-1-oleksandr@redhat.com> References: <20190516094234.9116-1-oleksandr@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document respective /proc//madvise knob. Signed-off-by: Oleksandr Natalenko --- Documentation/filesystems/proc.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 66cad5c86171..17106e435bba 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -45,6 +45,7 @@ Table of Contents 3.9 /proc//map_files - Information about memory mapped files 3.10 /proc//timerslack_ns - Task timerslack value 3.11 /proc//patch_state - Livepatch patch operation state + 3.12 /proc//madvise - Remote madvise 4 Configuring procfs 4.1 Mount options @@ -1948,6 +1949,18 @@ patched. If the patch is being enabled, then the task has already been patched. If the patch is being disabled, then the task hasn't been unpatched yet. +3.12 /proc//madvise - Remote madvise +-------------------------------------------- +This write-only file allows executing madvise operation for another task. + +If CONFIG_KSM is enabled, the following actions are available: + + * marking task's memory as mergeable: + # echo merge > /proc//madvise + + * unmerging all the task's memory: + # echo unmerge > /proc//madvise + ------------------------------------------------------------------------------ Configuring procfs -- 2.21.0