Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp707828ybi; Fri, 24 May 2019 10:08:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsIi//1FxzRtHiqg/bjk1YL6IyBolcqW2hKwDCDRKYJl/D0h4uQZhGO2uUQP9WFn7JG8qp X-Received: by 2002:a63:1160:: with SMTP id 32mr107828498pgr.106.1558717703341; Fri, 24 May 2019 10:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558717703; cv=none; d=google.com; s=arc-20160816; b=pzMBYKu+R5XtJAZkH5HSIsM4/Ej0LKfcblGxJ/AX/mXex9JWQAYRIcLeYGcDxobO0K SS3ZKXJ98K/WIEe1C4k/rGZKODBNHdlTOpYUDJAIOH6/oeTUR8rVeo8UgHo/B60/2/3I a9HPJ82ls2/zl5hrlhFAg+3phruecowGt0Vt38aD9Itq4cQlMlJplMw0eLYBFnEKVYvL Ul5H6v5Rg6hSPSHrUo+UT0NZPDTm+PhI7NiZ+I6viupRUbKmjeBdf0wgy/9nuA9WO6Yq 3/2LpDqC6XPmRStQvi5Y2fBZcw0RmeXOcybJ/knbU2YLw7Zs+yB/wYoEWmUtT6ItCimu lWXg== 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:dkim-signature; bh=Nd2Lj9Q7aDsjzQ8w/THzJxRiwvjWHcaNNXAaDuTseEo=; b=on6f/ZKwTWRZ+XQAPdjetC+L0aBHd8wLJ2QeH9KwvIJLhKeuPJg6x2soxpTDFu3sKt UVEquasI/UZxxpBgGSjXsVYse1jS3Xjd5ooO1+BHun2Rcdd14/OpWgnlzP9d5q+2jwEL eWEvHuG0q60PDF1feYBtyR9iZH4mmXtf2h5JfpzGsIPIch8y7Wwv69T5ae5sMBSxh54Z ls4wBai+OEHLMZ0KZVas5wd8oVHwxu5dPCOzHWO9UuKFSWVWKMC5SF9p8bnz8SrnzKWt 56oVGFZJfS3vWWSAHZ4LazUZOJUlStabFPDGmxfC+jlLXOgWpuXocQ3tqBoSYRaTrmqm fjJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="g/ueHChD"; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si5511609pfp.109.2019.05.24.10.08.07; Fri, 24 May 2019 10:08:23 -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; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="g/ueHChD"; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731884AbfEXRGq (ORCPT + 99 others); Fri, 24 May 2019 13:06:46 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37708 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729681AbfEXRGq (ORCPT ); Fri, 24 May 2019 13:06:46 -0400 Received: by mail-pf1-f193.google.com with SMTP id a23so5694330pff.4 for ; Fri, 24 May 2019 10:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Nd2Lj9Q7aDsjzQ8w/THzJxRiwvjWHcaNNXAaDuTseEo=; b=g/ueHChDmzv10RhToAZSHSTBKjmteHa2+GUrTouq4WT3zsId5XyPYsDLo0VEZ2lsk8 xxwdc+zYgqElB7Hvgr2sCKnjTYGslk7l0zl7pL6buSlo4cp3mxDXesT1bju4whIW9YTD Xuy4SOumA5cjyBIoyw9VlY9FgRNaGt/IqUr+XyQYlD5nDnja70C44raTby78ZUIDd1gl a5Sp9sBHrPzzyBHOEJQJe5yj3Kd+hIFzn2zlMyvZHtC4Byo12tj+FkG/59LC1tfn7w8G Pxe7hqzs2TKDKBOdg5W94Xk89woskg4bqexiagAxDpcv/zg5EhumBoaR1/Fa0bIqYdRx aAIQ== 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:in-reply-to:user-agent; bh=Nd2Lj9Q7aDsjzQ8w/THzJxRiwvjWHcaNNXAaDuTseEo=; b=YdBBuVY6JV8jq5cKzv3NRIpaA0I92NtfFzciogsNmvgjAkmDBeqwiaLRtQMN6snSzE YNslh9uYAkBdq2Bdr1aq7XJ2M4+7xjwNJLSArN2MekVY1jvmxiJGOiONmG2IBfVqchHk 7Mm+g1CGAYlTgQQbn4wKwKJBKbcrlX8AJDZD6dmu8u7AMtcoITF73Op6g2Z4QFJMUe77 RI7JwtBt1R6+jcQUPE3APArnxf83BvgpVa7yokxKt10WZ4bOcleMD45bv2oIFcLbs9Vf wH0onr/8IaTqYEtsGfaUuuqpF3MtA0dJwCAITxy71gpXlbp/XrGVZibT8ms4QLgmjEy4 3kDw== X-Gm-Message-State: APjAAAXqssDvYXvEGw8dqUgwqZlshRKiYsHT+lonLp9/mTdMP4puOwA6 l1r5Cc9BWzquyM2M+sVLHReW9w== X-Received: by 2002:a17:90a:a616:: with SMTP id c22mr10749010pjq.46.1558717605295; Fri, 24 May 2019 10:06:45 -0700 (PDT) Received: from localhost ([2620:10d:c090:180::805]) by smtp.gmail.com with ESMTPSA id h5sm3485126pfk.163.2019.05.24.10.06.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 May 2019 10:06:44 -0700 (PDT) Date: Fri, 24 May 2019 13:06:42 -0400 From: Johannes Weiner To: Matthew Wilcox Cc: Shakeel Butt , Andrew Morton , Linux MM , linux-fsdevel , LKML , Kernel Team Subject: Re: xarray breaks thrashing detection and cgroup isolation Message-ID: <20190524170642.GA20546@cmpxchg.org> References: <20190523174349.GA10939@cmpxchg.org> <20190523183713.GA14517@bombadil.infradead.org> <20190523190032.GA7873@bombadil.infradead.org> <20190523192117.GA5723@cmpxchg.org> <20190523194130.GA4598@bombadil.infradead.org> <20190523195933.GA6404@cmpxchg.org> <20190524161146.GC1075@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524161146.GC1075@bombadil.infradead.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 09:11:46AM -0700, Matthew Wilcox wrote: > On Thu, May 23, 2019 at 03:59:33PM -0400, Johannes Weiner wrote: > > My point is that we cannot have random drivers' internal data > > structures charge to and pin cgroups indefinitely just because they > > happen to do the modprobing or otherwise interact with the driver. > > > > It makes no sense in terms of performance or cgroup semantics. > > But according to Roman, you already have that problem with the page > cache. > https://lore.kernel.org/linux-mm/20190522222254.GA5700@castle/T/ > > So this argument doesn't make sense to me. You haven't addressed the rest of the argument though: why every user of the xarray, and data structures based on it, should incur the performance cost of charging memory to a cgroup, even when we have no interest in tracking those allocations on behalf of a cgroup. Which brings me to repeating the semantics argument: it doesn't make sense to charge e.g. driver memory, which is arguably a shared system resource, to whoever cgroup happens to do the modprobe / ioctl etc. Anyway, this seems like a fairly serious regression, and it would make sense to find a self-contained, backportable fix instead of something that has subtle implications for every user of the xarray / ida code.