Maxmem in Windows 7 / 8 / 10
I recently had some trouble getting maxmem to work in my Windows 10. If I set maxmem in msconfig to e.g. 4000 it always resulted in 1.5 GB after reboot. I tried several things and in the end I found that this is working:
Run CMD as admin and use this command line:
bcdedit /set removememory 27000
27000 will remove 27000 MB of the available memory. Using 32 GB you will have ~5.5 GB with this maxmem setting.
Maybe you are all already aware of this but in case you had the same problem it might help you.