From patchwork Thu Jul 12 15:01:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tariq Toukan X-Patchwork-Id: 10521789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 92E1C603D7 for ; Thu, 12 Jul 2018 15:02:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B13F294A8 for ; Thu, 12 Jul 2018 15:02:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D71A294A4; Thu, 12 Jul 2018 15:02:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD1E9294A4 for ; Thu, 12 Jul 2018 15:02:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C26CA6B0010; Thu, 12 Jul 2018 11:02:53 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BACEA6B0266; Thu, 12 Jul 2018 11:02:53 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A272F6B0269; Thu, 12 Jul 2018 11:02:53 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by kanga.kvack.org (Postfix) with ESMTP id 441D36B0010 for ; Thu, 12 Jul 2018 11:02:53 -0400 (EDT) Received: by mail-ed1-f72.google.com with SMTP id v26-v6so5033691eds.9 for ; Thu, 12 Jul 2018 08:02:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding:spamdiagnosticoutput :spamdiagnosticmetadata; bh=BrUTglE28fv8FggmGFFhHc5gg2kGTHxu2UzzZRQ9qQQ=; b=tJ/ipBQ4MbAPPup8kaWq1oy0pwLZgd+IfDZDfyHO4szMhCmTL7gt6POnBZfTJ5UYw8 vLfiKMoTPGT5yzL2jRTEO5gZx5iLb3ArkooNDTnB1nG4VkY4K5JJ+qW1SD2MXo1Sf7iE GHf3pa/+bhX1weSK2HJNt+0K61/KVMkK1yEpmXJ/s7NVa2uT2TApCd+yd19wLg78T/Lu HglsEcGJZCCILIiHnoaREzEbpZ8W/7mhlHz4YKKtgdoiNJ0on1gYowiG64x8pVZzgS7z zXJi9Q1Nst4Dxp1Wpms5t4woAXThknrjK5HumdzAxVoJ0xJbWsfs87reaWpfFBC1GPyr KZEA== X-Gm-Message-State: AOUpUlEGODV8Zo9dXtTAm0RxzsMVzm2iYY7L2W90n7EAbk998H5/MStD ZqacxqoXHPwLjxhmmhLuxSt+d/jUgU47oXDGKoZeJUTltXz2HHzBOf4+PmiJtRFNsuV4DFkRNj1 OTHzNK0eVYt+8hidmAwOJKB4jcyL1cXU1AtH34XNlLXbxciO1/8UgJnzHRO6FI0MDQw== X-Received: by 2002:a50:ac65:: with SMTP id w34-v6mr3009078edc.211.1531407772836; Thu, 12 Jul 2018 08:02:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd33um1DS38MBpmdGuB8mIriFvavoJqPXKgkxE7HBNHM1wHK97+d24v9YykkZS1OFsbG962 X-Received: by 2002:a50:ac65:: with SMTP id w34-v6mr3009010edc.211.1531407771977; Thu, 12 Jul 2018 08:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531407771; cv=none; d=google.com; s=arc-20160816; b=P10POZuIHnG5I+O8SkM2oKfRTRTZzfp5xkJf/59MPtzMP8O/h6O6I5aIELma4v3z0n yqKSvVuIKdupPxWBVtkc4447UxCJnzKQEDMx1QFdNdZcN2setycI3AITdUWwgrj4o07i pA/Orwg5bVZxndihRGGCOKi1YocyIE2/mfa03EjLkIPpRTBsDpe6aUa1QthkuQdrLIJd Lmr4uTnE7XIuie814aLJt2U5hfiZCmrBY14LjVxNWVCZCa6NT0zI6GH6L6wanUFXsOzy ixI9FRCW7/l51WM0B5p/Xor9TNRtqZNiW2I5giJD44f46jdIxia/Poj05HKgHbfmzgD2 ijAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=BrUTglE28fv8FggmGFFhHc5gg2kGTHxu2UzzZRQ9qQQ=; b=aLUZ1J4I0su3yOLi6vlVYIX2RiwXTY6yvbsW6+bIlBTucyiTTWFVLXoEgZOdgsnW+5 e/PHdt6qkHH2A27XTu+x9ffpNgpwe6bAvZ9xUUX3ediU8q9Bq+fG3rKcZEYZSjAJBVS/ 4qAuSNM4OVtlwQsdADArNp6vfbxpPyGK5VY8RSF+qe1JC7m6tk3kb52saR0Afrb8/RU8 Yq5bLGnyzAnvNLMZprPepcn74oRwi6nwfPM36hpl75Fvx056wtrdEZC1BYmGlqdagn2u LNZ5KJ0pvU57WynKQC547lxFH5+61E6QDiOxsp0/dQLU8lXd2FMDQTDIytVOKaVEjUDR INdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=hxtRYCGP; spf=pass (google.com: domain of tariqt@mellanox.com designates 40.107.6.45 as permitted sender) smtp.mailfrom=tariqt@mellanox.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60045.outbound.protection.outlook.com. [40.107.6.45]) by mx.google.com with ESMTPS id h17-v6si3049216edr.245.2018.07.12.08.02.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Jul 2018 08:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of tariqt@mellanox.com designates 40.107.6.45 as permitted sender) client-ip=40.107.6.45; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=hxtRYCGP; spf=pass (google.com: domain of tariqt@mellanox.com designates 40.107.6.45 as permitted sender) smtp.mailfrom=tariqt@mellanox.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BrUTglE28fv8FggmGFFhHc5gg2kGTHxu2UzzZRQ9qQQ=; b=hxtRYCGPDuagEnHTER3xSXnWDW2tREfJh4obuZZ4xhupFcIJCGZqZDTd9YRB5+ygDB09AWs9HGnJ0BsDmQKF2CeRlc4bymQWJSoVJSem69IuUouqFXsdk+l0TYwAu9FseSllzXitZgXm904bywp9EH5fgUNph5a8zrL6E0OwsuE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tariqt@mellanox.com; Received: from [10.8.0.51] (193.47.165.251) by HE1PR05MB3257.eurprd05.prod.outlook.com (2603:10a6:7:35::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Thu, 12 Jul 2018 15:02:48 +0000 Subject: Re: [RFC PATCH] mm, page_alloc: double zone's batchsize To: Jesper Dangaard Brouer , Michal Hocko , Tariq Toukan Cc: Aaron Lu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Vlastimil Babka , Mel Gorman , Saeed Mahameed References: <20180711055855.29072-1-aaron.lu@intel.com> <20180712125408.GL32648@dhcp22.suse.cz> <20180712155536.20023cc4@redhat.com> From: Tariq Toukan Message-ID: <2b51fa24-5fc7-f328-1bf3-a78f28eb742f@mellanox.com> Date: Thu, 12 Jul 2018 18:01:12 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180712155536.20023cc4@redhat.com> Content-Language: en-US X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: VI1P18901CA0010.EURP189.PROD.OUTLOOK.COM (2603:10a6:801::20) To HE1PR05MB3257.eurprd05.prod.outlook.com (2603:10a6:7:35::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96281a6d-233d-4216-f101-08d5e808895e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR05MB3257; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3257; 3:TxlGC9oA+i0nUe1zWyhFd1r7a37C/RfBsJ7nD0+sMAIrzrC0fqkW9IdKuUY9V8wozQECvlPn2Oic4Kc4vWcciiKX9KC4tRuLhYjGYlQ5vy1xEkSsZu5ZzWBBmlhLFzwhT+eLMAaQSntx+AoNCEp9yN3CYRTGGY72FJJ9xGg8XYTkFIt7o0pcD4cWbdQF7CX2WTsPHBr7o2WrKS2A3hmwZQzfAQ23KXppmixir6YYhH8PFeWfWlL0Z1lxtfQtHom9; 25:Hx8wpUBvZdbugpxNyiD8wE+QDyUaC1s3tC0ofFOCH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YWqAbEHU5TKWw+XA70meYQ8jQ9V0JCanfm5tI615ZAc; 4:mUlmTmZDBxpfUcwJoWhd1/q5U7Uv4x5OUcmjoCNIqyenpHDokkrw1rzGwQNNtOcrDCdbwgHyTaRrKiZYbyJEbKncI7y/xmve/ey7h+mgG6ze4vnN4SXq7ConUNr3t4Z1MLC1JDIdEzfjv0mVaj7YdYmSrWtsNBaihyrfT1CZrznfVHofIraVBE8z8E5xKLNquEhUxsSAJDJO9OMEDeG2bS2J2B4z623+rqAQTQn6rvGrEZd7SVH8sF9si0sCCpZGbHcdb1/2JfJbOD5tRPCg+w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:HE1PR05MB3257; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB3257; X-Forefront-PRVS: 0731AA2DE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(366004)(376002)(136003)(39850400004)(396003)(346002)(199004)(189003)(52146003)(68736007)(107886003)(6246003)(53936002)(31696002)(386003)(97736004)(65956001)(230700001)(110136005)(478600001)(66066001)(50466002)(4326008)(2906002)(86362001)(316002)(76176011)(36756003)(106356001)(67846002)(58126008)(65806001)(54906003)(16576012)(47776003)(31686004)(81166006)(8676002)(25786009)(81156014)(229853002)(2616005)(956004)(16526019)(77096007)(476003)(446003)(65826007)(6486002)(105586002)(11346002)(26005)(8936002)(7416002)(486006)(7736002)(6666003)(6116002)(23676004)(14444005)(64126003)(305945005)(5660300001)(2486003)(53546011)(52116002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB3257; H:[10.8.0.51]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA1TUIzMjU3OzIzOnF5alQxS3BQWExJckE3ZlNlejRTQ0paKy9j?= =?utf-8?B?UVZZM3M3bWtENGVrRnVuUjZRTGV2MTVURkF2b3lxVEwyZ2ZQbklCSWR4emRu?= =?utf-8?B?V0tReVlDT3BTbklzckU3a3RBUFpZZllmQ09aMXduU3AyVzVUSlcvNDNXeHNB?= =?utf-8?B?OTdQVi9qcG4yNjVwKzlva0RBY29BVFpEOWIrMVdNY1E4dW5oQ2tQY0FXYXpJ?= =?utf-8?B?NHdweDRGTXF6NCtqZmVPaUQrZ2lFcW5kZGRXR3B1cmUwYmZybzlrd25VTlEx?= =?utf-8?B?V3Z2NkZDb1lRRGlrZlZlaWlhSENPbmE5M2EzNERONVAwQTQyYVZaSjBmNEdo?= =?utf-8?B?TkxRMHJ6cXJjb2I0aXE0LzByQWVwOWdNbGJEWXBXQzZCK2VITmVnV0dCSWtr?= =?utf-8?B?UlJJYlJ0ckNpV1AwZi9nRHg4bzlNbE1wOEJiY1d4NUlteEhkOVM0MWxHcEdz?= =?utf-8?B?eURZWFBNQ0ZSQkRoNFo4YWk0ZjQ1YUNJRVIybzhScTBOQ2pTUEQrTGQ2bGFQ?= =?utf-8?B?YlNVcFpLRU1jWkxHRWlkQmtTT2c2Qk0zd00weDFDaVJ4N0IyU1NOcVM5WmdG?= =?utf-8?B?YVl4cWUrRXVwbFdSOTU3OXZrVVZBUG5DTU82cmZSaXRBeWRLY0RsVG5vVVJM?= =?utf-8?B?dHNSd2tBNEVUWDRPQ2dFS2tDanlqK2E1Uk1CWlJyRTNxczZ6TWhKT2NlYlNY?= =?utf-8?B?bWphWWNBT1lPeXptMThYK0UzRW1lL0xGVytDQnA3RGZaTFFL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dt3nlTKXh1Zc8TSRTI3UP+GDJNb/C5zyx511Iu6kXs9nPbkDuAKlTZHdVjoH9uMBUnoxxePoTJFRj747qMVCG6hOtXQXUBRwe6G2eN9mq9mEB7miH3b8dJxckJ0E5ywAbNVdCzpsvohPTw/KHrSifIrtVZHyyyqJhXtYTMccqkmEq2QYJvW/y/hOIZmp+14mpnE0DHj4yzEfTOtcqcAEqrJYdZU9/BY57RiSku3kwjHiP3P/cRfdEYYnWkGGSghSZik4XhrIeqS6Q==; 5:P18LwTNBb8KLHxmXNbh1UUGd8Gcp5Ave1PLbFo738bnkUF5V7azOJKWu+/RHlwzXZmi/mhZXWRqyCb/d4WggqyNOpq2MOhOu3Zj5PuWAAm4DdBZWINuf/Rx5/Zrng/mwVEBaTZ3W4XxTPYc3tGvSYZ/L9pYYnrrFWOEqqlQzf1I=; 24:zJ0ZP1Ebf1GYF7ThlMZuA2NBJ3IiWWDyrjxvoeChwLQryAA+NOoifol7d8ZALoz1qqHQgFhUQ0OnygkQuhJgCxKaPJd6Q4nFGiTan61wnoI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB3257; 7:a3kMKZIcHfyXUP/O+VzK+IS8fo82OTddTHrIVdWVYa/HYLUI9A/jxAzDrK1HfMXgcSdBsRsF8MHXETpwS73D3/4LD9kU1UlTmFi5f45xxdh8XXnIcXEBS5aruBIba2DiIu/KH+5yEu9AkgurN/vod9l51bpGyUxZjpUSBtrk17pXPT3p0ZWAeKT1SLqx3+UXmeYxqHLkk8s+NZ/jMmDsFB8FInUGrkJ326/YFFyGs6aa5sjc4PhPLL2pb91BeH8E X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2018 15:02:48.3938 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96281a6d-233d-4216-f101-08d5e808895e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB3257 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP On 12/07/2018 4:55 PM, Jesper Dangaard Brouer wrote: > On Thu, 12 Jul 2018 14:54:08 +0200 > Michal Hocko wrote: > >> [CC Jesper - I remember he was really concerned about the worst case >> latencies for highspeed network workloads.] > > Cc. Tariq as he have hit some networking benchmarks (around 100Gbit/s), > where we are contenting on the page allocator lock, in a CPU scaling > netperf test AFAIK. I also have some special-case micro-benchmarks > where I can hit it, but it a micro-bench... > Thanks! Looks good. Indeed, I simulated the page allocation rate of a 200Gbps NIC, and hit a major PCP/buddy bottleneck, where spinning the zonelock took up to 80% CPU, with dramatic BW degradation. Test ran relatively small number of TCP streams (4-16) with unpinned application (iperf). Larger batching reduces the contention on the zone lock and improves the CPU util. I also considered increasing the percpu_pagelist_fraction to a larger value (thought of 512, see patch below), which also affects the batch size (in pageset_set_high_and_batch). As far as I see it, to totally solve the page allocation bottleneck for the increasing networking speeds, the following is still required: 1) optimize order-0 allocations (even on the cost of higher-order allocations). 2) bulking API for page allocations. 3) do SKB remote-release (on the originating core). Regards, Tariq diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt index 697ef8c225df..88763bd716a5 100644 --- a/Documentation/sysctl/vm.txt +++ b/Documentation/sysctl/vm.txt @@ -741,9 +741,9 @@ of hot per cpu pagelists. User can specify a number like 100 to allocate The batch value of each per cpu pagelist is also updated as a result. It is set to pcp->high/4. The upper limit of batch is (PAGE_SHIFT * 8) -The initial value is zero. Kernel does not use this value at boot time to set +The initial value is 512. Kernel uses this value at boot time to set the high water marks for each per cpu page list. If the user writes '0' to this -sysctl, it will revert to this default behavior. +sysctl, it will revert to a behavior based on batchsize calculation. ============================================================== diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 1521100f1e63..c88e8eb50bcb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -129,7 +129,7 @@ unsigned long totalreserve_pages __read_mostly; unsigned long totalcma_pages __read_mostly; -int percpu_pagelist_fraction; +int percpu_pagelist_fraction = 512; gfp_t gfp_allowed_mask __read_mostly = GFP_BOOT_MASK; /*