Henrik Carlqvist <Henr…@deadspam.com> wrote:
> On Wed, 30 Sep 2026 21:25:51 -0400, jayjwa wrote:
>> All I can think of is that the USB stick I used for the image is
>> getting "holes" in it. One of the packages I knew to be good was not
>> installing and I had to fetch a new copy of it (same stick) and it
>> worked.
>
> If you can't trust your ways to transfer Slackware packages, all stock
> Slackware packages come with a .asc file which can be used together with
> gpg to check that the packages is OK and from the right source. Even
> easier is to use the CHECKSUMS.md5 file to check all the packages at once.
>
> Speaking of being able to trust hardware... Last weeks I have had some
> machines compressing data with xz, on one of those machines xz sometimes
> segfaults. Sometimes that machine also hangs hard, requiring a reboot. At
> reboot, the machine tells me that its ECC RAM has been able to find
> correctable memory errors in one of two DIMMS. Most likely, the machine
> has also suffered from some non correctable errors causing those
> segfaults and hangs.
>
> Bying machines and memory supporting ECC is more expensive than memory
> without ECC, but it is really nice to have those days when the memory
> starts to go bad. In this case, I can say that this 15 year old machine
> has a bad memory. There is nothing wrong with the software installation,
> no point in trying to do a reinstall of the OS. The choices are to
> identiyfy the bad DIMM and replace it or simply remove it and let the
> machine continue its life with less RAM, or to simply retire that 15 year
> old hardware.
>
> Without ECC, I might have spent days or weeks trying to reinstall
> software, and maybe taking the machine offline for some day to run
> memtest. Now, with ECC, the machine itself has pinpointed the problem.
>
> regards Henrik
There is another way to deal with bad RAM. If you run memtest86+ on the
system and find only a few bad regions, you can add some arguments to
the kernel command-line to mark those regions as reserved. I had this
problem on a thinkcentre running ubuntu, so I modified the kernel
parameters in /etc/default/grub, adding the "memmap" argument to reserve
the bad pages of RAM. The machine has been stable since I did that.
Here was the parameter I added to reserve two bad 4K pages of RAM:
memmap=4K\\\$0x1a750a000,4K\\\$0x1af50a000
The '$' means "Reserve", and the triple escaping was necessary for grub.
Maybe it isn't necessary for other boot loaders. The bad memory addresses
were rounded down to 4K (0x1000) page boundaries. If the memmap was
successful, you should see the reserved regions in /proc/iomem when you
look as root.
Cheers,
Rob Komar