Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#4935 closed defect (fixed)

vp9 memory usage

Reported by: kierank Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: vp9
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

http://www.obe.tv/Downloads/fuzz/fuzz.webm

ffmpeg version N-76032-g0861862 Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 4.6 (Ubuntu/Linaro? 4.6.3-1ubuntu5)
configuration: --prefix=/usr
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 6.100 / 57. 6.100
libavformat 57. 4.100 / 57. 4.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 11.100 / 6. 11.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100

Truncating packet of size 67108882 to 179145

Last message repeated 1 times

[matroska,webm @ 0x59116c0] Read error at pos. 88 (0x58)
[matroska,webm @ 0x59116c0] Read error at pos. 116 (0x74)
[matroska,webm @ 0x59116c0] Read error at pos. 144 (0x90)
[matroska,webm @ 0x59116c0] Duplicate element
Truncating packet of size 1259061 to 179047
[matroska,webm @ 0x59116c0] Duplicate element
==15840== Warning: set address range perms: large range [0x395a5080, 0x7aec90af) (undefined)
==15840== Warning: set address range perms: large range [0x5d11080, 0x1635a0af) (undefined)
==15840== Warning: set address range perms: large range [0x1635b080, 0x269a40af) (undefined)
==15840== Warning: set address range perms: large range [0x395a5070, 0x7aec90bf) (noaccess)
==15840== Warning: set address range perms: large range [0x5d11070, 0x1635a0bf) (noaccess)
==15840== Warning: set address range perms: large range [0x1635b070, 0x269a40bf) (noaccess)
Input #0, matroska,webm, from 'fuzz.webm':

Metadata:

encoder : v▒xenc v1.2.0-3650-gee1fe2f

Duration: 00:00:09.92, start: 0.000000, bitrate: 144 kb/s

Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 512x33056, SAR 1:1 DAR 16:1033, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
Side data:

stereo3d: 2D

Output #0, null, to 'pipe:':

Metadata:

encoder : Lavf57.4.100
Stream #0:0(eng): Video: wrapped_avframe, yuv420p, 512x33056 [SAR 1:1 DAR 16:1033], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:

encoder : Lavc57.6.100 wrapped_avframe

Stream mapping:

Stream #0:0 -> #0:0 (vp9 (native) -> wrapped_avframe (native))

Press [q] to stop, ? for help

Change History (9)

comment:1 Changed 2 years ago by rbultje

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 2 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords leak vp9 added
  • Version changed from unspecified to git-master

Could you add valgrind output? I was never able to reproduce and I believe it is useful to keep some information about fixed issues.

comment:3 Changed 2 years ago by kierank

Script started on Thu 15 Oct 2015 20:16:18 BST
]0;avdev@avdev: ~/ffmpegavdev@avdev:~/ffmpeg$ ms_print 
usage: ms_print [options] massif-out-file

  options for the user, with defaults in [ ], are:
    -h --help             show this message
    --version             show version
    --threshold=<m.n>     significance threshold, in percent [1]
    --x=<4..1000>         graph width, in columns [72]
    --y=<4..1000>         graph height, in rows [20]

  ms_print is Copyright (C) 2007-2007 Nicholas Nethercote.
  and licensed under the GNU General Public License, version 2.
  Bug reports, feedback, admiration, abuse, etc, to: njn@valgrind.org.
                                                
]0;avdev@avdev: ~/ffmpegavdev@avdev:~/ffmpeg$ ms_print massif.out.31170 
--------------------------------------------------------------------------------
Command:            ./ffmpeg_g -i fuzz.webm -f null -
Massif arguments:   (none)
ms_print arguments: massif.out.31170
--------------------------------------------------------------------------------


    GB
10.66^                                                                       :
     |                                                                       :
     |                                                                     ::#
     |                                                                    :: #
     |                                                                 ::::: #
     |                                                              :::@  :: #
     |                                                             @:  @  :: #
     |                                                           ::@:  @  :: #
     |                                                        :::@ @:  @  :: #
     |                                                       ::  @ @:  @  :: #
     |                                                     ::::  @ @:  @  :: #
     |                                                  :::@ ::  @ @:  @  :: #
     |                                                  :  @ ::  @ @:  @  :: #
     |                                               ::::  @ ::  @ @:  @  :: #
     |                                            :::@ ::  @ ::  @ @:  @  :: #
     |                                           ::  @ ::  @ ::  @ @:  @  :: #
     |                                         ::::  @ ::  @ ::  @ @:  @  :: #
     |                                         : ::  @ ::  @ ::  @ @:  @  :: #
     |  @::::::::::::::::::  @:::::::::::::::::: ::  @ ::  @ ::  @ @:  @  :: #
     |::@:                :::@                 : ::  @ ::  @ ::  @ @:  @  :: #
   0 +----------------------------------------------------------------------->Gi
     0                                                                   3.131

