English 中文(简体)
采用多频次的NICs inlav
原标题:Using multi-queue NICs in Linux

我已经读到很多东西,一是关于接受边测量(RSS)、接受包装指导(RPS)和类似技术,但我却对我如何实际使用我的方案中的那些技术,即不同校对/处理之间的隔.。

我确实知道PF_RING,但我相信,在林丹本身必须有某种基础支持。 毕竟,Interl(例如)在其网站上刊登了有关其RSS技术的机器,并主张对LC提供支持。 而且,皇家警察部队不属于人民论坛的范围。 另一个原因是,Im不愿意使用PF_。 令人不安的是,他们派遣了网络司机,其中一些派遣的司机似乎已经过时。

我广泛概括了这个专题,但我所发现的最佳途径是使科索沃警察部队或皇家警察部队能够提供支持,而不是我如何从方案上加以利用。

问题回答

Kernel 3.19 注 有了这一过程,便可以发现邮联最初交付了包装。

替代RPS/RFS的办法是使用硬件支持多端。

Then split a set of million of sockets into worker threads, each one using epoll() to manage events on its own socket pool.

Ideally, we want one thread per RX/TX queue/cpu, but we have no way to know after accept() or connect() on which queue/cpu a socket is managed.

We normally use one cpu per RX queue (IRQ smp_affinity being properly set), so remembering on socket structure which cpu delivered last packet is enough to solve the problem.

After accept(), connect(), or even file descriptor passing around processes, applications can use :

in;

获取(fd, SOL_SOCKET,SO_INCOMING_CPU, &cpu, &len);

And use this information to put the socket into the right silo for optimal performance, as all networking stack should run on the appropriate cpu, without need to send IPI (RPS/RFS).

[https://TOPwork.ozlabs.org/TOP/408257/]***





相关问题
C# Networking API s [closed]

Lately I ve been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has ...

Listen to a port that is in use [duplicate]

Possible Duplicate: Get connecting IP from specified ports that using by other program. If a port is used by a program, is there any way I can listen that port and get the connected IP on that ...

Twisted Spread suitable for multiplayer racing sim?

Do you think that Twisted Spread may be suitable (in terms of performance) for a multiplayer racing simulator? The rest of the application is based on Python-Ogre. Can Perspective Broker run upon (...

Optimizing a LAN server for a game

I m the network programmer on a school game project. We want to have up to 16 players at once on a LAN. I am using the Server-Client model and am creating a new thread per client that joins. ...

multicast ip address - blocked in call to recvfrom

i am writing a simple multicast application. i intend to run it on localhost. i have done the following: char *maddr; . . . sendfd = socket(...); struct sockaddr_in sasend; sasend.sin_family = ...

Java HTTPAUTH

我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。

热门标签