[vlc-devel] [PATCH 1/2] cache_block: follow block->i_size for memory usage

Ilkka Ollakka ileoo at videolan.org
Sat Jan 30 17:28:59 CET 2016


On Sat, Jan 30, 2016 at 05:52:19PM +0200, Rémi Denis-Courmont wrote:
> Le 2016-01-30 13:54, Ilkka Ollakka a écrit :
> >Should be more accurate on actual memory usage, block->i_buffer just
> >mentions how much usefull payload there is.

> Same problem as François' patch: it divides the effective buffer size by a
> typically over 40 factor, pretty much ruining it.

Hi,

I tested doing realloc in udp input, but it didn't actually decrease
memory usage of the block as i_buffer < i_size. So this was the second
option.

High overhead about memory usage mainly seems to affect udp input, as it
seems to be only access (rtp is access_demux, and if I understood
correclty, stream_filter caching isn't attached to it).

But for UDP input, I don't really see how that buffer is used in that
scale. As seeking is disabled most of the buffer is past that is newer
used again. Feasibility is more questioned as now the memory usage of
buffer can easily go to 3 gigabytes.

-- 
Ilkka Ollakka
Save yourself from the 'Gates' of hell, use Linux."  -- like that one.
		-- The_Kind @ LinuxNet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160130/8ebbd67c/attachment.sig>


More information about the vlc-devel mailing list