#30: Insane RAM usage
----------------------------------------------+-----------------------------
 Reporter:  Gilou <[EMAIL PROTECTED]>  |       Owner:  admin    
     Type:  Bugs                              |      Status:  new      
 Priority:  1                                 |   Milestone:           
Component:  Liquidsoap                        |     Version:  0.3.3+svn
 Keywords:  RAM leak 64bits                   |  
----------------------------------------------+-----------------------------
 I compiled & installed from the SVN (latest as of now, fallback.skip
 inside! ;)), and the RAM used by any liquidsoap instance is just insane.

 {{{
 streams  26117  0.6  9.9 188456 100084 pts/0   Sl   21:20   0:03
 /usr/local/bin/liquidsoap ./blank_detect.liq
 streams  26409  1.5 14.1 235508 143252 pts/0   Sl   21:27   0:01
 /usr/local/bin/liquidsoap ./transcode_ogg.liq
 }}}


 That's 100 MB for the first one, 140 for the other one. Here are the two
 scripts responsible of this[[BR]]

 '''blank_detect.liq'''
 {{{
 #!/usr/local/bin/liquidsoap

 backup = single("BACKUP128.mp3", id="backup")


 feed = mksafe(input.http("http://localhost:8000/feed-studio";, buffer=1.))
 source = fallback.skip(strip_blank(feed, length=4.),
 single("BACKUP128.mp3"))

 output.icecast.mp3(host="localhost", port=8000,user="liquidsoap",
         password="xxx", mount="feed-ls",bitrate=128,
         url="http://www.frequence3.fr";, genre="Top 40 Dance Pop Rock",
         description="FREQUENCE3 - www.frequence3.fr - No ads ! It's only
 HITS live from Paris France ! - French Webradio",
         name="FREQUENCE3 - www.frequence3.fr - No ads ! It's only HITS
 live from Paris France ! - French Webradio",
         source)

 }}}
 '''
 transcode_ogg.liq'''
 {{{
 #!/usr/local/bin/liquidsoap

 feed = mksafe(input.http("http://stream.frequence3.net:8000/";))
 source = feed

 output.icecast.vorbis(host="localhost", port=8000,user="xxxx", quality=5.,
         password="xxxx", mount="frequence3.ogg",
         url="http://www.frequence3.fr";, genre="Top 40 Dance Pop Rock",
         description="FREQUENCE3 - www.frequence3.fr - No ads ! It's only
 HITS live from Paris France ! - French Webradio",
         name="FREQUENCE3 - www.frequence3.fr - No ads ! It's only HITS
 live from Paris France ! - French Webradio",
         source)

 }}}

 I would be happy to run some test to find out why it goes so bad ;)
 It's running on a 2.6.22.1 vanilla (x86_64) kernel, on an Intel Core2Duo,
 with 1 GB RAM

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/30>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !

Répondre à