Giter Site home page Giter Site logo

Comments (4)

igor-ivanov avatar igor-ivanov commented on August 16, 2024

@Fed3n thank you for your analysis. Could you check connect() operation duration to another server w/o closing the first one. I guess that connect() duration might be long just for the first time.

from libvma.

igor-ivanov avatar igor-ivanov commented on August 16, 2024

@Fed3n have you had a chance to verify my assumption?

from libvma.

Fed3n avatar Fed3n commented on August 16, 2024

@igor-ivanov sorry this slipped my mind.
I made a simple experiment with 3 servers, with one server running a client application that sends 4 alternating connects to the other two running an accepting application. No connection is closed. Logging is done to file so hopefully is not too influential in the measurement of internal functions.

Using VMA on all servers as described above:

===SERVER1 CONN1===
prepare_to_send: 9087475ns
attach_as_uc_receiver: 17735853ns
Total connect duration:26930693ns

===SERVER2 CONN1===
prepare_to_send: 11602ns
attach_as_uc_receiver: 1676412ns
Total connect duration:1744222ns

===SERVER1 CONN2===
prepare_to_send: 3937ns
attach_as_uc_receiver: 343114ns
Total connect duration:376918ns

===SERVER2 CONN2===
prepare_to_send: 3256ns
attach_as_uc_receiver: 209800ns
Total connect duration:240208ns

Using OS Stack on all servers:

===SERVER1 CONN1===
Total connect duration:51556ns

===SERVER2 CONN1===
Total connect duration:48811ns

===SERVER1 CONN2===
Total connect duration:49933ns

===SERVER2 CONN2===
Total connect duration:42788ns

You are absolutely right that only the very first connect takes a long time. Regardless, the attach_as_uc_receiver call seems to be bottleneck even in later calls...

from libvma.

igor-ivanov avatar igor-ivanov commented on August 16, 2024

Thank you, @Fed3n on the first connection ring related resources are initialized.

from libvma.

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.