[mythtv-commits] Ticket #5545: Mythbackend fills up memory till it crashes (~2GByte VSZ, 700MByte RSS)

MythTV mythtv at cvs.mythtv.org
Wed Jan 14 17:31:21 UTC 2009


#5545: Mythbackend fills up memory till it crashes (~2GByte VSZ, 700MByte RSS)
-----------------------------------------+----------------------------------
 Reporter:  AntiCat (mythtv at anticat.ch)  |        Owner:  janne   
     Type:  defect                       |       Status:  accepted
 Priority:  major                        |    Milestone:  0.22    
Component:  mythtv                       |      Version:  head    
 Severity:  high                         |   Resolution:          
  Mlocked:  0                            |  
-----------------------------------------+----------------------------------

Comment(by AntiCat):

 Your patch did not produce any additional output on my system. So I also
 addad an else statement to doublecheck if the debug output was working.
 Result:
 {{{
 ...
 2009-01-14 10:56:01.602 Allocating a 3844 byte PES packet successful
 2009-01-14 10:56:01.603 Allocating a 3844 byte PES packet successful
 2009-01-14 10:56:01.603 Allocating a 3844 byte PES packet successful
 2009-01-14 10:56:01.604 Allocating a 3844 byte PES packet successful
 2009-01-14 10:56:01.606 Allocating a 3844 byte PES packet successful
 ...
 }}}

 I alterd the patch a little bit to also catch the other memory
 allocations. Result:
 {{{
 2009-01-14 18:23:44.043 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:23:44.134 static unsigned char* get_188_block() ->
 Allocating a 512*188 byte blocks
 2009-01-14 18:23:56.069 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:24:08.030 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:24:20.449 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:24:34.210 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:24:46.950 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:24:58.720 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:25:12.089 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:25:25.770 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:25:37.789 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:25:49.919 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:26:03.640 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:26:16.721 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:26:28.430 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:26:41.540 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:26:55.230 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:27:07.529 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:27:19.300 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 2009-01-14 18:27:33.140 static unsigned char* get_4096_block() ->
 Allocating a 128*4096 byte blocks
 }}}

 a lot of allocations but never a free

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5545#comment:15>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list