Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7175334imm; Wed, 27 Jun 2018 22:18:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf+MA69U6+8DlMUmD5c3Fv+tR4paK/OlSIwrlV3hdPj68U5MBcKr6AJ28gwr/LwgZuJKd3K X-Received: by 2002:a62:a50e:: with SMTP id v14-v6mr8676798pfm.121.1530163101148; Wed, 27 Jun 2018 22:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530163101; cv=none; d=google.com; s=arc-20160816; b=PRytMI/ENa5085vSRUchKx/cmk+QwTgizcerVZbR5k22WjudZFBZsn7SOKq8qdtD3W cDXeeMSvtIzA8DBmcTESi3F13N+xUDwHqdH3VK6v6ql74Gtx+3PjVeZ9pbQQU/h12LNj 3BVYBy/acQz7MPl+anlORu5y+JfhN7GQc3ap5FzdRW7acqpM0h7nQlz1MIJ1673Y8cok JMFW2vdnkh/zVHAMjr3WoyzGbLKwFE/8+/Vc+koWCtbOorPnyW0+Rr9UJ+tEhk8kOyvx bnE5mRF/liQfaoRhEriEpYVWRd27gzJm5cuxe559zPmdJkB8PcRyJ7GxUFyxYwFD0u4a N93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=VQsO3X2f1kEHfKTdJkoQ8iBz6+VNKScAcfxTTVU+NG0=; b=VKEDsea2jYmQzJclshOYP8DOhdOSHMWUFmpTo4N5BTE+DF9L+WIF6KliWhBxLpPkJE IqOyYRNPgzX1ElKDHz7zZqByqXDEMCLE8q1X0PmCb0QUQDbeHB8fcgAB7k45w9vdpomJ zAlYyzb5GqnumvGNgz/n3xHcvpF98bhoewM65g2xBfN8KLGZ/9VAuL0icFsHWIos7BsB sxRqQAWd1scn26to8IK7mkc+mq+tvMyArQO1koUUahOPM+CwG6wHp7O7mipDmvON8ILq WeDQs1FTD/qU511fmPSxaMDWSbrgdw6ayljhk9eadl2eGWWeNwPx1K37t7lk2ImdpB// ytTw== 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 e98-v6si5865642plb.150.2018.06.27.22.18.07; Wed, 27 Jun 2018 22:18:21 -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; 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 S1753326AbeF1Evr (ORCPT + 99 others); Thu, 28 Jun 2018 00:51:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40206 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751306AbeF1Evq (ORCPT ); Thu, 28 Jun 2018 00:51:46 -0400 Received: from localhost.localdomain (c-24-4-125-7.hsd1.ca.comcast.net [24.4.125.7]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E867EB1E; Thu, 28 Jun 2018 04:51:45 +0000 (UTC) Date: Wed, 27 Jun 2018 21:51:44 -0700 From: Andrew Morton To: "Huang, Ying" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , "Kirill A. Shutemov" , Daniel Jordan Subject: Re: [PATCH -mm -v4 00/21] mm, THP, swap: Swapout/swapin THP in one piece Message-Id: <20180627215144.73e98b01099191da59bff28c@linux-foundation.org> In-Reply-To: <20180622035151.6676-1-ying.huang@intel.com> References: <20180622035151.6676-1-ying.huang@intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Jun 2018 11:51:30 +0800 "Huang, Ying" wrote: > This is the final step of THP (Transparent Huge Page) swap > optimization. After the first and second step, the splitting huge > page is delayed from almost the first step of swapout to after swapout > has been finished. In this step, we avoid splitting THP for swapout > and swapout/swapin the THP in one piece. It's a tremendously good performance improvement. It's also a tremendously large patchset :( And it depends upon your mm-swap-fix-race-between-swapoff-and-some-swap-operations.patch and mm-fix-race-between-swapoff-and-mincore.patch, the first of which has been floating about since February without adequate review. I'll give this patchset a spin in -mm to see what happens and will come back later to take a closer look. But the best I can do at this time is to hopefully cc some possible reviewers :)