You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running on Centos7, which is on linux kernel 3.10 and thus shouldn't have RSEQ support, MallocExtension::PerCpuCachesActive() returns true, even though per-thread caches are being used (this can be verified by checking the sizes of the per-cpu and per-thread freelists in DumpStats). Either PerCpuCachesActive should return false here, or there should be some other way of checking whether per cpu caching or per thread caching is being used.
The text was updated successfully, but these errors were encountered:
A somewhat related followup question: If I compile on Centos 7 (which does not have RSEQ) and run on Centos 8 (which does have RSEQ), will per-cpu caching be used?
TCMalloc tries to use per-CPU caches if rseq is available.
That said, it is a little odd that PerCpuCachesActive is returning true on a platform where rseq is unavailable. I'm not sure if it'd be possible to run one of TCMalloc's tests--nearly any should do--under gdb to step through the flow when the CPU caches try to initialize.
When running on Centos7, which is on linux kernel 3.10 and thus shouldn't have RSEQ support,
MallocExtension::PerCpuCachesActive()
returns true, even though per-thread caches are being used (this can be verified by checking the sizes of the per-cpu and per-thread freelists in DumpStats). EitherPerCpuCachesActive
should return false here, or there should be some other way of checking whether per cpu caching or per thread caching is being used.The text was updated successfully, but these errors were encountered: