Comments (4)
Yeah, that fixed the RAM overflow issue
Thanks a lot
from pipeless.
Hi @udhay24 ,
Does it work if you increase the default limit?
You can do something like:
ulimit -n 2048
By default, it is in most cases 1024
from pipeless.
Hi @miguelaeh ,
i tried increasing the ulimit and it fixed the issue.
Currently I am using a 15Gb ram and 4 VCPU spec, as i approach the 30+ streams. the RAM reaches the limit and it crashes the application. Do you have a suggested configuration or options i can use to make it efficient
Thanks
from pipeless.
Hi @udhay24 ,
I am glad it fixed it!
What you experience with the RAM is probably because some internal queues may be growing for all those streams, filling the memory with raw frames data. To avoid that you can set --stream-buffer-size <number>
when starting pipeless. The number represents the maximum number of frames that can be maintained in memory per stream (note it is the number of frames, if your input frames have a big size you will need to set lower values). For example, if you set it 10
that means that, at maximum, each stream will have a queue of 10 frames to be processed (no matter the size of the frames). The frames that do not fit into that window will be discarded, so your streams will maintain real-time processing without filling the memory.
Finding the best value for your case requires you to play around with it a bit and test a few numbers.
There is an example of how to use the flag here: https://www.pipeless.ai/docs/docs/v1/examples/onnx-yolo-world#start-pipeless
Hope this helps!
from pipeless.
Related Issues (20)
- [BUG]: Loop restarting stream when using multiple streams and stage includes a '-'.
- [FEATURE_REQUEST]: Select video source for v4l2
- [FEATURE_REQUEST]: Support stream alias HOT 1
- [BUG](COMPONENT): Docker init throws PermissionDenied HOT 4
- Using `https` input URIs produce `segmentation fault` in Debian 11
- Support configurable socket buffers
- [FEATURE REQUEST]: Support dynamic stage load
- [BUG]: Crash when closing screen output HOT 1
- [FEATURE_REQUEST]: Support for Rust hooks
- [FEATURE_REQUEST]: Distributed processing
- [BUG]: Dispatcher not removing managers
- [FEATURE_REQUEST]: KV store to share data between frames
- [FEATURE_REQUEST]: Support for code imports from non hook files HOT 1
- BUG: Incorrect Hyperlink in Multipose Detection with TensorFlow Example HOT 2
- (EXAMPLES): I'm unable to run examples (watermark and cats). HOT 8
- [FEATURE_REQUEST]: break stages process code to threads HOT 12
- [BUG](path-executor): Frame path executor creating a bottleneck
- [BUG]: Improve movement of frame data to/from Python
- [Getting Start] ERROR - OUTPUT - Unable to set the pipeline to the playing state. HOT 5
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 pipeless.