Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3616911imm; Fri, 25 May 2018 08:39:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8xhfQCpcTGB9uxWorVSqtF+DgLV6w6cx7gIzzg7YXajqwIx3eip3mVIUJe0fs3+T2m58g X-Received: by 2002:a65:4a87:: with SMTP id b7-v6mr2413305pgu.271.1527262794084; Fri, 25 May 2018 08:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527262794; cv=none; d=google.com; s=arc-20160816; b=cw+Gxa5BHZKlVAME32ahN1fq9oJ0d1SpuKy2kqOHojuglwsQVxz52Kkf3kzWUnkJkG eJLaJnX8/MRlg/r4FCyaxRbz/oUX6hneFuIhQsSB39hnWwqWQt+4RAP06esJaxz+8LWM 2ZZk0paFBsIScoTFSC4lq5Z/5d5Ok6RYAhHK4XsqbtC2KuILnGiCQ+Owvz9GjGzdk8tA bi10oadI0bE5L+7WMNh0VEGtzpjBS4uwAj8ilF5BMSjhB5jI8UXxGZqWM8BgrOfcGe5z 1DmO4N0Tq6rPUWhJfDBQq65qift16hcEVQv04Nj+ESuTH+ZyXJlKqSBa15C3pA03Wzz6 l1EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=8zAxX2ch+zOoikzmfn5n2QcJoEo+Y4rH7veQfi4FDos=; b=c/RnDXkUiSheMqdhbI5vfksroYYl9kXscAnkZr82ZgrI2yLjjZTgj3SlbqL+29Mk33 NQ5bzzKd7MHWwEmc6iAuTxGa1ekkRlJm4OOihsc5EcqfbY81KbBPTgK9kXoBM0VBwGQ3 6sC1wfOGHJrKaoCMeQUGKFh2mnsoEijY8Sk7ETXKLlyFmu0HUXsA21Kyt4M71ejD1yiI dTPI39ykn/xCwEhTfbVrpND3PwHZWvzBcvSozdC33yJb3piOKi8dL7V3dtmRifspkp8s bwPkR9u3drpBQN94LPqkD6wvYUt1c98EeeCBeWOz99VhinBVrbocxXiKwjGaTj4v236J e+yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=ILueGXm4; 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 n3-v6si5577509pgr.106.2018.05.25.08.39.39; Fri, 25 May 2018 08:39:54 -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=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=ILueGXm4; 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 S966830AbeEYPi2 (ORCPT + 99 others); Fri, 25 May 2018 11:38:28 -0400 Received: from a9-114.smtp-out.amazonses.com ([54.240.9.114]:44036 "EHLO a9-114.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966023AbeEYPi1 (ORCPT ); Fri, 25 May 2018 11:38:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1527262706; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=QKHLYeTwFNsfbD8pe/EU4C57mpQRvOyZFtstvxxm3YA=; b=ILueGXm4LmVW5+k2VUMAwFNWPIfIqXRBarLjd65L25nTunOaRzwEs8/V2Og5Tq2R 0L3VCxrmRwsa/87qh4L3ho7MhrXEJiisRvq/o95qlEzdib29nc5BeHzorjqvpWB9d43 RJToBKqO88yqMn3rwLm7aeehN8umPCz9UTHuVnGA= Date: Fri, 25 May 2018 15:38:26 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: "Huang, Ying" cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andi Kleen , Jan Kara , Michal Hocko , Andrea Arcangeli , "Kirill A. Shutemov" , Matthew Wilcox , Hugh Dickins , Minchan Kim , Shaohua Li , Mike Kravetz Subject: Re: [PATCH -V2 -mm 0/4] mm, huge page: Copy target sub-page last when copy huge page In-Reply-To: <20180524005851.4079-1-ying.huang@intel.com> Message-ID: <0100016397f379e8-f651e3ed-3646-4423-8cd3-9ea61666a12b-000000@email.amazonses.com> References: <20180524005851.4079-1-ying.huang@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.05.25-54.240.9.114 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 May 2018, Huang, Ying wrote: > If the cache contention is heavy when copying the huge page, and we > copy the huge page from the begin to the end, it is possible that the > begin of huge page is evicted from the cache after we finishing > copying the end of the huge page. And it is possible for the > application to access the begin of the huge page after copying the > huge page. Isnt there a better way to zero the remaining pages? Something that has no cache impact like a non temporal store? So the remaining cache will not be evicted? https://www.felixcloutier.com/x86/MOVNTI.html