From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50]) by dpdk.org (Postfix) with ESMTP id C3D17325F for ; Fri, 2 Mar 2018 22:27:40 +0100 (CET) Received: by mail-pg0-f50.google.com with SMTP id l24so4278634pgc.5 for ; Fri, 02 Mar 2018 13:27:40 -0800 (PST) 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=sWbToHdt0KCoPEuAVeolbxldtrEqtOWQzovrY+GqpQM=; b=qjX7exg8q1t5DwbGHTNKqFzwg2DBNE3fedqOt9m2IVJIy0r+y1tSZ6h9AH/wwMlNvo QbMB/J1gOW8KvCsLakNAiKNns0D1ppccA0XpaiRcjvbotMKjVcqTg75b1KoFL4JC3kJc YU5yqwi4ccYy05ROix0MipMhIjP4T3/nzUzod/5lsuuwxCwJUAsQHVReQHKrC0qTbzJ3 ZTAt0tf7d6JWPh2WhSVO7wdDHMhCxhw3P4DFvaOG5Ct/nnpvvNr/tJufwOhxrxgJGaGm YzPNUu+SqX3GNvl95HpXLrzYxahg8XjANV1ezMdPmECMy4VEhjQl+FCCzO7/OEF32ABw SrjA== 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=sWbToHdt0KCoPEuAVeolbxldtrEqtOWQzovrY+GqpQM=; b=bABqTxtGFRmLQfnwAF3osxZfzoqaQIh5hJVj1lLk6wk3GyKccVAdoyUh9tmx5cHiES K7cypGSYWJ+ynCsDkgIZ/BhyTnqTjlL5xqdRQaGsahhs8hIEGAN17UNHpPOF9I+PfDmy b6VwafCZ9jFA4IMlNRBVRop3/irBhQXJ4H9DC7vIeQxvt2eJXSd9CRCg+/0T4w80ISle Tb6FkVKpIN7TGeWg4efmrrPbsIh2hy9Wi9V9q1sCd2sMTQIOqPpRweDf6ZAvWpu8UVz/ df9u/mJPYDW1xF5m2epxKw/VV8zbD2v9l703Wj+I96YjzQIQ9KqMWF+m+flJ7NniaT5o U/oQ== X-Gm-Message-State: APf1xPAbbAoYYvEgJj4VqLzcmqlf8rwYtv0arXSupNZ6fRIOWDkpIJDW gMDls0N4nMQwPdgXlL0n+KUTrQ== X-Google-Smtp-Source: AG47ELsfEZ4saUm02SvBrsdcOAV0aDnJZ1wo306zNpch/lOlJuBen/zKqkKduiUlfziXi3Y3z7G3Xw== X-Received: by 10.98.100.69 with SMTP id y66mr6790354pfb.111.1520026059850; Fri, 02 Mar 2018 13:27:39 -0800 (PST) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id 9sm14624240pfq.63.2018.03.02.13.27.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 13:27:38 -0800 (PST) Date: Fri, 2 Mar 2018 10:51:32 -0800 From: Stephen Hemminger To: Anatoly Burakov Cc: dev@dpdk.org, jianfeng.tan@intel.com, konstantin.ananyev@intel.com Message-ID: <20180302105127.3e6f274f@xeon-e3> In-Reply-To: <92186ea34a31743ed76dbd9267f0586da22575f3.1519742486.git.anatoly.burakov@intel.com> References: <92186ea34a31743ed76dbd9267f0586da22575f3.1519742486.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal: add asynchronous request API to DPDK IPC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 21:27:41 -0000 On Tue, 27 Feb 2018 14:59:29 +0000 Anatoly Burakov wrote: > This API is similar to the blocking API that is already present, > but reply will be received in a separate callback by the caller. > > Under the hood, we create a separate thread to deal with replies to > asynchronous requests, that will just wait to be notified by the > main thread, or woken up on a timer (it'll wake itself up every > minute regardless of whether it was called, but if there are no > requests in the queue, nothing will be done and it'll go to sleep > for another minute). > > Signed-off-by: Anatoly Burakov The problem with this callback model is it makes it possible to have a single wait for multiple events model (like epoll) which is the most scaleable way to write applications.