From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 6F71A9A8D for ; Thu, 28 Jan 2016 07:30:01 +0100 (CET) Received: by mail-pa0-f53.google.com with SMTP id uo6so18330099pac.1 for ; Wed, 27 Jan 2016 22:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=DeKD0/lWp1G64fecINcSmavAW72qiiQzh8GHN7NN2+Q=; b=GT+2R7GOZm7qzTrWPmybSOZviDfenT/0q1PA4+N8wva7IUte6WZ+nDpQ7uc7lXCQ2S mCMsGL6DF/tQLFSxjRDYFcN4A83CsUVUD/W2XZtTUH9K+W96YAKV4OMfjO5EWyN87UZy zZd/wbmYwppIYBwI06/PvBPwJuf7QRIDawnQqjyHuHZ4fUCKcLmkFGV6crhyo0oskmL/ 0cWqAr0ETbPXIPf+5fnrs63Mruzscy6k3j2VnPodVfa72HraITeVicq0GDABN2DFwy8U Jcl1X6CLdEteIlD9Zjmpk2UFdIWy1l1hB3Dv6fQgBYJ7nB2i/sywiC1XbjyHWIMzPjK7 uj3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=DeKD0/lWp1G64fecINcSmavAW72qiiQzh8GHN7NN2+Q=; b=UcX9dOEOo50P9idUur2NDarr+sgrQESsUN9HWsZKWT6WB08ynC2ME+OIwJxdmCQAP+ EeyMlGJVXDCRNs2mZ62XtmV5lun5XSdd+joeFsLUfiQdnnEwlkVRtSW5iTJOzIVD4V0H cNaYTxxzG5bkKK4UM0PdpS+d3HIC9vrtGuXm+5/LznMZQajvNm9Lcpk94iTd8UkU3KfU NU0fd23zho+X+G/LFjPNKiIiNav/e7dl4DJUxC1FVG3zv9SdzU9IJN36jM3DPSWIFZ03 UsgXEM0BHkX1UBuyTqEfbLUt1uf3l99n9zZX7m+D54o0XP5Dw9+XICvVdqluFRWM/eA9 5WNg== X-Gm-Message-State: AG10YOSQkNcWyL4tRivZzjtLdmqnh5sODLHfUb6XwFgcFW24+PQ2IoYJ0cASu1Bvro0WkQ== X-Received: by 10.66.101.3 with SMTP id fc3mr2173451pab.2.1453962600890; Wed, 27 Jan 2016 22:30:00 -0800 (PST) Received: from [10.16.129.101] (napt.igel.co.jp. [219.106.231.132]) by smtp.googlemail.com with ESMTPSA id ya4sm13292721pab.22.2016.01.27.22.29.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jan 2016 22:29:59 -0800 (PST) To: "Xie, Huawei" , "dev@dpdk.org" , "yuanhan.liu@linux.intel.com" , "Tan, Jianfeng" References: <1453108389-21006-2-git-send-email-mukawa@igel.co.jp> <1453374478-30996-6-git-send-email-mukawa@igel.co.jp> <56A9815F.6040205@igel.co.jp> From: Tetsuya Mukawa X-Enigmail-Draft-Status: N1110 Message-ID: <56A9B564.8000404@igel.co.jp> Date: Thu, 28 Jan 2016 15:29:56 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC PATCH 5/5] virtio: Extend virtio-net PMD to support container environment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2016 06:30:02 -0000 On 2016/01/28 15:15, Xie, Huawei wrote: > On 1/28/2016 10:48 AM, Tetsuya Mukawa wrote: >> I measured it, and seems it takes 0.35 seconds in my environment. >> This will be done only once when the port is initialized. Probably it's >> not so heady. > There are 256 x 32 loop of pci scan. That is too long if we dynamically > start/tear down the container, otherwise it is ok. Some people are > struggling reducing the VM booting time from seconds to milliseconds to > compete with container technology. Let us consider if we could optimize > this. > For example, QEMU supports specifying bus/dev for a device in its > commandline, so could we assign fixed bus for virtio-net and ivshm > device? And for piix3, is it on bus 0/1? > OK, I understand the necessity. Let's consider it. So far, the users doesn't need to specify pci address on QEMU command line and DPDK vdev option. But, let's change this, then we can remove this looping. Probably specifying pci address on vdev option will not be mandatory. if not specified, just using default value is nice. I will fix like above in next release. Tetsuya