From patchwork Thu Nov 29 18:10:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michal Hocko X-Patchwork-Id: 10705191 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 C62E713BF for ; Thu, 29 Nov 2018 18:11:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B689A29F51 for ; Thu, 29 Nov 2018 18:11:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA7EF2F57D; Thu, 29 Nov 2018 18:11:02 +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 47ABB2F606 for ; Thu, 29 Nov 2018 18:11:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3BA2A6B53E4; Thu, 29 Nov 2018 13:11:01 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 36C456B53E6; Thu, 29 Nov 2018 13:11:01 -0500 (EST) 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 2595E6B53E7; Thu, 29 Nov 2018 13:11:01 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by kanga.kvack.org (Postfix) with ESMTP id DB7086B53E4 for ; Thu, 29 Nov 2018 13:11:00 -0500 (EST) Received: by mail-wr1-f72.google.com with SMTP id y7so1748188wrr.12 for ; Thu, 29 Nov 2018 10:11:00 -0800 (PST) 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:mime-version:content-transfer-encoding; bh=TTLw/YX/4tz+//IsjZUx/+ZIrgmO02cZMRB+f+Hu0iM=; b=PLTbEOIkOYOv12C91eHaq/h1tOCh/Bvq+ewwu2tK3f6+2qF6wez9QfJ1DHYrXbUs4C a7BaRJe9wDq++Ue1K4GGLPyonsKDEmNEqEEvH8IkR0+Y2zXm6ZI+U0xDQMbPol0KkYsf sOw8EbP9FrpmZTvSDZU8nkGbxqk9pfCrsVttqsXC2NRbbhWqIu1sbgIhiASAg8bOWoiX 8YWiWKntGTS+NZOWvwqOSHA/gTMMEamiFVCg1gBpm5DrZU6vKKxax3ULEdPpjsDp2YOg 269y/I6AR4iTVm4IYpXOTs3OxYUueag7Z1Ck3eK8IEIdk/RCnPA6LRgD71Z4xCTXqW1C oX3g== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Gm-Message-State: AA+aEWarLaMJOlT60E8KMwWReKwpvS/B4A+ZOb4Rlg0mVA5z6xLHmSe7 AcjdP5v2fEjgZsM0X1T/z3z3dp3pUFRCVtF2rlVxnFR9eIZ0DnIGhUESdMEJh7Wpj/IAqaqLMjM rFJOturhJGARkVbiqxYvmweik3+RD2o7fbgdC9wP7SLeK5wb0HCgGxdwpHhf12RRZ/y+xkYszbv FU+gkVKTwTcOH9ORAO8zVzrhj5rW8woWDBtYDV3KDt6RXzX2DqiyNPrH+1x+q5OGrouI54vnIRf C/KgZsmQQO7+l2pJYak5iaUgYi/uRGLtdyUodnA7X54oXqFKW7nQLaLxWg2K8g3TN4xTP46KkQV J1uJ9j6ylmawKzE2pXtXKShivl9TfN2c+vQXpgPfqDGuy/EqP6s9lo46hH0NCZiw9t6EX8xGYA= = X-Received: by 2002:a1c:d988:: with SMTP id q130mr2802139wmg.41.1543515060479; Thu, 29 Nov 2018 10:11:00 -0800 (PST) X-Received: by 2002:a1c:d988:: with SMTP id q130mr2802104wmg.41.1543515059726; Thu, 29 Nov 2018 10:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543515059; cv=none; d=google.com; s=arc-20160816; b=sYogkYlg9utW22cvXCp+oGjJyfnamp/XoFsG5KQUvPTRErjgaWvuvl/aH2n5DsfyEo 84Vo7kHqhT9sMsonNcebUMYMSF8TsqI6DH9kr9agtRZAumgv81ekncExrP7kg8og9Vjb WYzVMlQTMRkQ7erSvLYVA+e2cG/uTCj41RyP9ieXCPhFSdZxl250cxznPdtLb/iA+jzN lYOZbvYLzBrcCd83brF76AROBbCpGhKT+/JXjOPKkPDq/+ySlwg5sYFABAVftE1TICa9 X4etp1ynBtTfOjM57MTIsDqzWnGRAZajaBpKWS+pmfW95cHgWfD/cPHuUuhqfdqtHct5 tBKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=TTLw/YX/4tz+//IsjZUx/+ZIrgmO02cZMRB+f+Hu0iM=; b=EGBmoOn/XvHtcurzDMVN34PjyXywXSD3tOEoxTcM5Q2wnkLZJhBvFhEMkuR3He9Wsu U+1cxo9bhPg4K9SCRCw5SWtGES0TraEUFpBYuUQX4st+CDGLf9rcoJuamwlrVziQN9QQ jxxvTEiVaZ+0xl1bON46mv6vp6CbzhOSwTq4qK45wW7pSnpxFcfkZnFZf12QHNsmqjUl uxRyf7AiSfDhvFiQakwIBIADhQtmqRbB6LFfQCYLQZLx4Bf4FoQuHR4aSO2w3Hv9Zj8e dByk8IR2KQRP2xYAby7Pnzrw+/TJKXi7AaFEA+uBKRdbkNAcjbJmNKM9qSzdr/07GpKe 2bUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t10sor2202568wmt.1.2018.11.29.10.10.59 for (Google Transport Security); Thu, 29 Nov 2018 10:10:59 -0800 (PST) Received-SPF: pass (google.com: domain of mstsxfx@gmail.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 mstsxfx@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mstsxfx@gmail.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Google-Smtp-Source: AFSGD/WNa/uIk7S3WIuDVFdO0ai09XZIz1v7JpMtk/9EYaNrsbN1t1iHFP7D9QnQNWzRRIHYB4d2nQ== X-Received: by 2002:a1c:9314:: with SMTP id v20mr2753103wmd.15.1543515059251; Thu, 29 Nov 2018 10:10:59 -0800 (PST) Received: from tiehlicka.suse.cz (ip-37-188-240-221.eurotel.cz. [37.188.240.221]) by smtp.gmail.com with ESMTPSA id 185sm3977039wmx.41.2018.11.29.10.10.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 10:10:58 -0800 (PST) From: mhocko@kernel.org To: Michael Kerrisk Cc: , =?utf-8?q?Niklas_Hamb=C3=BCchen?= , Shaohua Li , linux-man@vger.kernel.org, Michal Hocko Subject: [PATCH] madvise.2: MADV_FREE clarify swapless behavior Date: Thu, 29 Nov 2018 19:10:48 +0100 Message-Id: <20181129181048.11010-1-mhocko@kernel.org> X-Mailer: git-send-email 2.19.1 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 From: Michal Hocko Since 93e06c7a6453 ("mm: enable MADV_FREE for swapless system") we handle MADV_FREE on a swapless system the same way as with the swap available. Clarify that fact in the man page. Reported-by: Niklas Hambüchen --- man2/madvise.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/madvise.2 b/man2/madvise.2 index eb82a57a1cf5..d9135a05a1c2 100644 --- a/man2/madvise.2 +++ b/man2/madvise.2 @@ -403,7 +403,7 @@ The operation can be applied only to private anonymous pages (see .BR mmap (2)). -On a swapless system, freeing pages in a given range happens instantly, +Prior to 4.12 on a swapless system, freeing pages in a given range happens instantly, regardless of memory pressure. .TP .BR MADV_WIPEONFORK " (since Linux 4.14)"