Skip to content

recipes-core/systemd: reuse the prebuilt ldconfig cache on SOTA deployments - #441

Closed
Saksham Singh (saks) (saks-singh) wants to merge 1 commit into
qualcomm-linux:wrynosefrom
saks-singh:wrynose
Closed

Saksham Singh (saks) (saks-singh) wants to merge 1 commit into
qualcomm-linux:wrynosefrom
saks-singh:wrynose

Conversation

@saks-singh

Copy link
Copy Markdown

systemd: restore the prebuilt ldconfig cache atomically

Override ldconfig.service for qcom-distro SOTA images to reuse the linker cache generated during rootfs construction instead of scanning all libraries again on first boot, effectively saving 600-700ms running the service.

Copy the cache to a temporary file and atomically rename it into place so concurrently starting processes cannot observe a truncated cache. Fall back to ldconfig -X when either cache is unavailable.

@ricardosalveti

Copy link
Copy Markdown
Contributor

What is going on here? Please read https://github.com/qualcomm-linux/meta-qcom/blob/master/CONTRIBUTING.md

@saks-singh

Copy link
Copy Markdown
Author

Superseded by #479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants