Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp635618yba; Wed, 15 May 2019 07:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwcMNdyhPjbB5v4MZQkn27HD9UuCaYCgipmUcCJqCRNdP5oyKY5quMJGPSw7Z/9WU3d1sL X-Received: by 2002:a62:1a93:: with SMTP id a141mr15293045pfa.72.1557930360835; Wed, 15 May 2019 07:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557930360; cv=none; d=google.com; s=arc-20160816; b=zd6RwrQdbCzDSsk+7MG24iYAq2xPcGqMGbGWGaVNx0CrapGWM6kHLogL364BwSov+R I0w8PZ76G+zWDzy76edO76w0OH6IWN7wZkseU7esw0toIRhqCk3PQwOhS5jBCwkqJR1K KEBFtnSTgAP7ZntLTOwzb38RmAhNjabpDxAwniVKNnXv/AwwccZ8kLPnH6dRtZ4OF49/ pajd4FcvEu4o7gAHn6saK9khtD7ReCY+wM/oNNkQHxGlA0gH/MdvW6dEj7+4FqobqeUf 9oE3KlUz8ZvZYmU2gQ6RjxbBBM1fNJcaiZ5oSI97On1+ALZ881h7dDxHHbqNLWZGbWu6 uXTQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R6SfYUURybcFTNACeHn1BEBuqop/WIQBpGhDMXT5TSE=; b=mC0Hb9QNKn5dgx7HNvDDYVuqAqfjQYgLNCIXfa60rtXUos6KWYHDLepNWJCfDZJrmq abn81edJ+dp72flzoNb6ZBNvxpUzgIfUBWrxNUeqq/zW+wPsuAmCSeOfCuYLfbQ9dfPt xx7jXTMkPXRaqqy7OFQ0iOcTzwV14BFhYL1JcZ4cUuUgiOVx4GZOWa9T8DZnarJDHXZu AXblznAjWhlVIWNsE5qyA0hLAIKcFeA2sGw76dj+WcvMwBwEIuksdWNkWwiupu6/aNue voSYAmXHhSy9xiZlvPUJo64oolGoEfC9XDPq4ti56T+Jp6Y748H3LALo/zxqgD/MnZEA oUgg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si1930086pgh.321.2019.05.15.07.25.45; Wed, 15 May 2019 07:26:00 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727499AbfEOOYW (ORCPT + 99 others); Wed, 15 May 2019 10:24:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:47196 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726098AbfEOOYW (ORCPT ); Wed, 15 May 2019 10:24:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 08E71ACF5; Wed, 15 May 2019 14:24:21 +0000 (UTC) Date: Wed, 15 May 2019 16:24:19 +0200 From: Michal Hocko To: Oleksandr Natalenko Cc: linux-kernel@vger.kernel.org, Kirill Tkhai , Vlastimil Babka , Matthew Wilcox , Pavel Tatashin , Timofey Titovets , Aaron Tomlin , Grzegorz Halat , linux-mm@kvack.org, linux-api@vger.kernel.org, Hugh Dickins Subject: Re: [PATCH RFC v2 0/4] mm/ksm: add option to automerge VMAs Message-ID: <20190515142419.GD16651@dhcp22.suse.cz> References: <20190514131654.25463-1-oleksandr@redhat.com> <20190514144105.GF4683@dhcp22.suse.cz> <20190514145122.GG4683@dhcp22.suse.cz> <20190515062523.5ndf7obzfgugilfs@butterfly.localdomain> <20190515065311.GB16651@dhcp22.suse.cz> <20190515073723.wbr522cpyjfelfav@butterfly.localdomain> <20190515083321.GC16651@dhcp22.suse.cz> <20190515085158.hyuamrxkxhjhx6go@butterfly.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190515085158.hyuamrxkxhjhx6go@butterfly.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 15-05-19 10:51:58, Oleksandr Natalenko wrote: > On Wed, May 15, 2019 at 10:33:21AM +0200, Michal Hocko wrote: > > > For my current setup with 2 Firefox instances I get 100 to 200 MiB saved > > > for the second instance depending on the amount of tabs. > > > > What does prevent Firefox (an opensource project) to be updated to use > > the explicit merging? > > This was rather an example of a big project. Other big projects may be > closed source, of course. Again, specific examples are usually considered a much better justification than "something might use the feature". [...] > > OK, this makes more sense. Please note that there are other people who > > would like to see certain madvise operations to be done on a remote > > process - e.g. to allow external memory management (Android would like > > to control memory aging so something like MADV_DONTNEED without loosing > > content and more probably) and potentially other madvise operations. > > Or maybe we need a completely new interface other than madvise. > > I didn't know about those intentions. Could you please point me to a > relevant discussion so that I can check the details? I am sorry I do not have any specific links to patches under discussion. We have discussed that topic at LSFMM this year (https://lwn.net/Articles/787217/) and Google guys should be sending something soon. -- Michal Hocko SUSE Labs