Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ices2 memory usage under OpenBSD

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Fri Aug 17, 2007 2:23 pm    Post subject: ices2 memory usage under OpenBSD Reply with quote

Im using ices2 under OpenBSD 4.1 to encode sound from the sound card.
The memory used by ices2 continuousely increases by about 2MB per hour?
Why is the memory usage increasing (or at least looking like it is)?
Is this usual and should this be happening?

I had a trawl back on the Forum and saw similar thing being reported when the CPU was fully utilised. This doensnt seem to be the case here as the CPU usage is very low.

here are the grotty details
---------------------------------
computer HP ML310 G1 - P4 2Ghz - 512MB ram - 18GB HD
--------------------------------- (after running for abour 22 hours)
#top
CPU states: 1.2% user, 0.0% nice, 0.0% system, 0.2% interrupt, 98.6% idle
Memory: Real: 39M/98M act/tot Free: 401M Swap: 0K/1000M used/tot
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
4687 root 2 0 97M 26M sleep poll 19:39 0.15% ices2
----------------------------------
?xml version="1.0"?>
<ices>

<!-- run in background -->
<background>1</background>
<!-- where logs go. -->
<logpath>/root/ices</logpath>
<logfile>ices.log</logfile>
<!-- size in kilobytes -->
<logsize>2048</logsize>
<!-- 1=error, 2=warn, 3=infoa ,4=debug -->
<loglevel>2</loglevel>
<!-- logfile is ignored if this is set to 1 -->
<consolelog>0</consolelog>
<!-- optional filename to write process id to -->
<pidfile>/root/ices/pid/ices.pid</pidfile>

<stream>
<!-- metadata used for stream listing -->
<metadata>
<name>SAGRN</name>
<genre>Emergency service</genre>
<description>South Australian Goverment Radio Network</description>
<url></url>
</metadata>


<!-- Input module.
This example uses the 'sun' module. It takes input from the
audio device (e.g. line-in), and processes it for live
encoding. -->
<input>
<module>sun</module>
<param name="rate">8000</param>
<param name="channels">1</param>
<param name="device">/dev/sound</param>
<!-- Read metadata (from stdin by default, or -->
<!-- filename defined below (if the latter, only on SIGUSR1) -->
<param name="metadata">1</param>
<param name="metadatafilename">/root/ices/pid/meta.txt</param>
</input>

<instance>
<!-- Server details.
You define hostname and port for the server here, along
with the source password and mountpoint. -->

<hostname>localhost</hostname>
<port>8000</port>
<password>password_removed</password>
<mount>/GRNcbd.ogg</mount>
<yp>0</yp> <!-- allow stream to be advertised on YP, default 0 -->

<!-- Live encoding/reencoding:
channels and samplerate currently MUST match the channels
and samplerate given in the parameters to the oss input
module above or the remsaple/downmix section below. -->

<!-- Live encoding/reencoding:
channels and samplerate currently MUST match the channels
and samplerate given in the parameters to the oss input
module above or the remsaple/downmix section below. -->

<encode>
<quality>0</quality>
<samplerate>8000</samplerate>
<channels>1</channels>
</encode>

<!-- stereo->mono downmixing, enabled by setting this to 1 -->
<downmix>0</downmix>
</instance>

</stream>
</ices>

------------------------------------
# audioctl -a
name=SB Live!
version=0x0a
config=emuxki
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=256
hiwat=256
lowat=192
monitor_gain=0
mode=record
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=16
record.encoding=slinear_le
record.gain=191
record.balance=32
record.port=0x1
record.avail_ports=0x7
record.seek=0
record.samples=1359811072
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=1
record.active=1
record.buffer_size=65536
record.errors=0
------------------------------------
# mixerctl -a
outputs.master=255,255
outputs.master.mute=off
outputs.mono=255
outputs.mono.mute=on
outputs.mono.source=mixerout
outputs.headphones=255,255
outputs.headphones.mute=on
outputs.bass=255
outputs.treble=255
inputs.speaker=255
inputs.speaker.mute=off
inputs.phone=191
inputs.phone.mute=on
inputs.mic=191
inputs.mic.mute=on
inputs.mic.preamp=off
inputs.mic.source=mic0
inputs.line=191,191
inputs.line.mute=on
inputs.cd=191,191
inputs.cd.mute=on
inputs.video=191,191
inputs.video.mute=on
inputs.aux=7,7
inputs.aux.mute=off
inputs.dac=191,191
inputs.dac.mute=off
record.source=mic
record.volume=255,255
record.volume.mute=off
record.mic=0
record.mic.mute=off
outputs.loudness=off
outputs.spatial=off
outputs.spatial.center=0
outputs.spatial.depth=0
outputs.surround=255,255
outputs.surround.mute=off
outputs.center=255
outputs.center.mute=off
outputs.lfe=255
outputs.lfe.mute=off
outputs.extamp=off
------------------------------------


thanks in advance
olucas
Back to top
Anonymous
Guest





PostPosted: Sun Aug 19, 2007 4:07 am    Post subject: Reply with quote

After further investigation it seems it has something to do with the updating metadata.
If I stop the program that updates the metadata ices2 stops increasing memory usage. If I restart the metadata update ices2 keeps on increasing in size.
So the SIGUSR1 of ices2 must be causing this increase in memory usage.

ices-2.0.1
libogg-1.1.3
libshout-2.2.2
libvorbis-1.1.2

olucas
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
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