Quicr / old-quicrq

BSD 2-Clause "Simplified" License
4 stars 2 forks source link

Investigate relay memory buildup #105

Closed suhasHere closed 1 year ago

suhasHere commented 1 year ago

It has seen that cache memory increases over time when there is active session. Need to see if we are leaking memory

huitema commented 1 year ago

I think I understand what is happening. The code of quicrq_app.c includes:

    /* If relay or origin, delete cached entries longer than 2 minute */
    quicrq_set_cache_duration(cb_ctx.qr_ctx, 120000000);

That seems quite high. Two minutes of build up means something like 5,000 video frames, probably about 10MB. Multiply by many streams and many clients, that can mean quite a lot of memory. We want a shorter timer, but how much shorter?

suhasHere commented 1 year ago

@huitema as chatted, 10s would do for this timer.

huitema commented 1 year ago

Timer was set to 10seconds in PR #112. Issue is reported fixed after trials of new version.