Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3410928imu; Fri, 18 Jan 2019 09:54:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN6V0PyMxtSiPq5CjXzNihPOlhsgFSQnnXpkue991gBL90ZPI64BpOicx3WV6QkG0mR0IVNt X-Received: by 2002:a17:902:7201:: with SMTP id ba1mr19968366plb.105.1547834044196; Fri, 18 Jan 2019 09:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547834044; cv=none; d=google.com; s=arc-20160816; b=sy1JaZNLxi6c2DmR1FKm/6ityqM/WJ7r3H5GQXfmowhz2qKmaXddhSsYZkT6nFnDBh aVpvP2XVMoHS1GnP4XAU0okXEx+gW8yzV5taCQWX7N4uoPGEGCYOo2zGY9/gXeqWnVAH 03oioCivbDhI+g0SdbPiZSbjcsGpsxcOaodVdJAJgC2yYOFRclPawzzeUCdJK+OkW4vP Fp5lQAHWiXadPnGiWJug7lqIlEsZRjOeaYeuE8zFF1A2FmSdyCdp2xJ+O+/D1NNTJpOc zkWG0Ct8mqugLsw6WT4iXdMUYgzpLxg/aFS2CVWCkjxv0aYoWpfENoAD4oWKH6snFK2y Iv9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=oJAP/potus7kSDKt4pUHIFnn7W7cakTIxSUPolk2DRg=; b=IyLw+HNxLeYTnEbs8F0MgwAgH4OteMEesWZiqpW+JrJpyNNZvuXegySWYy3h54pvs1 f9XB5/NPKHj01gk4bzYGYoP5f175P5/tmz/PtE3E0ZyBkd5buuWQ816ijEOxPe2QNPfm Q3Xht/I9fxLZRxMfS5LM0DXvoi7BHy2U9M/5Tbq9+4ZgLjxYipukwEgMouAoHhbSOP4r vSwlhiy9Tx01Z3ubGclA6outeJ+UWWnkcxCXfVdO5aJrJVmCK7Fm8SWQPNcGfhlFcxs6 TcNI668ORtZNDZR8Dr4m9GFLz/ui2T2/C6F+0QEeDdVZdbwxtM/n5GA8rOCc2NXD0I8s MB2g== 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 h2si5592866pfa.119.2019.01.18.09.53.44; Fri, 18 Jan 2019 09:54:04 -0800 (PST) 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 S1728669AbfARRwJ (ORCPT + 99 others); Fri, 18 Jan 2019 12:52:09 -0500 Received: from outbound-smtp12.blacknight.com ([46.22.139.17]:57485 "EHLO outbound-smtp12.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728664AbfARRwJ (ORCPT ); Fri, 18 Jan 2019 12:52:09 -0500 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp12.blacknight.com (Postfix) with ESMTPS id 8338E1C3589 for ; Fri, 18 Jan 2019 17:52:07 +0000 (GMT) Received: (qmail 31214 invoked from network); 18 Jan 2019 17:52:07 -0000 Received: from unknown (HELO stampy.163woodhaven.lan) (mgorman@techsingularity.net@[37.228.229.96]) by 81.17.254.9 with ESMTPA; 18 Jan 2019 17:52:07 -0000 From: Mel Gorman To: Andrew Morton Cc: David Rientjes , Andrea Arcangeli , Vlastimil Babka , Linux List Kernel Mailing , Linux-MM , Mel Gorman Subject: [PATCH 02/22] mm, compaction: Rearrange compact_control Date: Fri, 18 Jan 2019 17:51:16 +0000 Message-Id: <20190118175136.31341-3-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190118175136.31341-1-mgorman@techsingularity.net> References: <20190118175136.31341-1-mgorman@techsingularity.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org compact_control spans two cache lines with write-intensive lines on both. Rearrange so the most write-intensive fields are in the same cache line. This has a negligible impact on the overall performance of compaction and is more a tidying exercise than anything. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- mm/internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 5564841fce36..867af5425432 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -184,14 +184,14 @@ extern int user_min_free_kbytes; struct compact_control { struct list_head freepages; /* List of free pages to migrate to */ struct list_head migratepages; /* List of pages being migrated */ - struct zone *zone; unsigned int nr_freepages; /* Number of isolated free pages */ unsigned int nr_migratepages; /* Number of pages to migrate */ - unsigned long total_migrate_scanned; - unsigned long total_free_scanned; unsigned long free_pfn; /* isolate_freepages search base */ unsigned long migrate_pfn; /* isolate_migratepages search base */ unsigned long last_migrated_pfn;/* Not yet flushed page being freed */ + struct zone *zone; + unsigned long total_migrate_scanned; + unsigned long total_free_scanned; const gfp_t gfp_mask; /* gfp mask of a direct compactor */ int order; /* order a direct compactor needs */ int migratetype; /* migratetype of direct compactor */ -- 2.16.4