I got around to trying the archinstall module to setup Archlinux on my Oryx Pro 6 and it did wonders. No need for me to go back to installation guides in the wiki and on Youtube now.
I also put my /home folder into its own partition, in case I need a nuke button without backing up my hefty /home folder.
I was even able to install the Nvidia proprietary drivers for the embedded RTX 2060 mobile. I am a happy.
It also made me appreciate how good we're having it with current disk drives because I used a 15 yo HDD to backup my 128gb nvme ssd, so I can transfer to the new disk.
Booting on this piece of shit took 5 minutes and it was running at max reading speed while idle.
Man, it took me a whole hour to mentally do basic (pointer) arithmetic...
I couldn't for the life of me figure out the free space condition. A page later there is the definition of a function that gives you the length of a str variable then it hit me:
Storage allocation uses a Stack. allocp points to the first element of allocbuf, which is last object inserted. In effect, free space is ALLOCSIZE - (allocp - allocbuff) HENCE the fit condition.
To free pointer p, the condition is to be in allocp