set limit for swap memory in m1 code example Example 1: set limit for swap memory in m1 smartctl -a disk0 Example 2: set limit for swap memory in m1 brew install smartmontools