Giter Club home page Giter Club logo

Comments (11)

bluenet13 avatar bluenet13 commented on July 26, 2024

Do you invoke anssock_close() or anssock_shutdown to close the fd?

You run so many lcore, so you shall update ans_main.c to increase the mbuf pool size.

from dpdk-ans.

bluenet13 avatar bluenet13 commented on July 26, 2024

If can't malloc mbuf from pool, will print error code 12 (NOMEM).
Please increase the mbuf pool size.
And share your detail test steps.

from dpdk-ans.

qleein avatar qleein commented on July 26, 2024

After I increase the mbuf pool size, It works fine. Thanks.
Maybe you treat the close of connection as a EPOLLIN event and would malloc a mbuf to store the data,
It confused me at first.

from dpdk-ans.

bluenet13 avatar bluenet13 commented on July 26, 2024

Yes, if remote send 'fin' to ANS, ANS will notify application via EPOLLIN event.

from dpdk-ans.

bluenet13 avatar bluenet13 commented on July 26, 2024

Could you please share the test result?

from dpdk-ans.

qleein avatar qleein commented on July 26, 2024

I want to verify whether I could use it to hold 1M connection, the result is OK.
Then I would test if it works OK when read and write on such a mount of connections, especially If it would block when do connect, read or write action.

from dpdk-ans.

bluenet13 avatar bluenet13 commented on July 26, 2024

Good.
What is your ENV? CPU? NIC?
How many lcores are reserved for ANS?
How many hugepage are reserved?

from dpdk-ans.

qleein avatar qleein commented on July 26, 2024

I use Cenos6.5, kernel 3.18
CPU:Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
NIC: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
alloc 4 cores for ANS
4096 * 2MB hugepages, if increase the mbuf pool size, more hugepages needed.
Create 1M sockets and connect to another directly (port to port without any router and switcher), cost about 8 minutes.

from dpdk-ans.

qleein avatar qleein commented on July 26, 2024

Alse there is a serious problem, the connect action would blocking, It must considered in high load environment.

from dpdk-ans.

bluenet13 avatar bluenet13 commented on July 26, 2024

Yes, anssock_connect() API is always block API, it block there to wait remote server reply.

from dpdk-ans.

bluenet13 avatar bluenet13 commented on July 26, 2024

Any result for your reading/writing case?

from dpdk-ans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.