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 5786E42C91; Mon, 12 Jun 2023 04:38:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24D6942C4D; Mon, 12 Jun 2023 04:38:30 +0200 (CEST) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id E5B164014F for ; Mon, 12 Jun 2023 04:38:28 +0200 (CEST) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-53063897412so2630644a12.0 for ; Sun, 11 Jun 2023 19:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1686537508; x=1689129508; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=w5cKf1cbYmI9HSIGpg8l7rdurK8fI+WJuEa0VyLSUFg=; b=e14+j4dHizPNqujCdv7Hd4MmyzdR5lfrGE6adP63CgioconyE8AHTaDJsm14Doao1I dZvK9Lwrzg1zGnJ2ySWBbQQrQlZ8SdclmfpVv5Eti7CkfD4gGLeWwdfPzo34CKwEiXWo zmHuZC7F3IP6O8c54y5UoeL6uwozjCKsgky5qsYAYJMEHS1Qkc/uPqnZFpDXPZXznirF 6tvCkloNTNzArjr+NDVhttUTND9YX05tsU7rZEyFgY7IH/je9NSVa/CrBFXo+Ldk42I6 vm9tnNfml0W+mbEErprAXxHGtilKfQX9/DykfJmdVJFmI0/sfOB2DQ/BU2UI+I6qW3QJ D4ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686537508; x=1689129508; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w5cKf1cbYmI9HSIGpg8l7rdurK8fI+WJuEa0VyLSUFg=; b=D5mhXbUJ7e4b+6lMfUyJ5pfDKiPvB83fy1tZPCT42Ilm4LjPTpunqRV9QICDtU4Bi7 4ZEuFVcac1o1Zn9u4FHtnYkEyZnAoNCctpIu1PnMCgF8nZYTmOANjxSaQ+X/vzjCf2Gr yDQlSCGFtAUCrSdvYXDVSHQW1yIt9JFb0bVbRAK7Oxv/uK8lqPKj7h+W8sP8WUgT5HIM K9zu0/o/H+hbatWYQ9gCrKGql/+B3fZYy6pZgXfKROsbAke1Usf2qSMK2jAOg140zWvm pRd7aPk+LvEul1wWQoQGHNOJ0dSjPVTeQiZQvYMu5br3rXLI4eGcxTM7vSRYpzx7S+My Qp2A== X-Gm-Message-State: AC+VfDxaP8UoR1NSz5/ye5jk6X9T1x+BU3qas7+QyjnBpJAmfkcXx/fl c98/foyti0XJI9jjgGEBvJdQug== X-Google-Smtp-Source: ACHHUZ6pxqvEGvXS0TWkzIYNnZPEzGh5Jpe9KTZO8oT6tFDjdzfl/bRfjrNjnUmZuHOUOCzXlaJN6A== X-Received: by 2002:a17:90a:8d14:b0:255:96e4:2edd with SMTP id c20-20020a17090a8d1400b0025596e42eddmr7862978pjo.9.1686537508045; Sun, 11 Jun 2023 19:38:28 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id r7-20020a17090a2e8700b0025912f0ad6fsm6303567pjd.24.2023.06.11.19.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 19:38:27 -0700 (PDT) Date: Sun, 11 Jun 2023 19:38:25 -0700 From: Stephen Hemminger To: Ferruh Yigit Cc: Bruce Richardson , Amr Mokhtar , David Hunt , Remy Horton , Ori Kam , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Konstantin Ananyev , Declan Doherty , Reshma Pattan , John McNamara , Harry van Haaren , Xiaoyun Li , Cristian Dumitrescu , Maxime Coquelin , Tiwei Bie , Zhihong Wang , dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 2/2] examples: sleep while waiting worker threads to terminate Message-ID: <20230611193825.130693b7@hermes.local> In-Reply-To: <20181015222110.61564-2-ferruh.yigit@intel.com> References: <20181011195753.4778-1-ferruh.yigit@intel.com> <20181015222110.61564-1-ferruh.yigit@intel.com> <20181015222110.61564-2-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Mon, 15 Oct 2018 23:21:10 +0100 Ferruh Yigit wrote: > This is to prevent sample applications to do busy wait while waiting for > worker threads to terminate. Should save cycles on master core. > By default a 1ms wait interval used. > > Signed-off-by: Ferruh Yigit This is not a bad idea, and it might make shutdown faster in some cases. But it looks like it never made it farther along in 5 years. Will mark it as rejected, but it would be good to have better lcore/thread shutdown; if someone wants to work more on it, would be a good project.