This is why we often see the Raspi paired with an Arduino here on Hackaday ... While running his stepper program, [Andreas] runs a second program which allocates lots of memory.