Hi. I'm not sure what you mean by not working; variants of your params
work fine for me. You might not have the effect you're looking for
without using a machine that actually has persistent memory (e.g.
optane), but the kernel will still protect the regions you specify.
Make sure you have grub properly configured and that your settings
persist after reboot. I did it this way:
* Edit the final `GRUB_CMDLINE_LINUX_DEFAULT` var in
`/etc/default/grub` to include `memmap=4G!8G memmap=2G!16G`
* `sudo update-grub`
* reboot
Then you can observe the protected regions in a variety of ways:
`cat /proc/iomem` (snip):
200000000-2ffffffff : Persistent Memory (legacy)
200000000-2ffffffff : namespace0.0
400000000-47fffffff : Persistent Memory (legacy)
400000000-47fffffff : namespace1.0
`sudo fdisk -l /dev/pmem0`:
Disk /dev/pmem0: 4 GiB, 4294967296 bytes, 8388608 sectors
David