Thank you so much for trying. By VMM I meant the Virtual Memory Manager, I am doing this on an actual Macbook Pro, not a VM (Virtual Machine). Then the source of the issue must be either that this mac I have, which is managed by the company I worked for, somehow due to their managing software does not implements boot-args properly, even with SIP disabled (they did receive an alert when I disabled it); or python itself is somehow responsible for being capped so early. The python script I used is quite simple, so that per se should not be the problem: just appending arrays of 200 MB of random numbers to an array.
A third option could be that I do something wrong. Just to double-check, I disable SIP from recovery mode (I read this needs to be done somewhere online, do you do it also? I was not able to change boot-args with SIP on). Then I log into normal mode, with SIP kept off, and set the boot-args with
sudo nvram boot-args="vm_compression_limit=4000000000"
Then I check that
nvram -p | grep boot-args
reflects the changes. Once the changes display correctly, the machine should behave according to these, and I run the test python script aforementioned. Do you do anything different (besides the checks of course, and the test script/language used).
I have read that to make the boot-args changes permanent, one needs to reboot the machine. However, I do not need them to be permanent for now as I am just testing, and as far as the current session is concerned, they should already be reflected by the VMM behaviour during the test, without having to reboot (by the way, in doubt, I did also try to reboot but the behaviour was the same).
Soon I will also get my hands on an older intel mac which is not managed by the company, and I will be able to check if the boot-args change the VMM behaviour correctly on that one. If that happens, then it must be some hidden block the managed device has, which the IT person I spoke to is not aware of, as they said whatever restrictions they put on the machine, it should not interfere with its proper behaviour, and I suppose reflecting tunable boot-args is proper behaviour.