View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Thu Apr 06, 2006 10:02 pm Post subject: Icecast on Mac OS X: limit on number of streams? |
|
|
I've set up an icecast 2.3 server in Mac OS X 10.4.6 on a MacBook Pro. I've configured it to serve up to 2000 streams at once. I'm feeding MP3 streams to icecast by running one instance of IceS 0.4 for each stream, on the same machine as the icecast server. When I add streams one at a time, the CPU usage of icecast goes up more or less linearly until it's at about 16% with 248 streams. When I add the 249th stream it suddenly jumps to 96% and I'm not able to "tune in" to any of the streams anymore.
I've found that by running multiple instances of icecast on the server, each on a different port, I can manage about 600 streams at a time this way (600 instances of IceS, 200 feeding to each of 3 instances of icecast) before the CPU starts to get saturated.
Does anyone have any insight into what's happening in icecast when I add that 249th stream? I can run multiple instances as a workaround, but it would be nice to not have to do that. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Apr 06, 2006 11:47 pm Post subject: |
|
|
Each stream will be processed by a thread, and I suspect that 248 + some other threads (YP, slave etc) makes it say 255. There will be a per-process thread limit, eg PTHREAD_THREADS_MAX, do you know what it is? Our own testing did show 1400 streams was possible (x86 linux) so it's not an icecast limit.
karl. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|