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 BD5D8A0540; Wed, 21 Sep 2022 11:05:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE78540697; Wed, 21 Sep 2022 11:05:58 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 0EDE74014F for ; Wed, 21 Sep 2022 11:05:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663751157; x=1695287157; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=ghOzp0Q4AaPG5xT68tX8PRgp0gWOFd41i/B4XeWHc+M=; b=DyDZLoJoUhRf4WbtxRaGpdks57JJlkVGIzM6UYD/A/JPFo01dhXudexn MKmgZlGM/6AjYuE8zRk8pkBeYrnJl8UPjnJvbmDQJN2yZh3jgP5ZQrr0n exgpMp8AgtVa7BI8dK3xcbYltFLoCDDl8Cwot5G4UjuSk3CWRDsxyrTBc enOaPsJd0jTU3Zeg4rTLxOnuU7zUzW2rsTotkbXV3fDz4BYilsMXs7qb6 WyLOg8JHXWJHR1AeiNvej7yHhBVM4+scPG0AwK6uAJ4LMeptlubtra8YM oDBr9iWWRAeIFCi/LtvyixMxOm0FYkUHzHiu7HMwCRrfopZMuRIEshOBE g==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="279673489" X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="279673489" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 02:05:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="681689778" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 21 Sep 2022 02:05:56 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) 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.2375.31; Wed, 21 Sep 2022 02:05:55 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 21 Sep 2022 02:05:55 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 21 Sep 2022 02:05:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oYLIj/KGm1fi5TGvabG+VruVRHTZ+E0umWhh5e07hIgoeNe+qg2X77aV1EWkE9Y16EcNrdYawTrk52Xm/UHWvzd4AVRopixriZfJpqEyxvjM7raAa5aQ5+RZs4vVhU1yj9SkJR4ui7PAaQ4JDEDqa859An/z88kV19Bx6E7dl0XQkDiL4GuN6DVD8uGJmceTZuRw0Laxj+InlLcVlZ9Fuaa6Xts9Pa/B0Z9tTa3PFzn3NeTLrCyC1yvUwMSWhhfD6xvVw6iYujzxC3T+nA/IEPME62shaaXNZF8ShgjJBQTZ/7kV5dDUbvXAd4/jwzkA+iaEQR3P/2CFD8YxImuzVQ== 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=yFOkRPqh3qgWzrB9fz8bUaGLvPOm6h4pgWXJ5vfxKEQ=; b=bnAW1IsvtY2/W+oquIgYxFnk1WgQihOJ6osCekGzOHw+52M4I7MCbNW4HcjKxb+GaLboPAmJBay/u8VHqOhIwBS1N2Wx8sGzDtRY9hC+cDstkPZ/qMqgNbh5H0fgE45S/ZplSIGUvQCkL5i7hiiP9aI7mS3i1LWeCG7R0XB3Vk1ZEe/bfgAu2iH83nLCOU9yR9ppxMi9mGC73okT5vTfSpCD6fM89KuPu5Qv67sD44Lx/s4/vp44g4ldpW0kO0xWQZHwDI4drY8nAbmQtgquz1Mko4l80es4WIUNqSHPxxALIcGRi1zBkFWrEuaPwJ+8DsZBy4icoqvIYulymVF9Vg== 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 SN7PR11MB6677.namprd11.prod.outlook.com (2603:10b6:806:26b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14; Wed, 21 Sep 2022 09:05:48 +0000 Received: from MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::13c:8120:d994:16d2]) by MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::13c:8120:d994:16d2%6]) with mapi id 15.20.5654.014; Wed, 21 Sep 2022 09:05:48 +0000 Date: Wed, 21 Sep 2022 10:05:36 +0100 From: Bruce Richardson To: Mattias =?iso-8859-1?Q?R=F6nnblom?= CC: "dev@dpdk.org" Subject: Re: EAL threads Message-ID: References: <2af5b047-f5fb-3074-9d8e-8dd7b01ce3c1@lysator.liu.se> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2af5b047-f5fb-3074-9d8e-8dd7b01ce3c1@lysator.liu.se> X-ClientProxiedBy: LO4P123CA0076.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:190::9) To MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB1629:EE_|SN7PR11MB6677:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c5e4ae7-11da-4e96-7ba0-08da9bb07933 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sbbXVUXVJqgD88wpC9ATVhZ1fwL8wZuouCD+N/2nQwON5zvpQzvpUli/3fomLH+2OHdHW5ekLBrWxWJxgBQvxv3jP2lT2oQUgG3YZ5gqx6tHEY3I2VvVk/auDN/WwAYZnFYiGDHj9TY/SDe485Kkp2oOMq1fxjwvtXnquYMQrjtRS+kOaw5Xe0agHUbx01WSIvc8DT7IoZKARQe+exVwgV/S3sE6a5d716yZDZZhFhZ2xknbsLjACvEsEZ2F8odM9GRMirpJFLM/Vbwp4MwLe7RUkaJvl7IMQD4JaM7YcUb+iNzfcIm1N2gv+MNW2m0yNUlmMjRK0qN05RnEDZHSE1e7jlQN07IozZqBim4UyHlkZSg3RxdNBVo9cVQVNZNyApJPwuTZcRNSNe3EfycEbDLB0BA9YO2iir3A+wRmWn1tzeuCagIaoiwTWi5kiI+WOA/4V8tbU7MdrlMFkj9qUrgur52kKebQF5hrKvlQG+IyD9cmgwJDzUIL1xsMWVrQQdY2Zr3ZgmQtYQxzhJjHCJoWBBQvVp7PSGWHNsw3IHoFnf/q+VC21Os5AK7pm/vB9ahMbnt8IZWXSoWIOsk0fa/ziQyF7ts6OTlSYsXzaOxEVjrq36MfAU9QWZByOrphKekVx7xdXoioxyZugMSFFdg2Otn3u9uebNbKVjydmoeMvmwR//m2348X0KWWz6Vu/7UVVCTAq3Xcd6JoV7nIwQ== 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:(13230022)(396003)(376002)(346002)(136003)(366004)(39860400002)(451199015)(2906002)(5660300002)(82960400001)(38100700002)(8936002)(6486002)(478600001)(86362001)(6666004)(7116003)(6916009)(316002)(296002)(8676002)(66476007)(66556008)(4326008)(66946007)(41300700001)(6506007)(44832011)(186003)(6512007)(26005)(3480700007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?ZQ2TkSJTEvbiUlkEdOXuTt9qZDQ0JtwzB1/Eq8h+lSDp8RoT8sBraSe0m6?= =?iso-8859-1?Q?fFXiTWwcbklY9Gh6CDco1cFCWPeOJ0QmzXj8sv3Es99PVDDaqSDIy/wLCy?= =?iso-8859-1?Q?utvqpTfLURwT73r8zn44LOlgar5QyJQ0YX2ogDn1QvNlk8gtBnUiuV7g+R?= =?iso-8859-1?Q?RGtP2JzGiG0pzVdlIbJTc+v20R6tgLpN1kh2VdiknMsoCKY6HlbkU3BsUs?= =?iso-8859-1?Q?t7Nv3v0tbFIkDsaRlVk16EZMfLgZi69i/iOXCSkClMhKJZBO/L3SohKIKH?= =?iso-8859-1?Q?wYIUovW93C0l+OTMllsc/JqzPiAomTWT78ox/0PT9yYlbaFvVP1hRxUvBk?= =?iso-8859-1?Q?UAznvEBJJwogi7LTJOWTVmq1UK0BwEqiUJrD8DZls9t4PaKFH8OEpcWuGE?= =?iso-8859-1?Q?JKEr4KaV/2jBKodBKHnmDly9TNDY9mjfGAk7VH4+eaXgfh+VN5T5qy2Wsz?= =?iso-8859-1?Q?roo8K5BpP1vpls2ThuHK08fCevy/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8859-1?Q?oTNVYknt/TNVTScFiEVt7Y4fllXn0rRcwMrp8FIVK8WEbGeANkW4EMnr0b?= =?iso-8859-1?Q?9jui5VPXdZ1IcQJHdN8ziaIoHX6oZXIXsTvh6LWpX1VsQOeHD99FQdumZ+?= =?iso-8859-1?Q?2sbsVlJ3k3X3NK6svx9UhMavRe55iYmpuvoQEVLvEcHX7IllzCSbZw5BWp?= =?iso-8859-1?Q?NOOjsuodclrSqHI2ts4OsjmdTS4pqEvrjOnCSmoI+g2NMz0zPieeJchTT+?= =?iso-8859-1?Q?FeS9vyKwqvqAw69PK42bym5NKlapreLDRzQcmxVk4ZS31cqX+0P/SCXQ?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9c5e4ae7-11da-4e96-7ba0-08da9bb07933 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2022 09:05:47.9437 (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: 9xCFkXmHnzy7o4qzy65RQmUGrl1trGYKgUzeASte4j0RJ6zqD835s8FphZ95RiDJfHhE4+vMlJ5xL5fRsgizPpaXvGIVaUVHhBJ+bT5J2g8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6677 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 Wed, Sep 21, 2022 at 10:39:15AM +0200, Mattias Rönnblom wrote: > I have some lcore-related questions: > > The documentation make use of the term "non-EAL thread". Is a non-EAL thread > the same thing as a non-lcore thread? I.e., are there EAL threads that are > not lcore threads? Yes, there are some threads created by EAL which are not lcore threads. These are generally for background tasks, such as interrupts or telemetry, and are given a coremask to be kept away from the dataplane lcore threads. Therefore, I think you are right to try and get clear terminology for the threads. In most cases, I think non-EAL thread is referring to threads created by the app itself, but it may in some cases refer to the 'non-lcore threads' as you call them. Personally, I would suggest terms like: * dataplane threads * background eal threads * app threads for clarity, since I think the term EAL thread is ambiguous. However, you or others might have been ideas for terms. > > I also have a question related to rte_register_thread(): shouldn't the > documentation say the user is assumed to pin the calling thread to some > core? That is the expectation, correct? Probably, but it's not mandatory.