[PATCH] rtld: cache cpuid results on the stack for intel

Florian Weimer fweimer@redhat.com
Mon Feb 2 09:26:37 GMT 2026


* Fabian Rast:

> Does anyone have experience with slow cpuid that could explain whats going =
> on?

In the slow case, are you running on bare metal, or is it virtualized?

> The man page for getauxval defines several tags regarding the same
> information that is queried in dl_init_cacheinfo, but the loader does
> not try to read them and my kernel does not set them. If almost every
> program wants this information, why is getting it through the aux
> vector not the preferred approach?

The tags are not used on x86-64, see “LD_SHOW_AUXV=1 /bin/true”.  The
values the kernel computes would likely be different.

Thanks,
Florian



More information about the Libc-alpha mailing list