Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755569AbbHQPLt (ORCPT ); Mon, 17 Aug 2015 11:11:49 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34783 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754075AbbHQPLs (ORCPT ); Mon, 17 Aug 2015 11:11:48 -0400 Date: Mon, 17 Aug 2015 17:11:45 +0200 From: Michal Hocko To: Ben Hutchings Cc: Andrew Morton , LKML Subject: Re: [PATCH] mm: Change global memory state symbols to GPL-only Message-ID: <20150817151145.GF10894@dhcp22.suse.cz> References: <1439682147.10857.99.camel@decadent.org.uk> <20150817135448.GB10928@dhcp22.suse.cz> <1439823392.10801.16.camel@decadent.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439823392.10801.16.camel@decadent.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1286 Lines: 30 On Mon 17-08-15 16:56:32, Ben Hutchings wrote: > On Mon, 2015-08-17 at 15:54 +0200, Michal Hocko wrote: > > On Sun 16-08-15 01:42:27, Ben Hutchings wrote: > > > Proprietary modules should not be able to touch vm_stat or participate > > > in shrinking. > > > > How does the external and !GPL fs does slab reclaim? Those are essential > > for the proper memory balancing. > > If they know how to do shrinking on Linux then they are probably > derivative works of Linux. I am not sure I understand. They are shrinking their internal cached objects and that is hardly a derivative work. The shrinker API is only meant to let them know _when_ this should happen and the interface is a pretty much simple callback API. I do not want to defend a proprietary code here but this sounds like an obstruction for those modules which will lead into a worse code in the end because they should somehow manage the cache and it is much better when the core (MM) tells them when it makes sense rather than external heuristics. -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/