mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.98k stars 435 forks source link

Error when running mtcp examples on my machine #239

Closed qiangsu97 closed 5 years ago

qiangsu97 commented 5 years ago

Hi, @ajamshed

I am trying to run the mtcp examples in apps/example/.

When I execute the command sudo ./epserver -p ${folder} -f ./epserver.conf -N 1, the error appears as

Loading mtcp configuration from : ./epserver.conf
Loading interface setting
EAL: Detected 8 lcore(s)
EAL: Auto-detected process type: PRIMARY
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: Error - exiting with code: 1
  Cause: No Ethernet port!

My mtcp package and installation follow mtcp.

Below are my running steps.
I. Under the mtcp/dpdk-17.08, execute ./usertools/dpdk-setup.sh. Then,
   press [13], and compilation is successful;
   press [16], the igb_uio driver is installed, here my NIC is mlx4 from Mellanox;
   press [20], input 1;
   press [22], input the PCIe address of that NIC who installed the igb_uio driver before;
   press [33].
II. Change the name of my NIC to dpdk0.
III. Execute ./setup_iface_single_process.sh 4.
IV. Create soft links and setup mtcp library according to the instructions. V. Turn to the apps/example/ library and run sudo ./epserver -p ${folder} -f ./epserver.conf -N 1.

Unfortunately, I encountered the error above. As a matter of fact, I ensure that the PCIe address is correct. This has confused me for a long time, could you please give me some advice? Thanks in advance. :)