Coder Social home page Coder Social logo

Comments (4)

stv0g avatar stv0g commented on August 15, 2024

Here is an example of the socket protocol:

Output of birdc show memory

BIRD memory usage
Routing tables:    165 MB
Route attributes:  298 MB
Protocols:         495 kB
Total:             466 MB

Socket communication

Sniffed with socat

< 2020/04/26 04:10:38.820683  length=23 from=0 to=22
0001 BIRD 2.0.7 ready.
BIRD 2.0.7 ready.
> 2020/04/26 04:10:38.820889  length=12 from=0 to=11
show memory
< 2020/04/26 04:10:39.302258  length=137 from=23 to=159
1018-BIRD memory usage
 Routing tables:    165 MB
 Route attributes:  298 MB
 Protocols:         495 kB
 Total:             466 MB
0000

See also: https://github.com/alice-lg/birdwatcher/blob/master/docs/bird-client-server.txt

from birdwatcher.

annikahannig avatar annikahannig commented on August 15, 2024

Using the socket directly was our first approach back at the hackathon. :)

I'll checkout Daniels bird socket library! Thanks for the hint!

from birdwatcher.

annikahannig avatar annikahannig commented on August 15, 2024

Not sure if it will really reduce the memory footprint though...

from birdwatcher.

johannesmoos avatar johannesmoos commented on August 15, 2024

We loose:

* Restricted mode (`birdc -r`)

Yes, this is exactly the reason why we changed it to use birdc(being aware of the benefits you named).
Can we quantify the performance and memory overhead of using birdc?

Maybe we can implement a config option to have the choice of communicating directly with the socket or via birdc?

from birdwatcher.

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.