Giter Site home page Giter Site logo

Comments (1)

antoniomika avatar antoniomika commented on June 1, 2024 1

sish is very much bound by CPU/network throughout moreso than anything else.

On a test VM I provisioned with 4 cores and 8gb of ram, here were the results I had. It's important to note that this wasn't exhaustive and is fairly anecdotal.

I ran sish with the configuration described in the readme. I then started a large number of ssh connections, each with a single tunnel forward. I did this by generating an ssh key for testing and then running this in a bash shell:

for i in {0..2000}; do ssh -i ./test -n -R 0:httpbin.org:80 ssi.sh & done

I ran this multiple times while watching the CPU/memory usage on the system with htop.

Doing this, I ran ~15000 connections before I started getting bored (first run of the command above was for 1000 to see if I'd crash my machine, then i ran it 7x over the next few minutes). I then spawned another shell that was randomly firing curl requests at the ports that were bound. The load avg on the system never passed 2. Memory was negligible, with max usage never peaking over 2gb.

Here's are some graphs I extracted from my monitoring instance:

Resource Usage:
image

Connections (purple is sish instance, blue is my dev machine):
image

From this, it's pretty safe to extrapolate the limits will be based on CPU and network. For this case, sish was listening on TCP ports, which could be a limitation depending on the number of ports available in your environment. If using sish for internal connections (aliases), this limit essentially disappears and instead you're left with number of concurrent ssh sessions and based on the throughput of the data you're transferring potentially being an I/O limit. Like I said, your mileage will vary.

from sish.

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.