Received: by 10.223.185.116 with SMTP id b49csp177524wrg; Thu, 22 Feb 2018 19:20:54 -0800 (PST) X-Google-Smtp-Source: AH8x226eWDjD+gkuCIJtUsbVR8Uv67g3lu0iMJPu9Q58h102Jaq9GqeMDlXBuwUvNsfbgJLcpvlM X-Received: by 10.99.117.28 with SMTP id q28mr216557pgc.187.1519356054269; Thu, 22 Feb 2018 19:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519356054; cv=none; d=google.com; s=arc-20160816; b=fwMd+egL+r4aIVWSiHP+da1YxfmGA2dfV87v/aUgvtHLu32gvuXtylej16f0n+4kmK 7Mp88tymhDdibmOacFIZPab+f83jSCaJ6ittDeR6Uu1poAwAVia0ZapPqf2C7bLKIiBB KDAmiYcySYn2pYQh71iMHUGdsMMl9QCJw2yLW98Lpv5TvLBEnzKQknlIMuIt9hRbzhkd mq2KBX4QZym4evUt6ZVXATeb91b3f3hXjdX6P7txbxu1YiDTay4PypDINIKLGRYbKWby JpjmuvAXkPDJ3MZ6afl6bUmX467YyY4mHWH8gOwxSoyVwJgNdyDntfBch2ZS+6cLaHOR 2DAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Ww2Ty5MLwRIYxEPHCoZWIM/pnR1ZbFGr5Awm4rivOPM=; b=WFoHOVOCNNO6JSn9zmyb5+X2AUDZ9O6delwBXSyD0LpaaCOnaLguYhOJtxzKxGB3tL E6LM/3spdwsOVY0FKJc1cntrG7XxV91ghA8b4rNbvq2v1vrbpX5c99/o9O1jfTfxSW9a yHxgr8EyLubgYNNumNNr6nhGtI3DpIgvrhLZJzS2B4VVteh25BpbliZigGAwn/r4EJH8 3uUmfdRCkec/yq1b9+l6oRwJfPCKYoihaK1ZfEQ5jBVrtHbgnBrCmC/YBu+2V2EtEuz7 OxOU8lNOVlShBOGdbfQVi2xOGhtM5VCYq1lqtBCfiNfK3DiYW6hYuD3lcswvYSoMFuzF juew== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si1065680plm.169.2018.02.22.19.20.39; Thu, 22 Feb 2018 19:20:54 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751404AbeBWDUA (ORCPT + 99 others); Thu, 22 Feb 2018 22:20:00 -0500 Received: from resqmta-ch2-10v.sys.comcast.net ([69.252.207.42]:45988 "EHLO resqmta-ch2-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbeBWDT6 (ORCPT ); Thu, 22 Feb 2018 22:19:58 -0500 Received: from resomta-ch2-19v.sys.comcast.net ([69.252.207.115]) by resqmta-ch2-10v.sys.comcast.net with ESMTP id p3tteXrnuuRinp3ttemHy7; Fri, 23 Feb 2018 03:19:57 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-19v.sys.comcast.net with SMTP id p3treDgXD3V8Pp3treOpa3; Fri, 23 Feb 2018 03:19:57 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 1D3FA116017D; Thu, 22 Feb 2018 21:19:55 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 19E801160059; Thu, 22 Feb 2018 21:19:55 -0600 (CST) Date: Thu, 22 Feb 2018 21:19:55 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Andrew Morton cc: Shakeel Butt , Jan Kara , Amir Goldstein , Pekka Enberg , David Rientjes , Joonsoo Kim , Greg Thelen , Johannes Weiner , Michal Hocko , Vladimir Davydov , Mel Gorman , Vlastimil Babka , linux-fsdevel , Linux MM , Cgroups , LKML Subject: Re: [PATCH v2 0/3] Directed kmem charging In-Reply-To: <20180221125426.464f894d29a0b6e525b2e3be@linux-foundation.org> Message-ID: References: <20180221030101.221206-1-shakeelb@google.com> <20180221125426.464f894d29a0b6e525b2e3be@linux-foundation.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfC+2BnQapE3bko5Hka0Ps5psNnCuu3TGLnhED+3ImUUOm/P6B1CyIe1EDw4n00+PCBR5MZa2punXwxj49FUpbii35O1wgTXLtof9cO24hH09KHxKfT1P 8uUJ2rehYpCEeQYZzt29Cjyw1FLpXquo+cF5xT3W8/1UHNVb5qjFxi5SWNwCAFVmAV2X5is9eYJ4fvcjFNQjmu1ilbG9lJF60n9/niXvkYxsrS2QUSnkBuTo Djm3mUqCbZHRy9poh1LYq95lW33OTsMRULJF6KTTM5sgxwWskKPjYUXyniDYfs/IulCFT+PTuaMul7p4pZSJJ2U2I8YMFMbB2ngQf8woac7eVZLoU2AHjeeK HxIiFCgUENQno9YEE81ewbUbD0FGXXl0YexGH4/x9/Qe/C14dgOoEg22XJvDvosX8TQ+rmnUnCCSvdw3jckavRndNvQGcLStvVgsLsL5oUcupJmVhrBxGlnJ sqUE2yAyM0Zbg/4xLkkUD3grmZ57LasrqC8FkdN4Rtwy10Ohj3ZfhyMimNgBoBcXcXAuJ11du0mjQODnSvNRRyy3OhfG4gYxm6TQT0+nt0l1SGn+QxGDYlyI 3iZdJSwXrS+uFxNIGqQ5mE34JKz26UwUgJJK6qrf/w6BV1MXCDpIHE4w3eQp7IN6Vok= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Feb 2018, Andrew Morton wrote: > What do others think? I think the changes to the hotpaths of the slab allocators increasing register pressure in some of the hotttest paths of the kernel are problematic. Its better to do the allocation properly in the task context to which it is finally charged. There may be other restrictions that emerge from other fields in the task_struct that also may influence allocation and reclaim behavior. It is cleanest to do this in the proper task context instead of taking a piece (like the cgroup) out of context.