Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932771AbdGXVPO (ORCPT ); Mon, 24 Jul 2017 17:15:14 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:48930 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932736AbdGXVPD (ORCPT ); Mon, 24 Jul 2017 17:15:03 -0400 Date: Mon, 24 Jul 2017 17:14:41 -0400 From: Dennis Zhou To: Josef Bacik CC: Tejun Heo , Christoph Lameter , , , , Dennis Zhou Subject: Re: [PATCH 00/10] percpu: replace percpu area map allocator with bitmap allocator Message-ID: <20170724211440.GD91613@dennisz-mbp.dhcp.thefacebook.com> References: <20170716022315.19892-1-dennisz@fb.com> <20170718191527.GA4009@destiny> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170718191527.GA4009@destiny> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [2620:10d:c091:200::2:3425] X-ClientProxiedBy: BN6PR20CA0060.namprd20.prod.outlook.com (10.171.181.150) To BY2PR15MB0503.namprd15.prod.outlook.com (10.163.110.152) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6c44f7d-8ade-4d76-2ffb-08d4d2d906d9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY2PR15MB0503; X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0503;3:DvDemXbe/UVRIV35NzNXJe3uFLP7rR7nVVTQ+JHfXSQHrpQYlPWUo0/2O197RHsSxzmSfqd39X9+yyOxtqNQ9tq8tzqu6sOBbYLx5mGv05csGUDxtLWM3N4ICXPZ8K6BmhzFaaomCm3PPQ7QOohU3D1QKuEzbvLeTks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CcPjGYGR1vB5BasQyQclgZPulT5AzRtEi9BwfzzKKYHOQyuCxrzVGNSrfpJEmOo79+qhdKSBBMUyU0+Cuk0+HCtvqudC9AS7lKfZGgtchY1UGwmtYwLiXVjJQp957X+OdSfXPikN7llQGHc7UV3dFBQ71pw= X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0503;20:BteC2UXbgqDITQo7sUBU5sqGs1VKVhG6S7RhfbOklgw102PqmPpQZ4vBlnNoPhsH1oTsbqET+Z576wFoitfyxcvwEmWjqr8pFyo8Arsb1lrh+RRWp+P4Ne29ka89tKw6QUYa80A2s8i95pSDrHwBE+UtDy/LRYYMJRUOj1VQJVIBfxCmsbkalj4/qwkjKrHSuK3545PUofNzDGU0GsfDQoPKzGYGHwI5ky8f2WyZApsBfDH6L9QTZomW6G6seuIVrrkMTPppM/bNQ2p2KoobT7kPv1kdw1pqXAu73mQNbeghmSXdbSxKSyMIFD8bAc6sONbA0ZLuiuY2bFu9rtiPVAG9KqDZqYvSck1ZycoXkdvfS5CL4vSMN6uDBIWt+twdUpHgHWnbOecUWfjUwhBAzKBJmCjrOF94CcD+KnX0ADZSHLRN5arEGgHGuk4cs4dOeo737iJLNVitAW1tmkp86m5Zm9Qfa3lxvo24+xTsf25m+I2S/kmFqTJDFHOAEaHR X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR15MB0503;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR15MB0503; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0503;4:3xyLqxiOgXLRIKOokd0ulOXuLUr6d/MKannXrRC+QW?= =?us-ascii?Q?EiLnepx72iZDG2l8OxLN34hhb5T4GJFDqymOOdsMhxcJt9w+tKXDC0qVbt1E?= =?us-ascii?Q?kdPBsa0oWoNyQ+8p/IRv5KAHWWZjCoIhHHECd332vPSFL2+bLxcZ9LXHouv9?= =?us-ascii?Q?kTdjN9NcbuX4gQTcXWUIELwekqYV8MeETNiLPwD07T3jZYaz6s/c06ZT6nXY?= =?us-ascii?Q?Wb0iO1N2FRWJ5Ztm6UtkdIK9Qa3SEySZkT4SLjQpXwVJo/LtaF+zDpinvL9W?= =?us-ascii?Q?3xrm1kv80hAIhBjpU8fqUSYHG8oquMLEdyIsuK4Ckpsi/bck7qKZLLAhfLA/?= =?us-ascii?Q?hf1I0TZROak50TC4Ul/HYFnmeQ3nL2WirhozoVYZd//0AIh0j6rXgo+G6/i7?= =?us-ascii?Q?D1r+RHjK/VqkxHDoOLXm3PcgxXy4GG6PKdv5VBSEnOaZkiMZgOgPsoCwq0Z4?= =?us-ascii?Q?TNNCeD2PVptC4vbXuwp5V9nnQbXTZ+ABoH7t06BObDK4ejLroc05hyMfiFWT?= =?us-ascii?Q?fYEe5yzUSsblIZwy2Lbcm2VCpcjUNUq0KGNsx63ro/bk/XIZ/krWV2laZ6C4?= =?us-ascii?Q?52vQ9SjkeogxFxVIL0ZKVP7BDdYpQvf6RHBClfGQCX9a5JRmRBJlbi8TUmu/?= =?us-ascii?Q?JvpMdUSTWeUeQNknPDrZnXIy11J1BXDU5oeAhucH6xeIvIlxoEcuRmFOthln?= =?us-ascii?Q?+gdl3w1miB4SRGmYBWZm0+BDLyaPHBi9vkabebz872kTuMbLBcA4T9j9pymf?= =?us-ascii?Q?MMGMLsjSdFQWlErHxMG4HdITxz+xycbiidmyrU4RxnEIWh8N4llq1aOa3vj1?= =?us-ascii?Q?CB5E7CM9eVgr42h+nU5cpTN17kJAIU/00830lS3iV0QFZbb5mC3PAWp4VOAd?= =?us-ascii?Q?R7glenHlrikqLTTK7lXEBrdi3mlPWv/A+K0wia1XOVyof/PSnZbgDYkDuv59?= =?us-ascii?Q?TLcSnQIy4Zpu2h3AO0mf3mb7kfgWowNrJUQUz9EkhaoQh0EDES46VlgExu8z?= =?us-ascii?Q?SIb2JSxTK1YlsPBqlFp7V88HAVNa3ViCNxfoTlZKd8XCLKH4qtQyz33KaklJ?= =?us-ascii?Q?4WWy3qjrtvWUBMh3gJl01j5ZnSUlmQRPkh9yJ838eENJX4J6/aJf3Kj4itfI?= =?us-ascii?Q?Vy6SEL/I3OpGew/sGU3L8MJI8U6lERIa3SNbQ9faWG+wuaD7DoqCogjw19vp?= =?us-ascii?Q?aeWOc5E7VdXUI=3D?= X-Forefront-PRVS: 0378F1E47A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6009001)(39410400002)(39400400002)(39840400002)(39850400002)(39450400003)(199003)(24454002)(189002)(229853002)(6506006)(42186005)(2950100002)(6246003)(53936002)(6666003)(8676002)(81166006)(54906002)(50986999)(54356999)(76176999)(110136004)(38730400002)(50466002)(68736007)(81156014)(9686003)(4001350100001)(6916009)(305945005)(83506001)(2906002)(7736002)(101416001)(478600001)(47776003)(86362001)(189998001)(25786009)(55016002)(1076002)(6116002)(5660300001)(33656002)(105586002)(106356001)(97736004)(4326008)(23726003)(7350300001)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0503;H:dennisz-mbp.dhcp.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0503;23:z8r2dJFJ/ZMi4n0e20ciDSEVoIgJz845vysMTZAcL?= =?us-ascii?Q?0ZQZjRj5vWjdj/gfuG67dzcShgq+o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leEfxpVxQeABSVdJoOqfouvMlpeIyN9SM6Qs7ZdKjinlOMeqzjgB5uQN0kgHjWy+fhYMR0DESDOAB9z/FeUBDy56Ew= X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0503;20:FzyAAQq9V6si8971hnQ1EAwqTPRN62iAgnhZqJIEvbY4VWekM/zcauFNbT3jAN9uvHYfXUsLjEqy2KC/JsPbvyrtrOV7CT2lT+R7nfhg9kbfpRCLXhsyafZphwFWYMP1G/sG6pMhd8etoCpP2effrtjd9ssbANa2TFY6I0tm4LA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 21:14:52.1428 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0503 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-24_13:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3922 Lines: 89 Hi Josef, On Tue, Jul 18, 2017 at 03:15:28PM -0400, Josef Bacik wrote: > Ok so you say that this test is better for the area map allocator, so presumably > this is worst case for the bitmap allocator? What does the average case look > like? The bitmap allocator should perform relatively consistent in most allocation schemes. The worst case would be where constant scanning is required like the allocation scenario of 4-bytes with 8-byte alignment. As far as average case, I would expect similar performance on average. These are updated values with v2. Area Map Allocator: Object Size | Alloc Time (ms) | Free Time (ms) ---------------------------------------------- 4B | 310 | 4770 16B | 557 | 1325 64B | 436 | 273 256B | 776 | 131 1024B | 3280 | 122 Bitmap Allocator: Object Size | Alloc Time (ms) | Free Time (ms) ---------------------------------------------- 4B | 490 | 70 16B | 515 | 75 64B | 610 | 80 256B | 950 | 100 1024B | 3520 | 200 > Trading 2x allocation latency for a pretty significant free latency > reduction seems ok, but are we allocating or freeing more? Are both allocations > and free's done in performance critical areas, or do allocations only happen in > performance critical areas, making the increased allocation latency hurt more? I unfortunately do not have any data to support whether we are allocating or freeing more in critical areas. I would defer use case questions to those consuming percpu memory. There is one issue that stood out though with BPF that is causing the cpu to hang due to the percpu allocator. This leads me to believe that freeing is of more concern. I would believe that if allocation latency is a major problem, it is easier for the user to preallocate than it is for them to manage delayed freeing. > And lastly, why are we paying a 2x latency cost? What is it about the bitmap > allocator that makes it much worse than the area map allocator? So it turns out v1 was making poor use of control logic and the compiler wasn't doing me any favors. I've since done a rather large refactor with v2 which shows better performance overall. The bitmap allocator is paying more in that it has to manage metadata that the area map allocator does not. In the optimal case, the area map allocator is just an append without any heavy operations. A worse performing scenario for the area map allocator is when the second half of a chunk is occupied by a lot of small allocations. In that case, each allocation has to memmove the rest of the area map. This scenario is nontrivial to reproduce, so I provide data below for a similar scenario where the second half of each page is filled. Area Map Allocator: Object Size | Alloc Time (ms) | Free Time (ms) ---------------------------------------------- 4B | 4118 | 4892 16B | 1651 | 1163 64B | 598 | 285 256B | 771 | 158 1024B | 3034 | 160 Bitmap Allocator: Object Size | Alloc Time (ms) | Free Time (ms) ---------------------------------------------- 4B | 481 | 67 16B | 506 | 69 64B | 636 | 75 256B | 892 | 90 1024B | 3262 | 147 This shows that in less ideal chunk states, the allocation path can fail just like the freeing path can with non-ideal deallocation patterns. Thanks, Dennis