From patchwork Thu May 16 09:42:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Natalenko X-Patchwork-Id: 10946179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC629912 for ; Thu, 16 May 2019 09:42:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCB4428972 for ; Thu, 16 May 2019 09:42:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B066628985; Thu, 16 May 2019 09:42:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 525E32898D for ; Thu, 16 May 2019 09:42:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3FDE76B000C; Thu, 16 May 2019 05:42:47 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3B1FF6B000D; Thu, 16 May 2019 05:42:47 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0D11C6B000E; Thu, 16 May 2019 05:42:47 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by kanga.kvack.org (Postfix) with ESMTP id B4F9E6B000C for ; Thu, 16 May 2019 05:42:46 -0400 (EDT) Received: by mail-wm1-f71.google.com with SMTP id h8so819944wmf.1 for ; Thu, 16 May 2019 02:42:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=I6Qf9WePQnjM1qP5GnvXQ6iGQgDn7ErWaVxKlruplAs=; b=pvBoNHr6WvUqgJZwi29PNhnVcWn02DDkH0NfGbieeinKz2/dXF/lcPZta1hM9lTWfP dI6KCzoaLegqTrBYpOKAwkZcd7grgaB5UUyiCxBE4UllN4de0PSIMuPy0twlz9f8K7m2 vabUbzZqvo3RDRMl8pnesDVl3RZUEGaEI3VJjbW31JMyqVo/vlP4WBTWB3x8PJKMw/Ee UdRwDEon5Ybl00Zl1/xUwMotr0wAvFPw11VLEwO82QZOWR1s4Uw1tTL7FwS84v5DV3To nGs0R3O6zFI8ewmBLtQpEJPNZve820qheSLtASWbY0aarMRsvnxBmGcoHjYKDorUfBvn 073w== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of oleksandr@redhat.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=oleksandr@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: APjAAAVrCDCBjGw3BrF0JSa4ON89UDMhqJqkM+0KEk2i0Wn6eB0ju9hl zNT7QfODtYfhCt6ypfHjWhqDDqE7W1cek/7fsK7xz6MAr3rWXlegQkQsLl0j13lz3qahvrAjTC2 sLD+A5yvb7FAkcaMsIF/6MCY5/C5Ycpxx+fRTonZUkY/EsIh7+Kj5b+PlRPDCcx/Glg== X-Received: by 2002:a1c:e144:: with SMTP id y65mr26100826wmg.147.1557999766268; Thu, 16 May 2019 02:42:46 -0700 (PDT) X-Received: by 2002:a1c:e144:: with SMTP id y65mr26100775wmg.147.1557999765221; Thu, 16 May 2019 02:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557999765; cv=none; d=google.com; s=arc-20160816; b=tACdX6GLPmwDzOHGMennKf9w9g8QXEfvmV3xJ7by8MlmAV8IrnMsEXeJ8fd78or27K ZUgXoY4woSg8k7wOBOd0CREO0YpCU4DvBNo5DWTEi6yGxUgZZWMzrTImTdwCmQhg2FZV IiCGitbi6RpEP9LK80NFp/JVVrySMdms6T10V2lTSrusxtpdNk+e0tVY7pxPWedHYBnM ekXwVvkK5ki/EZ/0wElox9vYKOj0dqiF/L3CCO2gRcRZTPotdeh8lwwMekUpn3tRNRuE aDio1twqJ/BXT0oy4oFOz+9JL+w7uUkWXnqSj4cDmXTvVRhqr9sg5ELeVjOxbWKjs7ax yQMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=I6Qf9WePQnjM1qP5GnvXQ6iGQgDn7ErWaVxKlruplAs=; b=VKQEFpXuUD/6QNr3ywWhKROJ/XlOT1jqVfDSPXRyluldLzOqwMB6Q5D1lf7KRfAISQ bL0HerS88FDnc0g0t1Jk/ucKEAmlpTCVhpSWh/NF5SV+TO+r4GAM3vVgIlFBzM0y6TM1 mu9Pm5nXfkcqPGs8enfKAabZ8fBsCG0QAXq71PhLzT05qRS7erq/1GQfjh7xfZykaIwu WIwm6ySIO7j9Pv+xsyHFgewZBnnAO6iXxHqgyKEj+mUrNvsdymM21puVsMmt015tGXsX lUPXCsECgXtnByF9Di5Fuea4hnZcxYSePM+A9iI1ClJg1ipPYaFhF6AsiUXEmlr19u2c 1Jqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of oleksandr@redhat.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=oleksandr@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o3sor2007346wmo.17.2019.05.16.02.42.45 for (Google Transport Security); Thu, 16 May 2019 02:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of oleksandr@redhat.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; spf=pass (google.com: domain of oleksandr@redhat.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=oleksandr@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Google-Smtp-Source: APXvYqwocKMkkFgpDNBPx7AOMP66gc9e2eLJvBHtDID7H77ayfvD2k23YyAA2hs51SHVNKxVSScv4w== 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 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: X-Virus-Scanned: ClamAV using ClamSMTP 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