Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751428AbdGQTKy (ORCPT ); Mon, 17 Jul 2017 15:10:54 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:51006 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbdGQTKv (ORCPT ); Mon, 17 Jul 2017 15:10:51 -0400 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=fb.com; Date: Mon, 17 Jul 2017 15:10:26 -0400 From: Dennis Zhou To: Tejun Heo CC: Christoph Lameter , , , , Dennis Zhou Subject: Re: [PATCH 05/10] percpu: change reserved_size to end page aligned Message-ID: <20170717191025.GA59543@dennisz-mbp.dhcp.thefacebook.com> References: <20170716022315.19892-1-dennisz@fb.com> <20170716022315.19892-6-dennisz@fb.com> <20170717164650.GJ3519177@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170717164650.GJ3519177@devbig577.frc2.facebook.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c091:200::3:9a7c] X-ClientProxiedBy: CY4PR06CA0064.namprd06.prod.outlook.com (10.175.122.154) To BY2PR15MB0502.namprd15.prod.outlook.com (10.163.110.151) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a65e327-1846-453f-17b6-08d4cd4780e8 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:BY2PR15MB0502; X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0502;3:mMuBsDjJGGwdNO+Orr1RlzSy9TnqOI/zNpIgy36zkWhw/pmCru8oTJQ7WqsfaP6cHoeR5XU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fuC8xjCEibbmC+8gPxOLkQVc4smQ2VNZIlOWJvhOG8PFCKwSfVnkRyE+dNKZrMgn4Rx5VaLrh+nTzzIBfKDmzgcaIje+hbOkNNUprtXTbtbxF24g42H4S+zmTUf6cu0hSgthSpgPZm8vpOwQI2DpbjxSn+nxF6DNzvz3CB2lSJwXjZLBcElQARHft7IUJnz28N8CKSj+/J80lUQfDg01YgDRptGx4ZApC5fOEyXoe3j4pm8bW0= X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0502;20:EQNtpPJ56u2Q3iQIyzasZkL20PJ9QCfQfQEFuwf2e/56EAq7pxC4EinwIPOFjD2qylalnqF4kC3IqSaRVx8jmL2ITvQGODpiPXdPMbLLCNHDLxnQpR5Cjak66IFnz5l8kPbo+3PUSwZxF3U/Nc3HKad0w2Lnl3mTSmEwGVxjFJVNpJq1zrmxBK5SA6vk3noCzTBOIApArPeP3e1kI0zF7PUc///5RzFHT47BT9UtHRuml6ma+a4R8HMrO4H3CpeAbsly3NAfMmuomHCkks3YWiQej8NBIk3sA6j9y5U+8K9Sww9G27JF+cFECgXY4BNHs9gdGwdaGjCUs832ErfC4M+yrvdLzvgbSysn4z9PNqfcderGtwKIJbD+TE91zlocrrMbBg2qRsUNgzu0B5so6ry71TJ58YZtsGB4eC43/2+Zm/g82Yc939K21eBe4VfU1bMqhpWlfsw5xd8ACs8G5FOu6vN9NGtVeFwdescsQKLaFGlqp4Ef/KiAQg5vM0Yt X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(247924648384137); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123564025)(20161123562025)(20161123558100)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR15MB0502;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR15MB0502; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0502;4:VBDKFyXv6IjCCip12JUV9+F83s7iPj37spJn9l+JET?= =?us-ascii?Q?qcJcI2M0x0lof0MOjuqc1SFwbHm+yUy33Pm7KR2Gog1bF3R4B5FYE0xrRa9y?= =?us-ascii?Q?J6nFukFHEdqwi8LmnN3R2JZTAokjJSGxZb3D5Cr610pcTsIWian0EsyVF9Ps?= =?us-ascii?Q?NWRkS+PiN5mI3aNgKDFAFZzHe38zqO/13IYlxG0P/S6ANSwQKcdYH5LNFdJL?= =?us-ascii?Q?XLBtyqEKq0cjbuk9OqSDeccRjYh3tjmNFgfavckoUMN7Tkl/IMDPW0S28UJ7?= =?us-ascii?Q?ds6AslHHgOI+czuqojQf2p2C24jRLRAPWJhFugEe9OAndDRXkQd/CjDZ2hij?= =?us-ascii?Q?OiHUjtiUzUhwGhmp9NKz5JAOQ9DGKm5G954QMtWzYgBcGbNCSv+rfOi2ExH/?= =?us-ascii?Q?mDkdwS+ANbsWMUifQxBXpTyuJkhVAhax+ugoOCoo4o81p6k8UWbCuEt3cq4W?= =?us-ascii?Q?U0zTelsi4pVptMl23pz9+zkVHOHgxpzQl0Jk2/1LLxFZst199bCILyaZggTr?= =?us-ascii?Q?vyhpWWW0vittI8QL4MV9eb7zWlKtD8B5ECuo/snHwpDxLOFNxWTs2FhcpNqW?= =?us-ascii?Q?f92Xro2anxhYcgBNLDtgYusfBvXhOI+7uJwZ5EtXBkTlp7YaEuwiu63cpRKU?= =?us-ascii?Q?uvEljJRWGluSgJLloIjWMjfmH733SJlvEgAmErjexdmbghhcD3afo/pz56I+?= =?us-ascii?Q?SvPkQxsYJuyhXqUDl3gZ6kWlVigh+oPGfnpJM2OvY/exaJhqPJPkKjVmRh0Q?= =?us-ascii?Q?Gnf6ZVQY+/tKCLSud85m6DAdN3ITYcZ+aQHdE1DQIDcgm7ICuTG/b1pRIk6p?= =?us-ascii?Q?eBjGlb+zHt0RuJ7IHTYE5A0UMMUdxQhQa7Z3Z9UKIMP7+Rb+3pjdW+6Z6lqY?= =?us-ascii?Q?LEatGXs5yHpAaTIduLJfphOLVkDY4r1iPzaIKb/7jvI0kNpJDKFDlDyXsENF?= =?us-ascii?Q?vp8+ZR38Rnoh2Gi4zrYfEzcRufnwRc/9KIc0yXgxVsp/QXhvIkzQ6iyiUR0Y?= =?us-ascii?Q?/JzJIZwnUjrv4noQ04qvxlVo7pFeBRRozZ5X+xwG6iqwAOrMTFwBKaTSEyk9?= =?us-ascii?Q?Tfyr2OaEcPShELTcYfKKipcu+I5a140V+rOHZ2YUV0DJcX+5RTWnQcnhSfBm?= =?us-ascii?Q?XWogbN6ww0TTJMNaRYchemOoRS4z94KaVoZ/rHp+yA7uQazJ47llvqNTtd7h?= =?us-ascii?Q?0pDs8mYjVMH1+X/WACrkvzE+GzZBHYnB0epAsnrP4GUv2hDAKuMCRW6rWe/e?= =?us-ascii?Q?GcFT93oARSC2XTvWQ=3D?= X-Forefront-PRVS: 0371762FE7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(7370300001)(6009001)(39450400003)(39840400002)(39410400002)(39850400002)(39400400002)(24454002)(47776003)(4001350100001)(8676002)(23726003)(6116002)(38730400002)(229853002)(1076002)(110136004)(7736002)(305945005)(5660300001)(9686003)(6916009)(6666003)(50466002)(53936002)(6246003)(2950100002)(478600001)(81166006)(33656002)(25786009)(86362001)(54906002)(7350300001)(83506001)(50986999)(2906002)(76176999)(42186005)(4326008)(54356999)(6506006)(55016002)(189998001)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0502;H:dennisz-mbp.dhcp.thefacebook.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0502;23:8N808dwd/pt49pqLvcofxZSG+o6SKQUM117Ry6asf?= =?us-ascii?Q?yBD4t8mrMQXS3WLPQqlY2FGXBee718Z2tdrEyIYuAs2XMexcH4IA3BJX9gFQ?= =?us-ascii?Q?QEF9f24aCWuScY9tDxa2Ievl39FAn4Plke9mAmpTMkK6rpGe4nUypcPXjebI?= =?us-ascii?Q?H9keEZGeph/M+KTbVUjKl7n3wrYeXRXCJQ9dDqyhakY3yG2Pmd2SdlA4pWth?= =?us-ascii?Q?kZ32vzNUXrssZSKvhpjwQcAgLvbVOUXyMdSN1yP6VJ4sa3RPSDr0TRqWFMeH?= =?us-ascii?Q?8OdO22isYeG8V3ThPqtVuyPENkmuNOh+mhMcPEARAeSZctutfkbHnq7RIzY3?= =?us-ascii?Q?WNnLnqoymNpn/LYjsiaOBxc6kihzlljykS/GYfk66aBaGqFL1fhlS6iUDtML?= =?us-ascii?Q?JCDTCmeM1Odfri7R6wx9hNz8YqhTcNIgZQ/OYvu97ug83bDOUGhv1wQ3CEZq?= =?us-ascii?Q?ooooJRx5zeIcPmtC6ypY0fWrbc1IOlG1rYDAQsp587uSPN6sAcI7F/XaCLPj?= =?us-ascii?Q?og0GqAmq9X1dO+HLe1ZjcnQJmdzK6oCtjgA74FAhHk5eSgi5+GI3usLBeElA?= =?us-ascii?Q?boR+szRAOhU9jwAGlbZ5jpnouafmP8gC8WDK3A7KwXsMdLJ+ouepl+QJvB1O?= =?us-ascii?Q?ZpUYWmc75n+csT0MyKRNpbB+1KCc8kiTLiQgBp6JVLk+7KsCORLbGUMnpkWM?= =?us-ascii?Q?0MSjD3qUWQm9K70SsAiElzPJTY3onyNiY9Zgzqv2MgH/OKYOml9tDSZfhlSS?= =?us-ascii?Q?7qeraWZhFcY/l7fui6qJexrP0uBbCyzlNI7SDuKscBQcMkCMUGocYmCdI+3K?= =?us-ascii?Q?98VDk7LrnWBGXCtjr61Sl+zlqXJ44x9sieCQRss4UyYf79sUSMq561iJW0qq?= =?us-ascii?Q?djjM2fAbiB0Sqp8B5CiUy7igVhQqCScfJjb0oCJy+PvQ/7pew1/1uRTXaH9Y?= =?us-ascii?Q?6OAqsw7d/Jjwyr77wwhQZSb0gjmXsAAuIujzI6L8y0E3prBHRDgcPYDSLbc0?= =?us-ascii?Q?wwdCaVxMnIHDgZjmXxIwXCTqRI8FfPcPSZOhYvmq/YMpN4prQtL9Hp3PE2hc?= =?us-ascii?Q?1S9Z1k7XFcJDRcpdOOVwivBNAo1YNgpczioJSWCJ5+3rDK5t/6wCuTaEMWWV?= =?us-ascii?Q?+1ZgI4T23aC6QMeMuOO928mVJxTAJk+ds8svdNu5UDtqwvMKZF89Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0502;6:KBQFgswEzdL5sZJy0qmyi8y3b7QEFTqCVexGLTfs9v?= =?us-ascii?Q?YRcCLJ8Y9UXVlgock/ZEzAuCQ86FLYPdypC4+B/9q+RevqGRuLIVxA+Usr2z?= =?us-ascii?Q?V+hedaJy7wOS02nVn8TCSk8IZWyykAX8iV4YhNo7uhAdRVlRI0lVWBKli0So?= =?us-ascii?Q?Ux3POqwohfUO3RbsjdwAt8CRShXLxCnqdW798MiuHHJXKkYlza3sdIDU4KUt?= =?us-ascii?Q?49l7BCGwtNwI+vHNLlqxKgpnOTyJgEb8n8c/YmzhgS0uU0jQvtgQKMzY8eq3?= =?us-ascii?Q?JSoDvxX9+zyS7cbpg4mHo2g72pvSBW6xRhNvSr92nbgJwmNYCUoEWmTCa6XU?= =?us-ascii?Q?icC7TFYV0yLUpDZt9osvJp8AnFWYZNS/NXJl81RkMakrEiHXrRHfeZmeDKW1?= =?us-ascii?Q?S8ibblXMFpABSyRfupTbp9da+tFvi30R4A1M+A9Wiic29vfQYEGMKP27QFLG?= =?us-ascii?Q?ffhqSivd5ukASZQTxVcrCDLPfkpJ624+otDntmPgA/CJIggQLuWeZS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+ZoVo3n3wRKXezT/ndHOv30rF6YY0vGTgHfxNTc5st+BcuyXxgQP9tY+9TUmkJPijA4bPDimSeucc/;24:/mQCWWBMlJvV7n7iMTKinwyb7GE0NTCCzDZsuz8fPCYl6QgzTSjGxoPYSWu+ioshR5kkUdFEIy4lklYYywnrHBrLEK/Yb6bZxPog1A1M4dw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0502;7:MAziKsxzzUD9EL5ofOjxlZ/U95Twj7vYGwcMveiZTTBm1e+yBm4IvfeffQYxH/J2MWbLYWcRW80/m9qQKga6LOPt0//xkeq7QQqSM3qxFR/eHvDn3Y05q78wDcuSd17n7bXPw0TRypP8S6NpXybp4/x/mDsZZgbeguDIjcm7BVK/gGoH7hJ+IOhBsHx7z7hig6GEPphZkWG3UDVJikPBIKHmVDyN+8Wk5q8gfq3nNTrc+qh9irUJJRO9lkorRIhXjrr5ka+zMH+WTNUqI8hLbKN6nxMUvb8fXZ07oWldSEwn445RyIMblLCzAXHXcLj3/6m5omGnaQQkhtVUNjcwucUBvao7TbYg150WY69vfDelpUnYL3oHrS0rHGv1bD0mlUapdyMDBtyg4FOKOmZpslKLaMcOkjhB16AsBalvgtiDRT18AR443YQrMvxCv8WJ0RE/2mnZ2UAIf94QlctIlGlhzs2RaZgNxak1MALrr59vk0I5URDr9Muotxkch5XjSMYXJqU9XCOoqRDwvNQP1EGO1rsQpTghwAYhsLnerZX7FFGROMFu/OKn2O4mWoRD6+W5CtYh61JRnv/saDoFGPHx83qim9wVf8zcAQafwNjEDlRFHoz13+SZmzlhbXx+EPT+jroTkkU8tRE85NBIhbwBqSpfrQDv8XFlIBfBH6LqqY89MDzVfIkqe9xE4x5NTWbcxhyX6SkrY14de4mkw0Ng6RGLCC7H3gQ8jN3nLLc1H+Jc2rE/I9jSoph8R8KZp5ffwjKs3bR3O4mRH91cG6bTUxGtJl2oVGE6qRUMO+g= X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0502;20:LfDUSa15b87uuBC8aFuXKy2xTL1NLSzlre12i2u2j88blhIccV/zSf4QqJRoVZqYoPfvbPZpmob8MkluNOVvOKdk8J27kPQ30jdHhvRCituZ6+IZOyWLuFEy5uhSDegr4xhIWQ+M+K6zG0N9nvXKfl2lyu6GhaLkD1kuTEzIOfs= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2017 19:10:34.5991 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0502 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-17_15:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2598 Lines: 56 Hi Tejun, On Mon, Jul 17, 2017 at 12:46:50PM -0400, Tejun Heo wrote: > > +/* > > Should be /** > I have fixed this in v2. > > + * pcpu_align_reserved_region - page align the end of the reserved region > > + * @static_size: the static region size > > + * @reserved_size: the minimum reserved region size > > + * > > + * This function calculates the size of the reserved region required to > > + * make the reserved region end page aligned. > > + * > > + * Percpu memory offers a maximum alignment of PAGE_SIZE. Aligning this > > + * minimizes the metadata overhead of overlapping the static, reserved, > > + * and dynamic regions by allowing the metadata for the static region to > > + * not be allocated. This lets the base_addr be moved up to a page > > + * aligned address and disregard the static region as offsets are allocated. > > + * The beginning of the reserved region will overlap with the static > > + * region if the end of the static region is not page aligned. > > Heh, that was pretty difficult to parse, but here's my question. So, > we're expanding reserved area so that its end aligns to page boundary > which is completely fine. We may end up with reserved area which is a > bit larger than specified but no big deal. However, we can't do the > same thing with the boundary between the static and reserved chunks, > so instead we pull down the start of the reserved area and mark off > the overwrapping area, which is fine too. > > My question is why we're doing one thing for the end of reserved area > while we need to do a different thing for the beginning of it. Can't > we do the same thing in both cases? ie. for the both boundaries > between static and reserved, and reserved and dynamic, pull down the > start to the page boundary and mark the overlapping areas used? I don't have a very good answer to why I chose to do it different for the beginning and then end. I think it came down to wanting to maximize metadata usage at the time. A benefit to doing it this way is that it clarifies the number of full pages that will be allocated to the reserved region. For example, if the reserved region is set to 8KB and the region is offset due to the static region, the reserved region would only be given one full page. The first and last page are shared with the static region and dynamic region respectively. Expanding the reserved region would allocate two 4KB pages to it + the partial at the beginning if the static region is not aligned. It's not perfect, but it makes alignment slightly easier to understand for the reserved region. Thanks, Dennis