I wanna to test a program in a system with 512MB memory. But my system has 1GB RAM slot. I don't want use VM or docker. How can I decrease physical system memory in linux by commands such that
mem kernel parameter will allow you to limit the maximum amount of physical RAM visible to the kernel.
kernel=... mem=512M ...