From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Dobriyan Subject: Re: [PATCH RFC 0/5] mm/ksm, proc: introduce remote madvise Date: Thu, 16 May 2019 20:24:52 +0300 Message-ID: <20190516172452.GA2106@avx2> References: <20190516094234.9116-1-oleksandr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20190516094234.9116-1-oleksandr@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: Oleksandr Natalenko Cc: linux-kernel@vger.kernel.org, Kirill Tkhai , Hugh Dickins , 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 List-Id: linux-api@vger.kernel.org On Thu, May 16, 2019 at 11:42:29AM +0200, Oleksandr Natalenko wrote: > * to mark all the eligible VMAs as mergeable, use: > > # echo merge > /proc//madvise > > * to unmerge all the VMAs, use: > > # echo unmerge > /proc//madvise Please make a real system call (or abuse prctl(2) passing target's pid). Your example automerge daemon could just call it and not bother with /proc.