Giter VIP home page Giter VIP logo

Comments (7)

ouvaa avatar ouvaa commented on June 5, 2024

actually i came across this issue too...
golang/go#65064

from gnet.

panjf2000 avatar panjf2000 commented on June 5, 2024

I'm a little bit confused, you said that gnet worked great on the 192-cores machine before, but now it doesn't anymore?

from gnet.

ouvaa avatar ouvaa commented on June 5, 2024

@panjf2000 i saw the stats wrong, it wasnt fully utilizing the cores and it has the issues here:
golang/go#65064

it worked better than the rest including evio etc.

from gnet.

panjf2000 avatar panjf2000 commented on June 5, 2024

Just out of curiosity, what networking frameworks did you test exactly?

from gnet.

ouvaa avatar ouvaa commented on June 5, 2024

@panjf2000
gnet
https://github.com/IceFireDB/redhub
evio
https://github.com/tidwall/redcon

as mentioned, i'm looking at io_uring and maybe even af_xdp now because epoll cant take advantage of multi cores like 192 cores.
https://www.51cto.com/article/627651.html

it's really terrible the performance. and with more cores, the cpu will take up a 3-5% tested on aws c6a. 192 cores 384gb ram

now i'm hoping for tls and io_uring from gnet. pls look at the tls as top priority.

from gnet.

ouvaa avatar ouvaa commented on June 5, 2024

@panjf2000 my bad, i was testing redis and http at the same time.

http version is "perfect". (need tls and io_uring)

it's fastest than all others, able to take advantage of multiple cores even up to 192 cores effectively.

i updated my code. it was my customized profiler that was underperforming

from gnet.

ouvaa avatar ouvaa commented on June 5, 2024

@panjf2000 my bad again, i tested one last time and found gnet is best used in 8 core - 12 core environments. "optimum" at 8 cores, anymore than that will have diminish return.

yes it is able to use up all 192 cores but the speed actually dropped greater than lower cores, around 16 cores i think (where it is peaked)

e.g. 8 cores at 530000 req/s
16 cores at 580000 req/s
192 cores at 530000 req/s

1 core at 65000 req/s

p.s. : i wasnt looking at the max core per cpu then. i just tested 192 threads then realised it's as fast as running on 8 cores even with the 192 cores used 100%

from gnet.

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.