Comments (3)
Thats perfectly legit if you hammer sshttp with a lot of packets like in media streaming.
The kernel scheduler would dedicate all CPU ressources to it, unless you run
some other computation-intense process on the same core. So thats OK. It should drop to
0% again if no more packets are seen (I guess the streaming works fine). If you have a lot of streams, you could also use -n switch if your pi has multiple cores.
from sshttp.
Thanks, i understand. I was suspecting what you said.
So, my raspberry 2 has 4 cores. About the "-n" switch , where do i put it ? maybe at the end of the following line on /etc/init.d/sshttp ?
DAEMON_ARGS="-S $SSH_PORT -H $HTTP_PORT -L $LISTEN_PORT -U $USER -R $CHROOT -n 4"
Reading your readme.md: "Unless -n 1 is used as switch, sshttpd binds one thread per CPU core, to better exploit the hardware if running on heavily used web servers", i understand that the program actually works with 4 cores if i don't specify the "-n" switch...
thank
from sshttp.
Correct. "-n 1" forces single core, even when multiple cores are detected. Omitting -n should start
4 sshttpd's on your pi, and only one sshttpd should run 100% if there is only a single
streaming connection. More connections should be distributed by kernel to the remaining
sshttpd's. If you dont see 4 sshttpd's, something got wrong with the core detection and you
could use "-n 4".
from sshttp.
Related Issues (17)
- sshttp can't open connection to the real server HOT 3
- Trying to compile sshttp in ubuntu 16.04, fatal errors
- sshttp with pppoe HOT 20
- Domain Fronting? HOT 1
- sshttpd[2818]: sshttp::loop::NS_Socket::dstaddr::getsockopt:Protocol not available HOT 8
- iptables: No chain/target/match by that name HOT 5
- Connection reset while detecting protocol.
- bind_local::bind ... address already in use HOT 3
- getsockopt: No such file or directory HOT 5
- Add a license HOT 2
- sshttp uses a lot of resources HOT 2
- Problems running sshttp HOT 4
- add option to write pid to file HOT 1
- mid-function includes break compile on Ubuntu 16.04 HOT 3
- Bug in error output HOT 1
- Does not work at all under unpriveleged LXC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshttp.