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 5AC74A0C45; Tue, 24 Aug 2021 23:31:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA96B406A3; Tue, 24 Aug 2021 23:31:03 +0200 (CEST) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 5686F40687 for ; Tue, 24 Aug 2021 23:31:02 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id j1so15153959pjv.3 for ; Tue, 24 Aug 2021 14:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RUgi07AlZi/8sARBqHzrDw12o3CpAYPhSF7rurPve+Q=; b=dy/Qzy7eGAat0kQzFuqP8OQ6yjj2S8LHbLAiR7awwW+9Q/oz+4nbzxdSZq9yAwOPXZ 6xfHYFyA/NSP5ZJukj7G+CSvsJza2t57W4Heg5oFykOiKbeqNb9MDRJ3McVifSg5EdIt bMhPihSkzi5CitDWR3LJ72BzDRDnGzVlK8L6n1fJHnCk2yiadF7FBrESKSC2aRT6oSPN P1CfgU9nDyYjsoiXok79kjNqoy/ahOYqWpjy50PbaZc8TOu2Ln3K3MzDduD0I1uCp8iN HJyOsvFy/9qHuy553IbLacnbPJhFCaEY/Xh3pixQhda1ltCk0oOll6iPsORPWJXJ2sgv hsLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RUgi07AlZi/8sARBqHzrDw12o3CpAYPhSF7rurPve+Q=; b=MNF0LFxNfEmewIxTJtd3i0bGVaPqTtBEljBbZQ/nIC14n7C0A1te+dLW3q5NvkhE4r 3wHBcQbituesSDzRlL71WKlEy6YUs4Qi/Jf28OoNFfIRGBgamSSq/2VDaEgDUs6H8hJJ sTgIgLwkSs+DoptcWJQ2/IeevZOVFFjoMRpn8BcbyJLFWwYuChxt7IgAjQDM3fI7P+xT wlV2H/KPoCOodi/MCPdbPt5Babl2otGzDJbPS14yL6J3xR5IgHU1TsxgLbtyEPGwpVCk fBQJvEvNicte3QTKwr4GvI77MxOjKtIKuVhzRpNCrbAfL1ljd7GI9814hl4TlXtF8JDF 0y7g== X-Gm-Message-State: AOAM533xHyFt7ma4+RHM+zUHY5mmTCmPoteM2udaZQUsJibXChaDldKM dNavneq2gavImeGQBpSW4kz70Q== X-Google-Smtp-Source: ABdhPJxhDZ69qZDkg676FcigAjRJX/0Ig90/HigPRELvXp1KDn/i7LiGO6j75VQiUW3CoffHqW30uw== X-Received: by 2002:a17:902:6ac6:b0:133:230b:e8bc with SMTP id i6-20020a1709026ac600b00133230be8bcmr14234748plt.22.1629840661364; Tue, 24 Aug 2021 14:31:01 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id p9sm4174742pgn.36.2021.08.24.14.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 14:31:01 -0700 (PDT) Date: Tue, 24 Aug 2021 14:30:58 -0700 From: Stephen Hemminger To: Honnappa Nagarahalli Cc: Olivier Matz , "dev@dpdk.org" , "lucp.at.work@gmail.com" , "david.marchand@redhat.com" , "thomas@monjalon.net" , Ruifeng Wang , nd Message-ID: <20210824143058.45b31118@hermes.local> In-Reply-To: References: <20210730213709.19400-1-honnappa.nagarahalli@arm.com> <20210802051652.3611-1-honnappa.nagarahalli@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC v2] eal: simplify the implementation of rte_ctrl_thread_create 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 Sender: "dev" On Tue, 24 Aug 2021 20:03:03 +0000 Honnappa Nagarahalli wrote: > > One difference between this implementation and the previous one is this busy > > loop. rte_pause() relaxes the cpu, but will not make the calling thread to sleep > > and wait for the sync event. So here we can spin a quite long time until the > > other thread is scheduled by the OS. > Yes, this is a difference. We could add a microsleep to allow for the OS to un-schedule the current thread. Why not use sched_yield() here?