Page MenuHomeFreeBSD

arm64: make the setting of VM_NFREEORDER and the comment describing it match
ClosedPublic

Authored by alc on Jun 28 2023, 8:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 9:18 AM
Unknown Object (File)
Sep 30 2024, 12:35 PM
Unknown Object (File)
Sep 29 2024, 11:25 AM
Unknown Object (File)
Sep 27 2024, 10:59 AM
Unknown Object (File)
Sep 19 2024, 6:33 PM
Unknown Object (File)
Jul 21 2024, 8:12 AM
Unknown Object (File)
Jul 8 2024, 10:18 PM
Unknown Object (File)
Jun 3 2024, 11:54 AM
Subscribers

Details

Summary

The setting of VM_NFREEORDER and the comment describing it were copied from sparc64 where both the page size and the number of page table entries that fit in a cache line are different from arm64.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc requested review of this revision.Jun 28 2023, 8:19 AM
This revision is now accepted and ready to land.Jun 28 2023, 1:17 PM

Does TLB miss cause cache miss?

In D40782#928081, @kib wrote:

Does TLB miss cause cache miss?

I mean, this is something specific to virtually indexed caches (sparc64) as well.

It might pay to include the assumed cache line size, e.g. most CPUs seem to use a 64 byte cache line, but on some its 128 bytes.

In D40782#928081, @kib wrote:

Does TLB miss cause cache miss?

Generally, the MMU's page walker accesses the page table through the cache hierarchy. In fact, on early amd64 machines, a large fraction of the gains from superpages for applications with poor locality of reference came from reducing the size of the page table so that more of the page table entries could be found in the L2 cache on a TLB miss.

Address Andrew's comment.

Elaborate on why cache misses occur.

This revision now requires review to proceed.Jun 29 2023, 6:59 AM
This revision is now accepted and ready to land.Jun 29 2023, 8:38 AM