Number of snapshots: 85
 Detailed snapshots: [3, 10, 18, 24, 32, 35, 40, 48 (peak), 56, 66, 76]

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
  0              0                0                0             0            0
  1      1,268,167    1,100,267,712    1,100,265,423         2,289            0
  2    104,403,081    1,100,267,784    1,100,265,463         2,321            0
  3    130,187,413    1,375,293,992    1,375,291,534         2,458            0
100.00% (1,375,291,534B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->99.99% (1,375,137,440B) 0xF0B34E: av_malloc (mem.c:97)
| ->99.99% (1,375,129,694B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->99.99% (1,375,129,694B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| |   ->79.99% (1,100,103,727B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| |   | ->79.99% (1,100,103,727B) 0xAA9F59: ff_get_buffer (utils.c:876)
| |   |   ->79.99% (1,100,103,727B) 0x9D2B2D: ff_thread_get_buffer (pthread_frame.c:776)
| |   |     ->79.99% (1,100,103,727B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| |   |       ->79.99% (1,100,103,727B) 0xAAB6C6: avcodec_decode_video2 (utils.c:2096)
| |   |         ->79.99% (1,100,103,727B) 0x6476D0: try_decode_frame (utils.c:2730)
| |   |           ->79.99% (1,100,103,727B) 0x6504D0: avformat_find_stream_info (utils.c:3380)
| |   |             ->79.99% (1,100,103,727B) 0x479BF2: open_input_file (ffmpeg_opt.c:948)
| |   |               ->79.99% (1,100,103,727B) 0x47783A: open_files.isra.9 (ffmpeg_opt.c:2917)
| |   |                 ->79.99% (1,100,103,727B) 0x47E575: ffmpeg_parse_options (ffmpeg_opt.c:2954)
| |   |                   ->79.99% (1,100,103,727B) 0x46F88B: main (ffmpeg.c:4234)
| |   |                     
| |   ->20.00% (275,025,967B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| |     ->20.00% (275,025,967B) 0xAA9F59: ff_get_buffer (utils.c:876)
| |       ->20.00% (275,025,967B) 0x9D2B2D: ff_thread_get_buffer (pthread_frame.c:776)
| |         ->20.00% (275,025,967B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| |           ->20.00% (275,025,967B) 0xAAB6C6: avcodec_decode_video2 (utils.c:2096)
| |             ->20.00% (275,025,967B) 0x6476D0: try_decode_frame (utils.c:2730)
| |               ->20.00% (275,025,967B) 0x6504D0: avformat_find_stream_info (utils.c:3380)
| |                 ->20.00% (275,025,967B) 0x479BF2: open_input_file (ffmpeg_opt.c:948)
| |                   ->20.00% (275,025,967B) 0x47783A: open_files.isra.9 (ffmpeg_opt.c:2917)
| |                     ->20.00% (275,025,967B) 0x47E575: ffmpeg_parse_options (ffmpeg_opt.c:2954)
| |                       ->20.00% (275,025,967B) 0x46F88B: main (ffmpeg.c:4234)
| |                         
| ->00.00% (7,746B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.01% (154,094B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
  4    155,971,745    1,650,320,200    1,650,317,605         2,595            0
  5    156,300,937    1,653,775,808    1,653,772,137         3,671            0
  6    956,993,921    1,653,775,864    1,653,772,161         3,703            0
  7    958,041,401    1,101,151,064    1,101,139,697        11,367            0
  8  1,061,176,557    1,101,151,280    1,101,139,801        11,479            0
  9  1,086,960,889    1,376,177,504    1,376,165,872        11,632            0
 10  1,112,745,221    1,651,203,712    1,651,191,943        11,769            0
100.00% (1,651,191,943B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->99.98% (1,650,944,207B) 0xF0B34E: av_malloc (mem.c:97)
| ->99.94% (1,650,155,661B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->99.94% (1,650,155,661B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->66.62% (1,100,103,727B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->66.62% (1,100,103,727B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->66.62% (1,100,103,727B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->66.62% (1,100,103,727B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->66.62% (1,100,103,727B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->66.62% (1,100,103,727B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->16.66% (275,025,967B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->16.66% (275,025,967B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->16.66% (275,025,967B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->16.66% (275,025,967B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->16.66% (275,025,967B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->16.66% (275,025,967B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->16.66% (275,025,967B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->16.66% (275,025,967B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->16.66% (275,025,967B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->16.66% (275,025,967B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->16.66% (275,025,967B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->16.66% (275,025,967B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->00.05% (788,546B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.02% (247,736B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 11  1,113,082,301    1,672,631,744    1,672,617,543        14,201            0
 12  1,919,813,161    1,725,043,184    1,725,028,943        14,241            0
 13  1,919,885,613    2,825,163,816    2,825,143,801        20,015            0
 14  2,023,020,769    2,825,164,016    2,825,143,905        20,111            0
 15  2,048,805,101    3,100,190,240    3,100,169,976        20,264            0
 16  2,074,589,433    3,375,216,464    3,375,196,047        20,417            0
 17  2,074,925,768    3,449,055,936    3,449,032,895        23,041            0
 18  2,208,213,751    3,449,055,936    3,449,032,895        23,041            0
100.00% (3,449,032,895B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.95% (3,343,952,228B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.89% (3,307,193,626B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.69% (3,300,311,322B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.79% (2,200,207,454B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.79% (2,200,207,454B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.79% (2,200,207,454B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.79% (2,200,207,454B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.79% (2,200,207,454B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.79% (2,200,207,454B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (550,051,934B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (550,051,934B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (550,051,934B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (550,051,934B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (550,051,934B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (550,051,934B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (550,051,934B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (550,051,934B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (550,051,934B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (550,051,934B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (550,051,934B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (550,051,934B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (6,882,304B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (35,964,928B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (35,964,928B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (35,964,928B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (35,964,928B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.02% (793,674B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.05% (105,035,161B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (104,822,784B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (104,822,784B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (104,822,784B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (104,822,784B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (212,377B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (45,506B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 19  2,208,298,885    4,549,170,736    4,549,143,968        26,768            0
 20  2,311,434,041    4,549,170,952    4,549,144,072        26,880            0
 21  2,337,218,373    4,824,197,176    4,824,170,143        27,033            0
 22  2,363,002,705    5,099,223,416    5,099,196,214        27,202            0
 23  2,363,339,040    5,173,062,936    5,173,033,062        29,874            0
 24  2,496,629,340    5,173,062,936    5,173,033,062        29,874            0
100.00% (5,173,033,062B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.95% (5,015,536,633B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.90% (4,960,790,439B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.70% (4,950,466,983B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (3,300,311,181B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (3,300,311,181B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (3,300,311,181B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (3,300,311,181B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (3,300,311,181B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (3,300,311,181B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (825,077,901B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (825,077,901B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (825,077,901B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (825,077,901B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (825,077,901B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (825,077,901B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (825,077,901B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (825,077,901B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (825,077,901B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (825,077,901B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (825,077,901B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (825,077,901B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (10,323,456B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (53,947,392B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (53,947,392B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (53,947,392B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (53,947,392B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.02% (798,802B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (157,450,633B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (157,234,176B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (157,234,176B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (157,234,176B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (157,234,176B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (216,457B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (45,796B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 25  2,496,723,629    6,273,179,600    6,273,145,618        33,982            0
 26  2,599,858,785    6,273,179,816    6,273,145,722        34,094            0
 27  2,599,859,243    6,548,205,968    6,548,171,753        34,215            0
 28  2,625,643,117    6,548,206,040    6,548,171,793        34,247            0
 29  2,625,643,575    6,823,232,192    6,823,197,824        34,368            0
 30  2,651,427,449    6,823,232,280    6,823,197,864        34,416            0
 31  2,651,763,784    6,897,071,784    6,897,034,712        37,072            0
 32  2,785,360,785    6,897,071,784    6,897,034,712        37,072            0
100.00% (6,897,034,712B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.96% (6,687,121,038B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.90% (6,614,387,252B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.70% (6,600,622,644B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (4,400,414,908B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (4,400,414,908B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (4,400,414,908B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (4,400,414,908B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (4,400,414,908B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (4,400,414,908B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,100,103,868B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (1,100,103,868B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (1,100,103,868B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (1,100,103,868B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (1,100,103,868B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (1,100,103,868B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,100,103,868B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (1,100,103,868B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (1,100,103,868B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (1,100,103,868B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (1,100,103,868B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (1,100,103,868B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (13,764,608B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (71,929,856B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (71,929,856B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (71,929,856B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (71,929,856B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (803,930B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (209,866,926B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (209,645,568B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (209,645,568B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (209,645,568B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (209,645,568B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (221,358B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (46,748B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 33  2,785,431,802    7,997,188,880    7,997,148,355        40,525            0
 34  2,888,566,958    7,997,189,112    7,997,148,459        40,653            0
 35  2,888,567,416    8,272,215,248    8,272,174,490        40,758            0
100.00% (8,272,174,490B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->97.46% (8,062,255,860B) 0xF0B34E: av_malloc (mem.c:97)
| ->96.58% (7,989,516,946B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->96.42% (7,975,752,338B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->66.49% (5,500,518,635B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->66.49% (5,500,518,635B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->66.49% (5,500,518,635B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->66.49% (5,500,518,635B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->66.49% (5,500,518,635B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->66.49% (5,500,518,635B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->16.62% (1,375,129,835B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->16.62% (1,375,129,835B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->16.62% (1,375,129,835B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->16.62% (1,375,129,835B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->16.62% (1,375,129,835B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->16.62% (1,375,129,835B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->13.30% (1,100,103,868B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->13.30% (1,100,103,868B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->13.30% (1,100,103,868B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->13.30% (1,100,103,868B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->13.30% (1,100,103,868B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->13.30% (1,100,103,868B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.17% (13,764,608B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->00.88% (72,738,914B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->02.54% (209,870,518B) 0xF0B698: av_mallocz (mem.c:97)
| ->02.53% (209,645,568B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->02.53% (209,645,568B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->02.53% (209,645,568B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->02.53% (209,645,568B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (224,950B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (48,112B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 36  2,914,351,290    8,272,215,336    8,272,174,530        40,806            0
 37  2,914,351,748    8,547,241,472    8,547,200,561        40,911            0
 38  2,940,135,622    8,547,241,544    8,547,200,601        40,943            0
 39  2,940,471,957    8,621,080,856    8,621,037,449        43,407            0
 40  3,073,391,284    8,621,080,856    8,621,037,449        43,407            0
100.00% (8,621,037,449B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.96% (8,358,705,443B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.90% (8,267,984,065B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.70% (8,250,778,305B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (5,500,518,635B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (5,500,518,635B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (5,500,518,635B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (5,500,518,635B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (5,500,518,635B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (5,500,518,635B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,375,129,835B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (1,375,129,835B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (1,375,129,835B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (1,375,129,835B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (1,375,129,835B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (1,375,129,835B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,375,129,835B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (1,375,129,835B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (1,375,129,835B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (1,375,129,835B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (1,375,129,835B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (1,375,129,835B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (17,205,760B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (89,912,320B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (89,912,320B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (89,912,320B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (89,912,320B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (809,058B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (262,283,782B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (262,056,960B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (262,056,960B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (262,056,960B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (262,056,960B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (226,822B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (48,224B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 41  3,073,453,571    9,721,198,544    9,721,150,958        47,586            0
 42  3,176,588,727    9,721,198,776    9,721,151,062        47,714            0
 43  3,176,589,185    9,996,224,912    9,996,177,093        47,819            0
 44  3,202,373,059    9,996,225,000    9,996,177,133        47,867            0
 45  3,202,373,517   10,271,251,152   10,271,203,164        47,988            0
 46  3,228,157,391   10,271,251,224   10,271,203,204        48,020            0
 47  3,228,493,726   10,345,090,904   10,345,040,052        50,852            0
 48  3,361,333,973   10,345,090,904   10,345,040,052        50,852            0
100.00% (10,345,040,052B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.96% (10,030,289,848B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.91% (9,921,580,878B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.71% (9,900,933,966B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (6,600,622,362B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (6,600,622,362B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (6,600,622,362B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (6,600,622,362B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (6,600,622,362B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (6,600,622,362B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (20,646,912B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (107,894,784B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (107,894,784B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (107,894,784B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (107,894,784B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (814,186B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (314,700,566B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (314,468,352B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (314,468,352B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (314,468,352B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (314,468,352B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (232,214B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (49,638B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 49  3,361,356,294   10,345,091,840   10,345,040,484        51,356            0
 50  3,361,356,800   10,345,092,008   10,345,040,556        51,452            0
 51  3,361,357,287   10,345,092,176   10,345,040,628        51,548            0
 52  3,361,357,763   10,345,092,288   10,345,040,676        51,612            0
 53  3,361,358,428   10,345,092,424   10,345,040,732        51,692            0
 54  3,361,358,930   10,345,092,624   10,345,040,844        51,780            0
 55  3,361,359,436   10,345,092,840   10,345,040,916        51,924            0
 56  3,361,360,101   10,345,093,008   10,345,040,972        52,036            0
100.00% (10,345,040,972B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.96% (10,030,289,848B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.91% (9,921,580,878B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.71% (9,900,933,966B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (6,600,622,362B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (6,600,622,362B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (6,600,622,362B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (6,600,622,362B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (6,600,622,362B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (6,600,622,362B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (20,646,912B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (107,894,784B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (107,894,784B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (107,894,784B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (107,894,784B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (814,186B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (314,701,446B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (314,468,352B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (314,468,352B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (314,468,352B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (314,468,352B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (233,094B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (49,678B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 57  3,361,360,603   10,345,093,224   10,345,041,084        52,140            0
 58  3,361,361,109   10,345,093,440   10,345,041,156        52,284            0
 59  3,361,361,774   10,345,093,608   10,345,041,212        52,396            0
 60  3,361,362,276   10,345,093,824   10,345,041,324        52,500            0
 61  3,361,362,782   10,345,094,040   10,345,041,396        52,644            0
 62  3,361,363,447   10,345,094,192   10,345,041,452        52,740            0
 63  3,361,363,949   10,345,094,408   10,345,041,564        52,844            0
 64  3,361,364,455   10,345,094,592   10,345,041,636        52,956            0
 65  3,361,365,120   10,345,094,744   10,345,041,692        53,052            0
 66  3,361,365,622   10,345,094,960   10,345,041,804        53,156            0
100.00% (10,345,041,804B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.96% (10,030,289,848B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.91% (9,921,580,878B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.71% (9,900,933,966B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (6,600,622,362B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (6,600,622,362B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (6,600,622,362B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (6,600,622,362B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (6,600,622,362B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (6,600,622,362B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (20,646,912B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (107,894,784B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (107,894,784B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (107,894,784B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (107,894,784B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (814,186B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (314,702,222B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (314,468,352B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (314,468,352B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (314,468,352B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (314,468,352B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (233,870B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (49,734B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 67  3,361,366,128   10,345,095,144   10,345,041,876        53,268            0
 68  3,361,366,793   10,345,095,296   10,345,041,932        53,364            0
 69  3,361,367,295   10,345,095,512   10,345,042,044        53,468            0
 70  3,361,367,801   10,345,095,696   10,345,042,116        53,580            0
 71  3,361,368,466   10,345,095,848   10,345,042,172        53,676            0
 72  3,361,368,968   10,345,096,064   10,345,042,284        53,780            0
 73  3,361,369,474   10,345,096,248   10,345,042,356        53,892            0
 74  3,361,371,196   10,345,096,448   10,345,042,428        54,020            0
 75  3,361,371,958   10,345,096,376   10,345,042,404        53,972            0
 76  3,361,393,576   10,345,101,520   10,345,047,524        53,996            0
100.00% (10,345,047,524B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.96% (10,030,294,968B) 0xF0B34E: av_malloc (mem.c:97)
| ->95.91% (9,921,580,878B) 0xEFDABA: av_buffer_allocz (buffer.c:71)
| | ->95.71% (9,900,933,966B) 0xEFE07C: av_buffer_pool_get (buffer.c:329)
| | | ->63.80% (6,600,622,362B) 0xAA9433: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->63.80% (6,600,622,362B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->63.80% (6,600,622,362B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->63.80% (6,600,622,362B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->63.80% (6,600,622,362B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->63.80% (6,600,622,362B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9463: avcodec_default_get_buffer2 (utils.c:668)
| | | | ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | | |   ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | | |   | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | | |   |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | | |   |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | | |   |       
| | | |   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | | |   
| | | ->15.95% (1,650,155,802B) 0xAA9493: avcodec_default_get_buffer2 (utils.c:668)
| | |   ->15.95% (1,650,155,802B) 0xAA9F59: ff_get_buffer (utils.c:876)
| | |     ->15.95% (1,650,155,802B) 0x9D2B15: ff_thread_get_buffer (pthread_frame.c:798)
| | |     | ->15.95% (1,650,155,802B) 0xBA48A4: vp9_decode_frame (vp9.c:175)
| | |     |   ->15.95% (1,650,155,802B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| | |     |     ->15.95% (1,650,155,802B) 0x5338E98: start_thread (pthread_create.c:308)
| | |     |       
| | |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
| | |     
| | ->00.20% (20,646,912B) in 1+ places, all below ms_print's threshold (01.00%)
| | 
| ->01.04% (107,894,784B) 0xB8B77E: update_block_buffers.isra.12 (mem.h:97)
| | ->01.04% (107,894,784B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->01.04% (107,894,784B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->01.04% (107,894,784B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.01% (819,306B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->03.04% (314,702,790B) 0xF0B698: av_mallocz (mem.c:97)
| ->03.04% (314,468,352B) 0xB8B61E: update_block_buffers.isra.12 (vp9.c:289)
| | ->03.04% (314,468,352B) 0xBA4CED: vp9_decode_frame (vp9.c:3996)
| |   ->03.04% (314,468,352B) 0x9D13E8: frame_worker_thread (pthread_frame.c:154)
| |     ->03.04% (314,468,352B) 0x5338E98: start_thread (pthread_create.c:308)
| |       
| ->00.00% (234,438B) in 1+ places, all below ms_print's threshold (01.00%)
| 
->00.00% (49,766B) in 1+ places, all below ms_print's threshold (01.00%)

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 77  3,361,394,594   10,345,101,608   10,345,047,590        54,018            0
 78  3,361,403,929   10,345,101,552   10,345,047,566        53,986            0
 79  3,361,404,424   10,345,101,328   10,345,047,470        53,858            0
 80  3,361,404,980   10,345,101,544   10,345,047,542        54,002            0
 81  3,361,405,468   10,345,101,632   10,345,047,566        54,066            0
 82  3,361,405,963   10,345,101,376   10,345,047,470        53,906            0
 83  3,361,406,494   10,345,101,560   10,345,047,542        54,018            0
 84  3,361,407,052   11,445,205,312   11,445,151,269        54,043            0
]0;avdev@avdev: ~/ffmpegavdev@avdev:~/ffmpeg$ exit

Script done on Thu 15 Oct 2015 20:16:24 BST

comment:4 Changed 2 years ago by cehoyos

Sorry, I rarely use massif but I'd like to learn: Where can I see the leak?

comment:5 Changed 2 years ago by cehoyos

Ping.
How can I reproduce the leak with old FFmpeg sources / how can I see the leak in massif output?

comment:6 follow-up: Changed 2 years ago by kierank

Massif is showing a time series output as n increases so you can see the both from the graph and from the data that the memory usage is increasing indefinitely.

You can probably reproduce this with large numbers of threads on old FFmpeg.

Last edited 2 years ago by kierank (previous) (diff)

comment:7 in reply to: ↑ 6 Changed 2 years ago by cehoyos

Replying to kierank:

Massif is showing a time series output as n increases so you can see the both from the graph and from the data that the memory usage is increasing indefinitely.

So this ticket is not about a memory leak but about memory consumption?

comment:8 Changed 2 years ago by cehoyos

  • Keywords leak removed
  • Summary changed from webm/vp9 memory leak to vp9 memory usage

comment:9 Changed 2 years ago by rbultje

@cehoyos: sorry I missed your messages. Yes, there was no leak, it was just using abnormally high amounts of memory for the given resolution. For a res of 300x30000, it should 25MB/frame, but it used 1GB per frame. There was no leak.

Note: See TracTickets for help on using tickets.