Hide Forgot
I spoke with Harsha and AB and it seems like there is no real reason to have this limit. Now that systems frequently have much larger amounts of memory, please remove this 6GB limit or increase it to 32GB. People can decide for themselves whether they have enough memory to create such a large cache. Thank you.
Kaushal, To solve this I am thinking of below limits. Let the option not have any hardcoded max limit on it. But when one sets a value, we can check '/proc/meminfo' (in #ifdef LINUX_HOST_OS) and get value of 'MemTotal:' and then allow upto 50% of the value as higher limit. In terms of code, changes would be: * API to get the total available ram size. * changes in io-cache: - remove the max-limit - check if the limit is more than 50% of total available size in init()/reconfigure().
I don't think we should put a 50% limit. If someone has 96GB of RAM in their system and they want to use more than 48 I see no problem with that. I have a specific user who wants to set it to 64GB in a system with 96GB, and I doubt that would cause an issue with their system, would it?
CHANGE: http://review.gluster.com/409 (Does the following:) merged in master by Vijay Bellur (vijay)