[FFmpeg-trac] #8778(avformat:reopened): Ogg Vorbis HTTP Stream Excess Memory/CPU Usage

FFmpeg trac at avcodec.org
Sat Jul 11 16:19:45 EEST 2020


#8778: Ogg Vorbis HTTP Stream Excess Memory/CPU Usage
-------------------------------------+-------------------------------------
             Reporter:  Kyra         |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  ogg          |               Blocked By:
  regression                         |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Kyra):

 It's more the constant reallocation of memory which greatly increases CPU
 usage. For example on a RockPi S (with only 512MiB of RAM) it jumps to
 46MiB resident using ~10% of the CPU (RK3308 at 1.3GHz) after five
 minutes.

 {{{
 getsockopt(3, SOL_SOCKET, SO_RCVBUF, [367360], [4]) = 0
 ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=0, tv_nsec=100000000}, NULL, 0)
 = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=0, tv_nsec=99992127})
 recvfrom(3,
 "n\335;\311\345\333I\362\301\200;z\262\333+w\326\24STV\225\7]\220d-8\362\250\374\323"...,
 32768, 0, NULL, NULL) = 4194
 pselect6(1, [0], NULL, NULL, {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
 mmap(NULL, 7061504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f80d04000
 munmap(0x7f813c0000, 7057408)           = 0
 getsockopt(3, SOL_SOCKET, SO_RCVBUF, [367360], [4]) = 0
 ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=0, tv_nsec=100000000}, NULL, 0)
 = 0 (Timeout)
 ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=0, tv_nsec=100000000}, NULL, 0)
 = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=0, tv_nsec=64956041})
 recvfrom(3, "
 hS\254\351\204\371#\361\33\315\362Q\22\366s\246\216\263\332\320R\234C\352\326\7=\313\375\t\257"...,
 32768, 0, NULL, NULL) = 236
 pselect6(1, [0], NULL, NULL, {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
 ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=0, tv_nsec=100000000}, NULL, 0)
 = 0 (Timeout)
 ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=0, tv_nsec=100000000}, NULL, 0)
 = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=0, tv_nsec=57274531})
 recvfrom(3,
 "OggS\0\0\0\241N\0\0\0\0\0\356\4 at Kr\1\0\0L\304\372\200\34\3772\3776\377"...,
 32768, 0, NULL, NULL) = 2896
 mmap(NULL, 7065600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f81a78000
 munmap(0x7f80d04000, 7061504)           = 0
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8778#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list