DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Sangjin Han <sangjin@eecs.berkeley.edu>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] "No probed ethernet devices" caused by inaccurate msec_delay()
Date: Mon, 27 Jan 2014 10:19:00 +0100	[thread overview]
Message-ID: <201401271019.00293.thomas.monjalon@6wind.com> (raw)
In-Reply-To: <CAPG33HRE3kqHEtn55e_YUoSuwFVTcYz0ZZVjDUXr17TmXqZDQA@mail.gmail.com>

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

  reply	other threads:[~2014-01-27  9:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27  2:56 Sangjin Han
2014-01-27  9:19 ` Thomas Monjalon [this message]
2014-01-28  1:16   ` Sangjin Han
2014-01-28 16:23     ` Thomas Monjalon
2014-01-28 18:13       ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201401271019.00293.thomas.monjalon@6wind.com \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=sangjin@eecs.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).