From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423845AbcFMVBy (ORCPT ); Mon, 13 Jun 2016 17:01:54 -0400 Received: from mga04.intel.com ([192.55.52.120]:36868 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422804AbcFMVBx convert rfc822-to-8bit (ORCPT ); Mon, 13 Jun 2016 17:01:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,468,1459839600"; d="scan'208";a="718480259" From: "Odzioba, Lukasz" To: "Hansen, Dave" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "kirill.shutemov@linux.intel.com" , "mhocko@suse.com" , "aarcange@redhat.com" , "vdavydov@parallels.com" , "mingli199x@qq.com" , "minchan@kernel.org" CC: "Anaczkowski, Lukasz" Subject: RE: [PATCH 1/1] mm/swap.c: flush lru_add pvecs on compound page arrival Thread-Topic: [PATCH 1/1] mm/swap.c: flush lru_add pvecs on compound page arrival Thread-Index: AQHRwZMZBNOvyDP9y0GT0vGac+33EJ/fobOAgAEwMoCAAGURAIAGqN3g Date: Mon, 13 Jun 2016 21:01:48 +0000 Message-ID: References: <1465396537-17277-1-git-send-email-lukasz.odzioba@intel.com> <57583A49.30809@intel.com> <57598E3E.3010705@intel.com> In-Reply-To: <57598E3E.3010705@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjhhZDc1NTQtNjllNy00ODNlLTgxOTItYTAzNWJiNjUxZTRkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS45LjYuNiIsIlRydXN0ZWRMYWJlbEhhc2giOiJsQ3JEek5jV09UVUhwWGVtMHFCM0Rrbk1QWDBLWEZESWhyXC9zT0pFeDhcL0U9In0= x-ctpclassification: CTP_PUBLIC x-originating-ip: [163.33.239.180] 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 On 09-06-16 17:42:00, Dave Hansen wrote: > Does your workload put large pages in and out of those pvecs, though? > If your system doesn't have any activity, then all we've shown is that > they're not a problem when not in use. But what about when we use them? It doesn't. To use them extensively I guess we would have to craft a separate program for each one, which is not trivial. > Have you, for instance, tried this on a system with memory pressure? Not then, but here are exemplary snapshots with system using swap to handle allocation requests with patch applied: (notation: pages = sum in bytes): LRU_add 336 = 1344kB LRU_rotate 158 = 632kB LRU_deactivate 0 = 0kB LRU_deact_file 0 = 0kB LRU_activate 1 = 4kB --- LRU_add 3262 = 13048kB LRU_rotate 142 = 568kB LRU_deactivate 0 = 0kB LRU_deact_file 0 = 0kB LRU_activate 6 = 24kB --- LRU_add 3689 = 14756kB LRU_rotate 81 = 324kB LRU_deactivate 0 = 0kB LRU_deact_file 0 = 0kB LRU_activate 19 = 76kB While running idle os we have: LRU_add 1038 = 4152kB LRU_rotate 0 = 0kB LRU_deactivate 0 = 0kB LRU_deact_file 0 = 0kB LRU_activate 0 = 0kB I know those are not representative in overall. Thanks, Lukas