I saw almost all the JVM memory options, usually in the binary value of 256 or round - for example. 256 m, 512 m, 1024 m, etc. I know this may be due to the fact that physical memory (RAM) is usually a binary number, for example 256 MB, 1 GB, etc.
My question is, does this really help memory management if the JVM memory is set to a multiple of 256 or any binary value? Does the JVM memory want to have a rounded decimal value, for example 1000 m, instead of 1024 m, although I have never seen a JVM using a value that is considered round in terms of a decimal number.
The OS will allocate the mentioned JVM memory when it starts, so I think this is more of a question for the JVM, can it effectively manage the size of the rounded decimal memory (for example, 1000 MB) or will there be any flaws.
EDIT: I know we CAN use decimal values ββfor JVM memory, but my question is SHOULD do we use decimal values?
EDIT2: For opinions / suggestions that the JVM is equally efficient at processing each memory size, please share any relevant links that you used to get this output. I have seen enough WAR on this topic among other developers, but I have not seen many specific arguments to answer either a decimal or a binary value.
source share