News: 0001594673

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

HiSilicon Proposes "Cache Lockdown" Driver For More Control Over L3 Cache

([Hardware] 3 Hours Ago HiSilicon L3 Cache Lockdown)


A Huawei engineer sent out a proposed driver for the Linux kernel to enable "cache lockdwon" behavior for HiSilicon ARM64 processors for greater control over the processor's L3 cache usage.

The proposed cache lockdown mode would allow greater control over an area within the L3 cache. Huawei's Yushan Wang describes this proposed driver for the mainline Linux kernel as:

"Cache has been playing the transparent yet crucial role of performance for modern computers. To fully exploit the potential of SoC cache, we made an attempt to lockdown the HiSilicon L3 cache.

Cache lockdown means to make a memory region locked inside the L3 cache for better access latency. The data stored in L3 cache will behave like any other data (i.e. it still follows cache coherency protocol etc.) except it won't be evicted unless explicitly asked to by deallocation.

Ideally locked data will have stable low access latency despite high background stress. It is also useful for scenarios that have especially high cache miss penalty. However, while enhancing some processes, reserving cache resource will raise the performance problem to other processes running on the CPUs that share the L3 cache that carries locked data, users should be careful to do so.

I would like to ask for opinions about the possibility to make this driver upstream, and the possible usecase of L3 cache lock within kernel. Further tests are needed to obtain the performance benefits and impact we get from L3 cache lock on such usecases."

With this driver, a /dev/hisi_l3c char device is created where operations can be performed on it like mmap() that then explicitly reside in the L3 cache.

Interesting work and we'll see where it leads and what performance benefits are ultimately found with this cache lockdown usage.



Jargon Coiner (#5)

An irregular feature that aims to give you advance warning of new jargon
that we've just made up.

* DUKE OF URL: A person who publishes their Netscape bookmark file on
their homepage.

* WWWLIZE (pronounced wuh-wuh-wuh-lize): Habit of unconsciously appending
www. in front of URLs, even when it's not necessary.

* DUBYA-DUBYA-DUBYA: Common pronounciation of "double-u double-u double-u"
when orally specifying a wwwlized address.

* ADVOIDANCE: iding a particularly annoying advertising banner by dragging
another window over it, or by placing your hand on the monitor to cover
it up.

Example: "Bob advoided any Microsoft banners he came across."