Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbdGQJQg (ORCPT ); Mon, 17 Jul 2017 05:16:36 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:35046 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751257AbdGQJQe (ORCPT ); Mon, 17 Jul 2017 05:16:34 -0400 Message-ID: <1500282938.8256.9.camel@gmail.com> Subject: Re: [PATCH 5/6] mm/memcontrol: support MEMORY_DEVICE_PRIVATE and MEMORY_DEVICE_PUBLIC v3 From: Balbir Singh To: =?ISO-8859-1?Q?J=E9r=F4me?= Glisse , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: John Hubbard , David Nellans , Dan Williams , Michal Hocko , Johannes Weiner , Vladimir Davydov , cgroups@vger.kernel.org Date: Mon, 17 Jul 2017 19:15:38 +1000 In-Reply-To: <20170713211532.970-6-jglisse@redhat.com> References: <20170713211532.970-1-jglisse@redhat.com> <20170713211532.970-6-jglisse@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 23 On Thu, 2017-07-13 at 17:15 -0400, Jérôme Glisse wrote: > HMM pages (private or public device pages) are ZONE_DEVICE page and > thus need special handling when it comes to lru or refcount. This > patch make sure that memcontrol properly handle those when it face > them. Those pages are use like regular pages in a process address > space either as anonymous page or as file back page. So from memcg > point of view we want to handle them like regular page for now at > least. > > Changed since v2: > - s/host/public > Changed since v1: > - s/public/host > - add comments explaining how device memory behave and why > > Signed-off-by: Jérôme Glisse > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vladimir Davydov > Cc: cgroups@vger.kernel.org > --- Acked-by: Balbir Singh