I know that I am supposed to set mem=MEMORY_LIMIT
. But I do not know where to go, during runtime, or during boot time, in order to set a limit to the total physical memory that the OS has control of.
I am running I/O benchmarks, and I would like to limit the amount of overall physical memory that is available.
Linux free -m1024 MB is the total system memory available, which would be physical RAM. 1 MB and 823 MB both show free because an application has access to both for memory storage.
I found the answer I was looking for. Basically, the parameter that sets the total available physical memory is "mem=MEMORY_LIMIT". And this is a kernel boot parameter. You need to add, say "mem=1G" for maximum of 1GB available physical memory to the kernel boot parameter. For more info on how to add kernel boot parameters look at https://wiki.ubuntu.com/Kernel/KernelBootParameters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With