From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758097AbcIVXtD convert rfc822-to-8bit (ORCPT ); Thu, 22 Sep 2016 19:49:03 -0400 Received: from mga06.intel.com ([134.134.136.31]:39691 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753548AbcIVXtC (ORCPT ); Thu, 22 Sep 2016 19:49:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,379,1470726000"; d="scan'208";a="12766342" From: "Chen, Tim C" To: Shaohua Li , "Huang, Ying" CC: Andrew Morton , "Hansen, Dave" , "Kleen, Andi" , "Lu, Aaron" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Hugh Dickins , Minchan Kim , Rik van Riel , Andrea Arcangeli , "Kirill A . Shutemov" , Vladimir Davydov , Johannes Weiner , Michal Hocko Subject: RE: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out Thread-Topic: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out Thread-Index: AQHSFSSBN7VjMdFZaE6+eryf4venSqCGLFDA Date: Thu, 22 Sep 2016 23:49:00 +0000 Message-ID: <045D8A5597B93E4EBEDDCBF1FC15F50935C1AD83@fmsmsx104.amr.corp.intel.com> References: <1473266769-2155-1-git-send-email-ying.huang@intel.com> <20160922225608.GA3898@kernel.org> In-Reply-To: <20160922225608.GA3898@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDQwNWI5YWYtYThlNC00NjI5LTg3NWUtZmRiZDYyOWJlNWRjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImhhbTdDSEhaZFNaS3RtV0txazJsYTNzZktURFwvekxDYjV0WFBEXC90UERKTT0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >So this is impossible without THP swapin. While 2M swapout makes a lot of >sense, I doubt 2M swapin is really useful. What kind of application is 'optimized' >to do sequential memory access? We waste a lot of cpu cycles to re-compact 4K pages back to a large page under THP. Swapping it back in as a single large page can avoid fragmentation and this overhead. Thanks. Tim