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, May 17, 8:04 AM
Unknown Object (File)
Thu, May 2, 9:05 PM
Unknown Object (File)
Thu, May 2, 9:05 PM
Unknown Object (File)
Thu, May 2, 5:28 PM
Unknown Object (File)
Thu, May 2, 5:28 PM
Unknown Object (File)
Thu, May 2, 5:05 PM
Unknown Object (File)
Dec 20 2023, 6:11 AM
Unknown Object (File)
Dec 12 2023, 10:15 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