<div dir="ltr"><div>Hi Guru,</div><div><br></div><div>You can add this to your Dockerfile:</div><div><br></div><div>RUN gst-inspect-1.0</div><div><br></div><div>And that will ensure that the registry cache is generated and saved to ~/.cache/gstreamer-1.0/registry.x86_64.bin where ~ is /root if the user inside docker is root.</div><div><br></div><div>You can set GST_REGISTRY_1_0 to control where that file is stored / read from.</div><div><br></div><div>Note that saving the cache means you might have a cache invalidation problem later, for instance if the list of devices attached to the machine changes, you might see outdated information.<br></div><div><br></div><div>Cheers,</div><div>Nirbheek<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 7, 2022 at 6:30 AM Guru Govindan via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi There,<div>I have a docker container that runs multiple pipelines sometimes upto 16 Gstreamer pipelines concurrently.</div><div>When the docker container starts there is a CPU spike increasing the load average which fails other services in that computer.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Or is there any other way to reduce this?</div><div>Please advise</div><div>Thanks a lot!</div><div>Regards,</div><div>Guru</div></div>
</blockquote></div>