Increase queued table input data size
Added by Chris Walker about 4 years ago
Hi,
I've had a bit of a Google but I can't find what I'm looking for.
The following appears in my log when I use a transcoding stream. mpegts: too much queued table input data (over 2MB)
I assumed it was running out of resources, so I've bumped the vm up and given it 28cores and 16GB of ram.
According to nmon, about 10% of my cpu is in use when a HD stream is playing on tvheadend. Most of my memory is going towards filesystem cache.
The only hint of an issue is increased IO wait by the cpu.
The host itself also has plenty of spare resources, with the tvheadend being the most resource heavy vm.
Is there anything else I could check for?
Is it possible to increase the size of the queued table to more than 2MB?
Replies (6)
RE: Increase queued table input data size - Added by Chris Walker about 4 years ago
A bit more information. I've seen a lot of people post that this happens to them while the epg grabber is running.
It doesn't look ike that's the case for me. For me, it happens when two things are true. When I'm watching or recording HD channels and using a transcoding streamm.
If I use the pass stream, the problem goes away. If I watch a SD channel, the problems goes away.
That makes me think it's running out of resources, but the vm (and host) appear to have plenty of resources availanle.
RE: Increase queued table input data size - Added by Flole Systems about 4 years ago
The machine can't keep up with transcoding, it's as simple as that. There's no point in increasing the buffer as it would just cause even more backlog and the stream would still be unwatchable.
RE: Increase queued table input data size - Added by Chris Walker about 4 years ago
Thanks for the reply. I agree with you that it must be running out of a resource, but I can't work out which one. There's plenty of CPU, memory and IOPS available.
Is the transcoding multi threaded? If it's only using a core per stream that might explain it.
The transcoding container I'm using is MPEG-TS/av-lib and the codec is webtv-h264.
The reason I was looking at increasing the buffer is, almost all my stuff is recorded and watched later, if it takes a little longer to transcode it, it shouldn't bother me too much.
The vm has 28 cores or CPU, it can't possibly be using all of them.
RE: Increase queued table input data size - Added by Flole Systems about 4 years ago
It's running out of CPU.
Just use a Postprocessing command, then it's recorded normally and transcoded afterwards. Or use hardware acceleration, that'll also help.
RE: Increase queued table input data size - Added by Chris Walker about 4 years ago
Ok thanks for the tip. I'll give post processing a go.
Just out of curiosity though, is it actually possible to increase the buffer?
RE: Increase queued table input data size - Added by Flole Systems about 4 years ago
Of course that's possible, but you need to figure out where the size is set and if there are other important changes you need to make.