Hello Gentoids,
For years I was struggling with bad ram.(usually compilation issues, and usually with only big apps like chromium, so I reduced amount of threads from 32 to 6 at compile time)
There is one specific area that was causing me trouble which I did not understand:
[ 20.573439] 5555555555555555 bad mem addr 0x0000000f6cf22598 - 0x0000000f6cf225a0 reserved
One of reasons for whatever reasons i had problems with installed version of memtest86+ for whatever reason.
Yesterday I noticed that it worked, and found a faulty area in RAM. Only one. Which makes me believe this is not gonna get worse.(used that ram for many years now)
First I tried disabling using address and mask in grub, whichI immedeatelly failed and made my grub unbootable.(changes reverted, thanks god i had some ubuntu usb flash somewhere)
I used "GRUB_BADRAM=' 0x0000000f6cf22598,0xffffffffffffffff'" in default grub config file. Grub failed to start, i just see "welcome to grub" and nothing else, no kernel choices i have had before.
So I enabled memory testing in kernel for now. memtest=4
Now the question, how can I permanently add ram area it to my current ONLY last kernel in grub?(before I add it somehow to /etc/default/grub for all kernel)?
with 64gig of ram boot times increased by quite a lot.
bonus question: how do I add this ram mask into /etc/default/grub so all kernels I compile in the future can benefit from it?

