From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id E61E458D2 for ; Mon, 27 Jan 2014 10:17:47 +0100 (CET) Received: by mail-wg0-f42.google.com with SMTP id l18so3919818wgh.1 for ; Mon, 27 Jan 2014 01:19:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=9YYAXrOW9GhCCpFVXJW5u0ECD7tIWaFIG+BuIEbcOIA=; b=lUuS6c+qJAAHL6V5fP6pCrAQKSf1c4yZLoZJiXTLi6KhdgOLYwxWG86N/YkEoCl0w3 u/s2NY5Gfs9M+ZNxbozl1X3q8gliyrhUpplIVKlVvlIt5ewK1Cjnq1Z0CiSgpq7WFHJe W1BbXoF91s0fGtH4bMoWZaYjAQHO4KjtfjhJeWrORusM4ffueFzm02F5RNzEd9fKMkhO XMGmM6qhYPsv9TKZ3tm7p1ySTKcZ1QLDeNFjHQHUi305F3YswXFe75++3ya2USj6eXW5 8O20CDP2RyBxtVRShp+6gPISsLVCleClsovIbA4Sgzn5jxREIItVUqq5WXXfGlEL3bf5 LVig== X-Gm-Message-State: ALoCoQmBrpumfCIuIvLZF8vdBocFZSvsr1qyUgg4Eo+yLlL+yPJvIrylP8TRMMNNshlB4Oh42V8p X-Received: by 10.194.219.132 with SMTP id po4mr19399111wjc.7.1390814345548; Mon, 27 Jan 2014 01:19:05 -0800 (PST) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id j9sm23656148wjz.13.2014.01.27.01.19.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2014 01:19:01 -0800 (PST) From: Thomas Monjalon Organization: 6WIND To: Sangjin Han Date: Mon, 27 Jan 2014 10:19:00 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201401271019.00293.thomas.monjalon@6wind.com> Cc: dev@dpdk.org Subject: Re: [dpdk-dev] "No probed ethernet devices" caused by inaccurate msec_delay() 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: Mon, 27 Jan 2014 09:17:48 -0000 Hello, 27/01/2014 03:56, Sangjin Han: > Cause: No probed ethernet devices - check that > CONFIG_RTE_LIBRTE_IGB_PMD=y and that CONFIG_RTE_LIBRTE_EM_PMD=y and > that CONFIG_RTE_LIBRTE_IXGBE_PMD=y in your configuration file [...] > I googled for possible causes and came across a similar case: > http://openetworking.blogspot.com/2014/01/debugging-no-probed-ethernet-devi > ces.html [...] > msec_delay(4); [...] > I think /proc/cpuinfo is not a reliable way to get > eal_tsc_resolution_hz, since it varies based on the current CPU clock > frequency. Enforcing applications to run at the max frequency can be > too restrictive. Indeed, as described in the quick start page, the highest frequency must be set: http://dpdk.org/doc/quick-start > It would be nice if I can bypass set_tsc_freq_from_cpuinfo() in > set_tsc_freq(). I think it would not solve the problem because your clock is varying and the TSC calibration must be updated accordingly with different values by core. Feel free to submit a patch if you find a smart solution. -- Thomas