Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp217922yba; Tue, 14 May 2019 23:28:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrojbwKGF0+o6UXronbTRHF7f7QYzwvhsuO38dNqguhnowcVMtJqWi+pf/0xavaWTrZAXI X-Received: by 2002:a63:1c4:: with SMTP id 187mr15153114pgb.317.1557901682078; Tue, 14 May 2019 23:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557901682; cv=none; d=google.com; s=arc-20160816; b=gWapgjthECcUoZPnnb0X+U3I8L3l+HJ3A6BDj7syYk637XTD+WyonFbuRaMRMbj50e +uytOuuibxUhL2stUUxsBpnKeQgdmGMBH4ufcvXLTCbAL9DP1pI7MQKnLwI+YkEi0w9Q O6HfLbxNT38YM9hrJFKQpr9QlxVEudhXovfUq95L/eSaxrH6UmlD19bJwK35ZbHf40V7 26/Ur5ReYL+Ti9+Y+7oBIgytf973owi81/X5bgaH79suAU6CHqeCWm0DzUicPEe1IUxD GNY4qyMz8Z0Vfof7bje2k2bX3NT2OP6ESmZw37/jsnVkCxqponnVlTkbf6flpEKrA0nl RAAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=r4oR53z2LH/girWhdadET5NwW+9qTEXME3Zh2uwLVAY=; b=MC/vCJ3NA9Npx4gMZS29NRgSw90DqVNY99bipaVhCniis5byeEKNzHoeK6CZy/BIAc 2lCpstHLZUJTbRjxkh4JS2CS6D1CVAtu48CaOBEohRm0uCejitv9pmkglIQJLsU2h+ZD PXVJLDcQ3h1EADG5IrKqJdFj9JgTCEEuTNJDKU1A8ymMqpl4qlJKmwScSMG6iP783ql5 49MEwmfwc3u6fjRsEdeWl9gPqcZp4461DmYn23JWWs1FEceI3p/BEl+i1+pSHTDfrq97 nvzNeFqZji0znS9uMjn0EfOrORfyGyTcXnMj0O8GpmuSgy2mc4zXFpnVxd/8lmYKl80d 5goQ== 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 j1si999640pld.399.2019.05.14.23.27.46; Tue, 14 May 2019 23:28:02 -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 S1726254AbfEOG0n (ORCPT + 99 others); Wed, 15 May 2019 02:26:43 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45298 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfEOG0m (ORCPT ); Wed, 15 May 2019 02:26:42 -0400 Received: by mail-wr1-f68.google.com with SMTP id b18so1190670wrq.12 for ; Tue, 14 May 2019 23:26:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=r4oR53z2LH/girWhdadET5NwW+9qTEXME3Zh2uwLVAY=; b=YfVWiPtYv8H/y9Mzea6GYU35974LNeTfXNyqBq2zYX4+vqfa7VThNUfK/BhyoC2Vbv foy5/D56QCxzqJr35PHa8FnJWiQ+H57lZmzQ0tlQ/dfUNtm2sk5sqReiTxVrUATI2vd9 nDYt0QyWN7AbUtvmAgE49sRea+OeLdICJmmqUZfzRTOItFo3YJT89OCrIF028fITgoEF ANjk4GPshOJ8C0PV8nYkzSLhWvwxODmiInz3PTBtWs+gWPONn3dnpvuiQWShLielni3i 0hr1muZgYdwzxoZUc1sSqgOu/6x3+H0odbz8iT355SCXJFjOShI4VB6t1FiCX+Ml3nJU F0iw== X-Gm-Message-State: APjAAAXaVm/k/qMs6CvdU0VyTaFdLemQqcRSdiWSNnHGHfbrUzI0J4jX GlL8lSYgYWHohIpP1Z+WKZiXBg== X-Received: by 2002:a5d:6750:: with SMTP id l16mr17082656wrw.274.1557901600948; Tue, 14 May 2019 23:26:40 -0700 (PDT) Received: from localhost (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id t7sm981391wrq.76.2019.05.14.23.26.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 23:26:40 -0700 (PDT) Date: Wed, 15 May 2019 08:26:39 +0200 From: Oleksandr Natalenko To: Timofey Titovets Cc: Linux Kernel , Kirill Tkhai , Vlastimil Babka , Michal Hocko , Matthew Wilcox , Pavel Tatashin , Aaron Tomlin , Grzegorz Halat , linux-mm@kvack.org, linux-api@vger.kernel.org, Hugh Dickins Subject: Re: [PATCH RFC v2 4/4] mm/ksm: add force merging/unmerging documentation Message-ID: <20190515062639.qpqdkbrmujhnxfg7@butterfly.localdomain> References: <20190514131654.25463-1-oleksandr@redhat.com> <20190514131654.25463-5-oleksandr@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. On Wed, May 15, 2019 at 03:53:55AM +0300, Timofey Titovets wrote: > LGTM for whole series > > Reviewed-by: Timofey Titovets > > вт, 14 мая 2019 г. в 16:17, Oleksandr Natalenko : > > > > Document respective sysfs knob. > > > > Signed-off-by: Oleksandr Natalenko > > --- > > Documentation/admin-guide/mm/ksm.rst | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/Documentation/admin-guide/mm/ksm.rst b/Documentation/admin-guide/mm/ksm.rst > > index 9303786632d1..4302b92910ec 100644 > > --- a/Documentation/admin-guide/mm/ksm.rst > > +++ b/Documentation/admin-guide/mm/ksm.rst > > @@ -78,6 +78,17 @@ KSM daemon sysfs interface > > The KSM daemon is controlled by sysfs files in ``/sys/kernel/mm/ksm/``, > > readable by all but writable only by root: > > > > +force_madvise > > + write-only control to force merging/unmerging for specific > > + task. > > + > > + To mark the VMAs as mergeable, use: > > + ``echo PID > /sys/kernel/mm/ksm/force_madvise`` > > + > > + To unmerge all the VMAs, use: > > + ``echo -PID > /sys/kernel/mm/ksm/force_madvise`` > > + (note the prepending "minus") > > + > In patch 3/4 you have special case with PID 0, > may be that also must be documented here? Thanks for the review. Yes, this is a valid point, I'll document it too. > > > pages_to_scan > > how many pages to scan before ksmd goes to sleep > > e.g. ``echo 100 > /sys/kernel/mm/ksm/pages_to_scan``. > > -- > > 2.21.0 > > > > > -- > Have a nice day, > Timofey. -- Best regards, Oleksandr Natalenko (post-factum) Senior Software Maintenance Engineer