Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 906 Bytes

File metadata and controls

38 lines (28 loc) · 906 Bytes

MemGuard-Basic

A minimal version of MemGuard that provides per-core memory bandwidth throttling. It omits writeback throttling, bandwidth reclaiming, and sharing found in the full MemGuard. It also eliminates costly statistics collection to reduce overhead. Use this when you need a lightweight guard with minimal overhead.

For the full feature set, see README.md.

Capabilities

  • Per-core LLC miss-based throttling
  • Lightweight module with reduced complexity

Not Included

  • Writeback throttling
  • Bandwidth reclaiming or sharing

Install

Build the basic module:

make basic

Load it:

insmod memguard-basic.ko

Usage

Once loaded, set per-core LLC miss thresholds (values in MB/s):

Example: assign 500 MB/s for cores 0–3

echo mb 500 500 500 500 > /sys/kernel/debug/memguard/read_limit

Unload when done:

rmmod memguard-basic