From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4CAD6A0554; Fri, 26 Aug 2022 12:46:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 281DD40696; Fri, 26 Aug 2022 12:46:26 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 3C71340143; Fri, 26 Aug 2022 12:46:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661510784; x=1693046784; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=wAwn++wQnWiK6adhOB4C/NLhEkyfdccHghIuV83KtIk=; b=CjJW0z6pOGWzqsa5n61v5adFjsemcsVi8kMRsFfQf5Yu0sW41c8nP2B3 89xzlIpHTarrzARgf22moBCadiEAdChARWVVl6a3Z2P+HScRTFBlPPFCi 10t2T3tQB8Gs0OvSq/oA12ccVm5x7p6TbZuwqDT9PqUJkTjewBqfSNANm oj3C+ayi5wzr8EU0p89H7GICe4pV8UNZUWYcJWCX8g4wu9p8IBFO97pJp +ogZjrwcgAFCOumDxw7dYNGy+JieIwli4m/p+qs8CassLs5phn+kv8KDX AFLi3yJrDIzb5lF3OY/GN7/YMYkl0eTkFVLFuZeI1viJgfHmyGu0B4oxR w==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="294484125" X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="294484125" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 03:46:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="643619932" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga001.jf.intel.com with ESMTP; 26 Aug 2022 03:46:22 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 26 Aug 2022 03:46:22 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 26 Aug 2022 03:46:22 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.105) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Fri, 26 Aug 2022 03:46:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BjIr8M5PSiea4fbd+kmujd1zlLAUp4MhJA/GXvfYaz8uekFJ4RX+y6jzRdJfrH1ftGP60cZ5Oj3klnPWg3owFGU4JOOoOR4IT6fVZF6PRysn8jiBTebjsE9GinRWCNs0h39qSGb4C495tJSHYu++KJchCEEzNdzcjKUesIBWIamwnUP+uZv0htNugsRzOcOdHQXM3lrsHULcVcijlBOf4RLVa9fPj1MqFQqkgRiWDd2dBpzKT2Y+VDbuPBTr3FH5xmFOygjA+pp8twnPyTcA2sGnu1DblqSel64U94A0vx+wSjs2aXOd4zxaMkdSym04yGVU2zK0N9VZSvxMPcC1Qw== 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=Cb/TdtQuqla4yT1ztZixqDrqKuR8Qy5aNu32cRlpo2M=; b=eTw8w3ov9iAQkI3sjhVtr1NU/pGL09b5rSiGCEKUBXpzRK28/n3ThnwAH/FpjAYnly0yegowgpD24WpQDsocyi/YILIKzNz76ZA6aAP4tKgRSLKIOd2LPlVauZOP0qVvDuJTuskb5gRFcwwecb1N3r2qtLx8Q+QBF9RGY7HA0PyyWfABi1UBnZWEX6XWwZ1tH79Y8Cgw2YR2fbVcQhkEnd3QTUMzW2QbAOXFlh5VTuSrplMw2vuaYd/1B+NA6H8TF5BEtWl5fNYiXzUW558Ydxo/HFYS0qD4OE6Mbe/qsTQDOR7S4EjhxN6yYEYThZN2OVJ3VFvLspo4Uw6ZnKWxOA== 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 MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) by DS0PR11MB6376.namprd11.prod.outlook.com (2603:10b6:8:c8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Fri, 26 Aug 2022 10:46:21 +0000 Received: from MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::13c:8120:d994:16d2]) by MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::13c:8120:d994:16d2%5]) with mapi id 15.20.5546.025; Fri, 26 Aug 2022 10:46:20 +0000 Date: Fri, 26 Aug 2022 11:46:13 +0100 From: Bruce Richardson To: Morten =?iso-8859-1?Q?Br=F8rup?= CC: Thomas Monjalon , David Marchand , Ray Kinsella , Jerin Jacob , Sunil Kumar Kori , Harry van Haaren , , Subject: Re: The EAL is bloated Message-ID: References: <98CBD80474FA8B44BF855DF32C47DC35D872B5@smartserver.smartshare.dk> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D872B5@smartserver.smartshare.dk> X-ClientProxiedBy: DB6PR1001CA0033.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::19) To MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a084c237-8c15-42f2-33da-08da87503611 X-MS-TrafficTypeDiagnostic: DS0PR11MB6376:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TnqoZN/pWTOvm0ZjAI1o4Pe1f3FDb+ZIzQl66jn8EHcFplQ28Xzh9FhvKHXPnwg2Lyc2CwvEzxnv0BqEvq8paGUrNQ10Zf1ORXucSls+JLk9Ee9tZVMf9PP2Zq2CtfC0oVeShofQtuyQMM3mYLPqfU2IBoPGlqNp36lTs3RHK9lrKcZft8z1GqfYa3LcuJjM/544sr7B+GgjKTc/hyW25EvvPXsBremQmC6/ayk+WwacmGDBru0uqrhPhje+HgCfiAmrg0RBfIHPugaiy1CgYF4RImIzJ4Bo3gJYG4QUNpYBy2Wczv/KAb5x4/hDbnA3vA8yjA+6FgkC9tEC5HTMgKg+9mWZoaf8Z5wo9JRq5J+oHdZDLnZWDAOxwOOdH24XNR6uQKK7SFc4o4jm4sbrLAbA9GcE90MfDkSkNKG3v9QomhA5+eEfexxaNYQa8PVJeZyeYgJGNQn1YwhdrzLjnTsP5cwn2haMue8//ttaDg/SuqW+MV6GuKBlIcQWgJxhF8dnRpAmESxF6/cX/DwTp3Ph3hveXQfEtTdHB8D9lCeC/X/D21ijhteOuWcJmHW46LfcBwj2rY3IahQKKyjTu1sKssYEGmY97kP2eEjTGWj79taCmoSsMRye1fiLFVhZ0R9xW+JYE5Yx9GYlqrqNyHNVRfqdMLyBKcQkY0bXr6KDXJQGHMY8SnUhq9jmDzMUp4M8mFm7AcDoF8iVfVhJNw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1629.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(39860400002)(396003)(376002)(346002)(136003)(6512007)(83380400001)(26005)(2906002)(6506007)(186003)(82960400001)(3480700007)(86362001)(66574015)(6486002)(8936002)(54906003)(66946007)(41300700001)(38100700002)(66556008)(6916009)(4326008)(44832011)(8676002)(316002)(66476007)(478600001)(5660300002)(6666004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?kW56FMtT8BVmcCtI/fyaYS8F/lyvXLNKxtvT1bpivtsWRgjsh8geoAcg3o?= =?iso-8859-1?Q?qAXdQsAV4Ynb88bP6/qZE0rumksa94qpk5aJ994lWiAupdyvlbzgyP67jO?= =?iso-8859-1?Q?Y5nw8SXrcqMWVDz8CqOsR9DIE1MLU7DVctiijDbiwkYIqvDI6p+fxavAzG?= =?iso-8859-1?Q?BIdRJzEvDLkiphT2gQa2JUV7sGrcYMpOc7hpikCy0rWi+jjvagg5GcYe2u?= =?iso-8859-1?Q?e33yiyLwc13LXnbpgAGASa/UJtitocT0ugNzkfgxmSeriM4PQR08dBe/El?= =?iso-8859-1?Q?sdlLPFSQdMuBkYMd/JYY8e05BRD7D3fhJq/1BS5ajxJTQRGedhKS9X3Hib?= =?iso-8859-1?Q?XJfuXBcdvef3nFMLdqI/0x6AF+N7GtDX9DRMvYildDFOTooMtrq6t9YI3M?= =?iso-8859-1?Q?jqreRk82UDHlhb3exl8SOCMrhCVaGE0bxfxGQuRTDuOOvrUbCzqPIcKOLD?= =?iso-8859-1?Q?nh+ALhBmrUrnFNtHfoYHpWre6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NiD7wJBFQ1Tt5cQr45fopmq06wqUkK6uPmC0vDrNlBNAEkEmWkUT29UD?= =?iso-8859-1?Q?1UdNMEblGrl4dWVeVHD6Syp2k80YZpCjobnNtGfgOeWX6r9WRuSvWnqNNG?= =?iso-8859-1?Q?NxLmbjjXruYTefbt0h6iImxSCFTZQj6itwgUaF5ko4CpM86LRnyUqR/hxj?= =?iso-8859-1?Q?TgWAlOD+T1uYxIGviFFInYUfjDj9tzhql4mZRqLT4/DXyep53wGdlYLAQg?= =?iso-8859-1?Q?vuZMhf3IVKSgXC70LtmGea/T9D4pYYJsTO5TnAryHKlfVsfI+p7gcnKg?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: a084c237-8c15-42f2-33da-08da87503611 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2022 10:46:20.1826 (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: 6Ok08pg6DCq8CB8s3Vl/dnkpjRoSL9bgDSqWwGrWiADVTiOXoUfLEqC7ior3KLy6l3ddSX/OhCLfx7x3ScEOSYyUkFqZVXB2A/+wBnuA7AQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB6376 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Aug 26, 2022 at 10:58:15AM +0200, Morten Brørup wrote: > Dear all, > > The "Environment Abstraction Layer" is expanding far beyond its > purpose... > > It not only includes abstractions for the underlying CPU Arch and O/S, > but also a bunch of generic utility functions. In an ideal world, these > belong in a Utility library; but I can live with them staying in the EAL > library. > > However, since the Utility features are also considered part of the EAL > library, some features get misclassified as Utilities and thus sneak into > the EAL library, regardless that they are completely independent of the > underlying CPU Arch and O/S. E.g.: Service Cores, Trace, and soon the > Lcore Poll Busyness library. > > The EAL is not a catch-all library, and we should not allow the EAL to > grow like this! > > If this misbehavior doesn't stop naturally, I propose that adding any new > feature to the EAL requires techboard approval. > I don't disagree with you that it is indeed becoming ever bigger, and that we need to do something to do some cleanup on EAL. However, IMHO this is not a simple problem to fix or even to draft up a solution for. I actually did some prototyping work in the recent past to try and see if or how much the EAL could be split up to make it more modular. On the plus side, some things like logging, for example, could be fairly easily pulled out of it and put into a separate library. On the other hand, really splitting things up beyond pulling out a few easy things was a massive undertaking - at least in my tests. I also think trying to classify contents between abstractions and utilities is overly simplistic. To my mind we also need to have a category for DPDK initialization code, which is a lot of what complicates things - and may well be the cause of a lot of the "scope creep" in EAL. Given the scope of the problem - and the fact that splitting EAL has been discussed before and nothing came of it in the community - I'm not sure of the best approach here. Maybe we can start by splitting out what we can of the easy stuff, and work iteratively from there. Alternatively if someone has time for a big-bang rework of EAL, that would be great too. Regards, /Bruce