From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759148AbcIHSPX (ORCPT ); Thu, 8 Sep 2016 14:15:23 -0400 Received: from mga14.intel.com ([192.55.52.115]:20394 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754109AbcIHSPU (ORCPT ); Thu, 8 Sep 2016 14:15:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,301,1470726000"; d="scan'208";a="1027022009" From: "Huang\, Ying" To: Anshuman Khandual Cc: "Huang\, Ying" , Andrew Morton , , , , , , , Andrea Arcangeli , "Kirill A . Shutemov" , Vladimir Davydov , Johannes Weiner , Michal Hocko , Tejun Heo , Subject: Re: [PATCH -v3 03/10] mm, memcg: Support to charge/uncharge multiple swap entries References: <1473266769-2155-1-git-send-email-ying.huang@intel.com> <1473266769-2155-4-git-send-email-ying.huang@intel.com> <57D12134.40604@linux.vnet.ibm.com> Date: Thu, 08 Sep 2016 11:15:13 -0700 In-Reply-To: <57D12134.40604@linux.vnet.ibm.com> (Anshuman Khandual's message of "Thu, 8 Sep 2016 13:58:36 +0530") Message-ID: <87wpim45se.fsf@yhuang-mobile.sh.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Anshuman Khandual writes: > On 09/07/2016 10:16 PM, Huang, Ying wrote: >> From: Huang Ying >> >> This patch make it possible to charge or uncharge a set of continuous >> swap entries in the swap cgroup. The number of swap entries is >> specified via an added parameter. >> >> This will be used for the THP (Transparent Huge Page) swap support. >> Where a swap cluster backing a THP may be allocated and freed as a >> whole. So a set of continuous swap entries (512 on x86_64) backing one > > Please use HPAGE_SIZE / PAGE_SIZE instead of hard coded number like 512. Sure. Will change it. Best Regards, Huang, Ying