Received: by 10.213.65.68 with SMTP id h4csp2098470imn; Thu, 5 Apr 2018 08:57:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/oUJMBDjm2ZaDJ7l45W20tiLGjeGdNIbBAjQLwhPvuxa2YUQQo0g58/mI6zeMQf/xTYCHy X-Received: by 2002:a17:902:2803:: with SMTP id e3-v6mr22958332plb.156.1522943877151; Thu, 05 Apr 2018 08:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522943877; cv=none; d=google.com; s=arc-20160816; b=bIyn/dwPzcOKajacXMNDp8p6nNRIBiV71A2jkBDp9EZ2Sg7V7xlj6vgm70c6P5on6e fC/v8aNiEmVvXLsEl+ugPqJFIEUR/7J/naOktTvAaqUaupRyRzyo5TVgpoYyds3gTcQv wcIU7IOuQxva4V/AoOFe1q6wcYvXq693M76Qgp/vO0qn5WPfa6ukoyyofdWFqi7qxz+D lmBRPd3Ubs1sDP+9I93IUlI42JaoljxQXTDVaQz6GaoEfdHfoLENUFGw92TpmmMlolVS u4PHy3HB0CqL9570K+YmEqoNXt74ijPuwtF5cnQFUb6tCRF5XtY7gmslW1lCIIkXkdXi msFQ== 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:arc-authentication-results; bh=7he/2hvjP7AGUZP3UEQ8Wvx12stWQqrxM1Hqq0bR2kg=; b=EskQuGVXp44dP3MipHPpajw9rrU3xGhivL+0cSSQxUHeHQNI/snKjJsveUwkxkEZPk zLL/SBnCYdVBZTdcyxb9IL7kVSzoobzOyGWlZEWEUd3eSWQSb4A0oJcqOas+RZ3qRsnY gP+N1aivHGz32gElA+0o4vSAUX386ggiq105xAP2Ctv4VybEOU1dXZ95vGTUu1vnpVTX r6zygG4BM0icY+csfRtH/YYRsM4uqggy6zciqwA0ZBZ3qkl1r1gfStQjKakcn1CwF3W3 bRAjtajV6AaPqmd2m+7TTcIF3wpLFEs+G/bLXQeCHrIy5j0a7WVqLffCUVVXIt/ouw+L GZlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=k/nMGpgU; 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 z62si5580851pgd.819.2018.04.05.08.57.42; Thu, 05 Apr 2018 08:57:57 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=k/nMGpgU; 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 S1751437AbeDEP4g (ORCPT + 99 others); Thu, 5 Apr 2018 11:56:36 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:51550 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbeDEP4f (ORCPT ); Thu, 5 Apr 2018 11:56:35 -0400 Received: by mail-wm0-f50.google.com with SMTP id u189so7029502wmd.1 for ; Thu, 05 Apr 2018 08:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7he/2hvjP7AGUZP3UEQ8Wvx12stWQqrxM1Hqq0bR2kg=; b=k/nMGpgU8/RjC2tUZWqZ12/OT9VVsykc/7eMprFEUVQs4J3rVUkqmdsGUjocJ9UE8a r0uSvzlsaZqvofkK6o3yaZm2gfBhymvPvLF+w+nnVLoh1H1xxD6k34ZtSoFxqbG1GUn3 YpOj5/e1sHg+5apo06P+60OEC7ewYITfjlD1CnnTwLkxxiRU7eE5wodkF4nQ3kl9P9Jc k5jL1JKRncT6iDQlCo8UFAUI/VJ65fqu+cUzg3VuRFwvJn74Fqp34J7E4a1lwhHmdJOg S6fESDG77R5KsnwMf3X5ajH2bs21dV5CuSF03IsjZhTdZ5uBBoLlvzxnwMHFjBVwjqqe KnQw== 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=7he/2hvjP7AGUZP3UEQ8Wvx12stWQqrxM1Hqq0bR2kg=; b=ONyQCWeOWcGovYlMJdbkgv/t8SNSFVy7m9NIz3j1YM3YzLC144xJcubnztuWRy6Ojy PS1S02VcIQ81lerL0mkzQvQZJanIfXVQdgEmhgRz4v/1jnwt4Y6qqoQuJ72Si+lRCcl+ e11tEvJW43tskxhI+qoeVdFLeFhSFC5kh2mXXWgBc581Yfp9aF8mx0+7HJ5BU+ID2GBG dSw0/Q6lvU6e/qRUhcp8ZdwLdJol1K1/p2cuCzERdRYk3bzH0pCeJKsJhvF3P2rzFchN 7egPBqxxSid0G3Ig6XV4/LX6c1fS3ppapfRPjWNm8LNXV2OvLc7s8Aq4ae+jnbIhfgOr 3wlA== X-Gm-Message-State: ALQs6tAC8FsshQNm16umrAI+U3CUIOjcsNZS5Ljaj9UpakfiqSsuo8bA NCHhyE7/uxNJZUpqn3IRE1AQ8bUk X-Received: by 10.80.230.9 with SMTP id y9mr3375188edm.26.1522943794225; Thu, 05 Apr 2018 08:56:34 -0700 (PDT) Received: from node.shutemov.name ([178.124.220.81]) by smtp.gmail.com with ESMTPSA id l91sm5049475ede.50.2018.04.05.08.56.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 08:56:33 -0700 (PDT) Received: by node.shutemov.name (Postfix, from userid 1000) id 3A88D648D520; Thu, 5 Apr 2018 18:55:51 +0300 (+03) Date: Thu, 5 Apr 2018 18:55:51 +0300 From: "Kirill A. Shutemov" To: Michal Hocko Cc: Naoya Horiguchi , "linux-mm@kvack.org" , Andrew Morton , Vlastimil Babka , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1] mm: consider non-anonymous thp as unmovable page Message-ID: <20180405155551.wchleyaf4rxooj6m@node.shutemov.name> References: <1522730788-24530-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20180403075928.GC5501@dhcp22.suse.cz> <20180403082405.GA23809@hori1.linux.bs1.fc.nec.co.jp> <20180403083451.GG5501@dhcp22.suse.cz> <20180403105411.hknofkbn6rzs26oz@node.shutemov.name> <20180405085927.GC6312@dhcp22.suse.cz> <20180405122838.6a6b35psizem4tcy@node.shutemov.name> <20180405124830.GJ6312@dhcp22.suse.cz> <20180405134045.7axuun6d7ufobzj4@node.shutemov.name> <20180405150547.GN6312@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405150547.GN6312@dhcp22.suse.cz> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 05:05:47PM +0200, Michal Hocko wrote: > On Thu 05-04-18 16:40:45, Kirill A. Shutemov wrote: > > On Thu, Apr 05, 2018 at 02:48:30PM +0200, Michal Hocko wrote: > [...] > > > RIght, I confused the two. What is the proper layer to fix that then? > > > rmap_walk_file? > > > > Maybe something like this? Totally untested. > > This looks way too complex. Why cannot we simply split THP page cache > during migration? This way we unify the codepath for archictures that don't support THP migration and shmem THP. -- Kirill A. Shutemov