Preloading registry to avoid cpu spikes

David Ing ding at panopto.com
Tue Jun 7 00:13:29 UTC 2022


Maybe run gst-inspect-1.0 as the last step of the image build.  It will
scan for plugins and initialize a bin file.

On Mon, Jun 6, 2022, 4:47 PM Guru Govindan via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:

> Hi There,
> I have a docker container that runs multiple pipelines sometimes upto 16
> Gstreamer pipelines concurrently.
> When the docker container starts there is a CPU spike increasing the load
> average which fails other services in that computer.
>
> On digging I see that the gst_init() and internally gst_update_registry()
> might be the reason behind it as it is updating the registries for the
> plugins.
>
> Since all the pipelines are more or less using the same plugins, I was
> wondering if I can copy the `registry.x86_64.bin` default into the docker
> container while building the image so that I can avoid this.
>
> Or is there any other way to reduce this?
> Please advise
> Thanks a lot!
> Regards,
> Guru
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220606/0b33ca15/attachment.htm>


More information about the gstreamer-devel mailing list