Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1802709imm; Thu, 12 Jul 2018 08:04:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMHvPy/hroWM9HU5ku7/XKrW7leoXUk3iNlhej60i9G5qZ+zmbEs/rV/eQca2Xg+RZUQj+ X-Received: by 2002:a17:902:8506:: with SMTP id bj6-v6mr2526451plb.210.1531407877962; Thu, 12 Jul 2018 08:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531407877; cv=none; d=google.com; s=arc-20160816; b=tt3cS4x5+K/fOJS1/Zih92BCVhApdu591Hs/yk02IhZerSbRnpSb28bGrgT/sQ1Z/c tgSK8PKIuoZsevvKP0Pk8VSDM9FmCROWMS8AnqZcz027z+6iv9lHJqr1kvfAgqssfIuB hqRO5plWgkIZwllcb28vgRYLehZspCS+R9po9ko4ZUi3FBKnIW8acT5fPTJ4mxwfgQbl Zs705jKSNjvxcRy4mOYRjpM/xoAA1mcNv2CluDrZzXOkpDTSrOwXhJrSAjuNIElXSjEG qNE/IY5UTqBwlB515/1FSxCdwOgGmV0RtVNSqTLH3c3YR4o2PJm2m9uDY9MHeNTAs0Tf DqOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=HA0x3vqUm2OTIao8Hy5lo68BFmh3FmGq+ENLAdW1JgoAYfCL35TPX8Te+hjRZOkutr Cy4Lh/QgoLPMJd896bLx11uqoEUfajXa+vXLNwUdo1ELVMf35JR949YmQ55Wg8JyNg1s NEm0PcWaMYlGVYbRJrafTOgcXFlVGXCKLTUcSwYGYNaDmniGply5/GCoDXbZoqIeNB+x xVfxbynx4rUBxYeifGMcVPfXqQWWQsAA5NsqtwWXGoAtGtpLC1ZunYfFlF9KTy8FGeA8 M5xU+dU4Si0PMsJCp8rfrTNUJf6ayT4lgRylUmUJ49MRTxCdOqWIWFKNjSZMtzFs636H qRKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=hxtRYCGP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12-v6si20999175pgk.523.2018.07.12.08.04.19; Thu, 12 Jul 2018 08:04:37 -0700 (PDT) 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; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=hxtRYCGP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732644AbeGLPMw (ORCPT + 99 others); Thu, 12 Jul 2018 11:12:52 -0400 Received: from mail-eopbgr60067.outbound.protection.outlook.com ([40.107.6.67]:63776 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732373AbeGLPMw (ORCPT ); Thu, 12 Jul 2018 11:12:52 -0400 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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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+QDyUaC1s3tC0ofFOCH0w2bbON1jlRLnMO/HP/j9VhJ6qjHcjg1kiYjCG892M1PJkUE1qnkIw5fRb/F/lW6TdOOHHtIadDRirmu3RByJJumS2GiX0GEnEa8c9QEr6rh/LD5IeuUDul88o/MfRZL2Msg/2aYP5udaZN7jYE0iCdr4jStOfw6IhYlqfMzgySVxSenFvhkaGMR7obVXtORtrBRy5L+DCWNZHcKt+HWdtyoWeoYSCMLqEM/ZxPmVusMIklkbuVdPFEkW8gURE13lAOVrStPAWiudqsyRxWEeX52EgY8HQfyJRj+f3zRIKQtw==;31:9+B/zzDmezdc5gYQISRhF8wZQJQQqUJvn+OH2xbcAXNhSgW3dwvuDPpRBvOdXyagFvyF8JbfNvpxfK0kmQn+0iOgGITNQxRNX0b+qMvCejfmnk3eu3YdkJ89yX4EcibhdgmAi+H8JNBQ1wReg7Y0ZK5TM893goM5p9MlusXnJ1a5xcnLEEy8LNgm6ezwH/RQO1KNey0jqzDJc8ry/65ZhSEkXPr/yazplXeypo1xV6c= X-MS-TrafficTypeDiagnostic: HE1PR05MB3257: X-Microsoft-Exchange-Diagnostics: 1;HE1PR05MB3257;20:vnTAIo+8/iFlZgcLC2oZgWyA+39jIO8SyMuIV8i0Kpg96BOyIBECNKxhqVRGlKW9Z4uMw35AdP1CJFUj1AYoxngX/Ovj6o3CqHoipFMNvuheiA31WS6kzGX7J1FR/wcDIbLGvWyMDPnsWFGC+pqHAlAZJ7s0V7F2qh9Z+o0mH0D60dAx/jZHWgXsZDuKbj28nYaN4H/GVyIXlURH4SRNT3RcknWlfHhYe5VNAaDtWCEWnoWJ65KkqP97armSc+jGtr1Nerv/M2YF7Y5Sn4EAKI+XQJ56nYvR/ggHrsdfp8amZaHcmWhNH3qECH8xVdemCgIlKbwF8tG801nyMLd7iaCzOkw4y966Md2PjirhzykimIN+UFqQP4KNhaa8eHx8mNeCKUElY8tMaGN4O+MGryHnRxG/oCk3Iy8jYyGf5QRqkwPaxipXBachKvLZ1K83DX2bLCKWbPh1fYH/upbOtYWqAbEHU5TKWw+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?TkxRMHJ6cXJjb2I0aXE0LzByQWVwOWd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soft-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; /*