Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3086694rdh; Mon, 27 Nov 2023 06:18:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuiHcgaFdJVyUbS+S3Sv/sFCAkDBtYwSERqJjFhIZXzXhpetG9ag2FRhr0MhL2g5Af3nVy X-Received: by 2002:a05:6808:6544:b0:3a9:c2fe:335c with SMTP id fn4-20020a056808654400b003a9c2fe335cmr16361953oib.52.1701094718154; Mon, 27 Nov 2023 06:18:38 -0800 (PST) Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bk37-20020a0568081a2500b003ae04bb334bsi3928164oib.10.2023.11.27.06.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 06:18:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a72KNnOv; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7E53A8094D57; Mon, 27 Nov 2023 06:18:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbjK0OSK (ORCPT + 99 others); Mon, 27 Nov 2023 09:18:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233657AbjK0ORj (ORCPT ); Mon, 27 Nov 2023 09:17:39 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA5B6271E; Mon, 27 Nov 2023 06:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701094380; x=1732630380; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=ssukdTVHQh0JSOxhgVFwvvgv9YWnyjGd2/bUsbahrTI=; b=a72KNnOviYfQuSX4kPCj1AKiBaacIWojZMZ5Uo0YJm99X8dA1is5gA2t nJ2ZeKm6BJgDoBFeisDN3tqy5DIE6t3D+YlP1/Am8t4wcCF1aQxrciKAj ULjbScbwdM4Jfeb+MSXwTg6TUYplow+uAlhlqnzK8zJm4GIMUFibZyLNe D8KoPeEJy6CLsh2rLuKBAXcQ3vvBRONwFLCrl4JgohBWCcjOAke8VNbp1 ooCyTyflpaePfBQA+gcKJCbiBbltE8DApsyP4W+DRDi1CvOKnCVafCL6O iobbUXoeAo7xKUXJMnfW6a6QezKl0Yf7o898kIj2qKML161ML35iltQ28 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="391588560" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="391588560" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 06:13:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="859072290" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="859072290" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by FMSMGA003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 27 Nov 2023 06:12:59 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 27 Nov 2023 06:12:58 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 27 Nov 2023 06:12:58 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 27 Nov 2023 06:12:58 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 27 Nov 2023 06:12:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kDIWcn4TUZ/mOrUwxeX5ZQgDMmzUZJM2a68hY42u7xaq/+AlLOXnOJkqW+NNh0CmiQ2iCdlJACVysON326Ol43K++ne9vm2CWslASjLov4DTx/Qa3sLj3l17QUFN9PPM/Pl5QU/Oe1fzJT6jZFp4iVzZ9kJEMA7sZQwraIJDGV8W0VvWD4tbHrtyJhpkL3SrqHFwyD3Oh8LrW5K0Xs9GmGpdp9VU3cnDkVIQopbLGu5m9DSyVhEpmH0/DCan0SmFJgjk/ofRnTDi1o+4NTG2C1pV6Nn2L94PvW7Uyr1RiaBBRK+IA9ZruJKXntM9g5/1tGvpXOasBv82NKoRfPGkYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=I293wiYRpRZEUH0gbyQUACOJ/oKHkdsmPfl2jQPem7k=; b=AF6Q8eYCNOG6He/B5TJs2bEaqaomwVWJuMuHY2J7yIv+H9UmFvmJhuDraIVkcGqvQY914A0At6SlOvtsomNVBmOzCiRdcxmiWQlJCO+PAMCzILI5yo1dpbzeNDLmjfDt0uXKt+jmHIpqyqfcYW62jTzMvyBm+bQX7/V/bo8/QnDD1LdVO/c8aK4cuC+xEM8+PR8sC5lFuMuolyi3uG+bzIjTmUzkW/fbIxaOh+t+OlrJOtgCTMyAl3N3BolMYJRdjY+KOjLghsqP5I8NnvcC/+UNMaZ9RNGJo7bsdOfP4CUkeJgLN9BJKJyXnblk5gx/Yo2hVg8zeSCUXi4L/WTZGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) by SA1PR11MB8543.namprd11.prod.outlook.com (2603:10b6:806:3ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27; Mon, 27 Nov 2023 14:12:56 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::36be:aaee:c5fe:2b80]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::36be:aaee:c5fe:2b80%7]) with mapi id 15.20.7025.022; Mon, 27 Nov 2023 14:12:56 +0000 Message-ID: Date: Mon, 27 Nov 2023 15:12:29 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 01/14] page_pool: make sure frag API fields don't span between cachelines Content-Language: en-US To: Jakub Kicinski CC: "David S. Miller" , Eric Dumazet , Paolo Abeni , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexander Duyck , Yunsheng Lin , "David Christensen" , Jesper Dangaard Brouer , Ilias Apalodimas , "Paul Menzel" , , , References: <20231124154732.1623518-1-aleksander.lobakin@intel.com> <20231124154732.1623518-2-aleksander.lobakin@intel.com> <20231126145457.400726e4@kernel.org> From: Alexander Lobakin In-Reply-To: <20231126145457.400726e4@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0162.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::14) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3625:EE_|SA1PR11MB8543:EE_ X-MS-Office365-Filtering-Correlation-Id: ea3358fb-59cc-42d3-d8d3-08dbef52f3be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JtPs2l2hSQLECLIGY+FOgs1Ax5SbGssD1qJnDSbWKNrwaWrWiQ7EFYlxb/KxYSe266nMHnt3g9NIR5aNL1cO6PZ7yUaauCs6CQo5H4P7xG57TBtThQvMy96/zXAhwX0ZLG6sOHrBIVSK13fLqN2YCH3u2PgFmmfYo4P5dOfIvPeVHUk3qLIIhmX5VNIYEdo4hRnKbndEKSoUcfKFF4TYInaLkEVb4MORtD9GPCg8gd4iBimWJ+dqU6VH6Q5Rj8MsVkIfZp5Gu7rfjvKN6GbEGje9AUqikdY24YmU+3neZXXqWkKqBKbRWJocCYVLegLEYuadyKEeIBP8+NNI0F8XpT/WEWMnpvpKXTXhR3Luaa7WXW/TEe0Ncii9Ln+8OdGL1wgfYsbT0ap5j6aJwdxuafBs/xXd4HZHTvqJpyq4l7FsTnmwJSzhoT6edb/xRA19APEDsCvvQF8ifou+PeKU4//NUtC/GTFqtLEizndwnLQ9uUclps7js1cdjR3W7UiA1q8T/e1NuVC2OgJEzJSHGoGIKg1N62F4LdKPuix7n9/N73tfuTwvDYgqEkqMA93/qGViEyMyiXDXUiZZp3v3bkXkN6WUIvD0nvbs8ZjokOTzAOP4ftAE4NTO0a7HpPWtaHa4VS++h8Ap2zin4LZvRA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3625.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(346002)(39860400002)(136003)(366004)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(6506007)(31696002)(6666004)(86362001)(31686004)(82960400001)(41300700001)(36756003)(4744005)(6486002)(478600001)(6512007)(2616005)(7416002)(26005)(5660300002)(54906003)(316002)(6916009)(66946007)(66556008)(66476007)(83380400001)(38100700002)(2906002)(4326008)(8676002)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T0pqbVJuNzRSQm5KdThaSDNzQ1p2akVUZzhQY00rQ2J4Q2NZcUVVRXJ5OGs3?= =?utf-8?B?MUtNKzVDZnNGQlMrVFFzd2Nndk93V3BpTTJGSTFtVHRiMUlsQ2x5SEZMamNv?= =?utf-8?B?bjhJNG8zY3pvYllqR011Mm9TRDBZU0N0QlJ1M2hoRUdLVlFiUXk0WVJDdGU0?= =?utf-8?B?RlY5MjdsTTFIYWRyRCtZeXVLS0VVU0NpdlY0RW5wYjdEVHBqYkpEYnFKTlpY?= =?utf-8?B?cTAweGkxbC9HTWVtbmVyWHRsRnBBN2R3RjE0MTQ5cURWNHRFK0VyRHVkSUtx?= =?utf-8?B?TjFuY3JaVXN5SncrUVZwNTVaYmhDT2xOQUZPYjdEWHNIV1RJaDZjUmdBN2w2?= =?utf-8?B?QXlqT0dmcTJkWFNXZ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S2FJcHpYM0JzZ2NzY29SNTFR?= =?utf-8?B?R1E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: ea3358fb-59cc-42d3-d8d3-08dbef52f3be X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3625.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2023 14:12:56.1414 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wzi6joK9sQqyQMvIAui1g6++kA+Dkyf3GZLdpIFV8Dev+X7RhbhABhTTgMuqmZuH0XhFyZukPnkZx+qNWPpU0pvbypcH3xWlui9cX7oKu74= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB8543 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 06:18:31 -0800 (PST) From: Jakub Kicinski Date: Sun, 26 Nov 2023 14:54:57 -0800 > On Fri, 24 Nov 2023 16:47:19 +0100 Alexander Lobakin wrote: >> - long frag_users; >> + long frag_users __aligned(4 * sizeof(long)); > > A comment for the somewhat unusual alignment size would be good. Roger that. Will paste a couple words from the commit message. FYI, I had an idea of doing something like __aligned(roundup_pow_of_2(2 * sizeof(long) + 2 * sizeof(int))) but that looks horrible, so I stopped on the current :D There are no functional changes between them either way. Thanks, Olek