Tested the above patch successfully on PowerPC and x86 architecture with different memory
configuration. The new script is able to return/print recommended memory values based on
the system memory.
Although the script works fine in most of the cases but I have found two cases where I am
not sure whether the script behaviour is intentional or random.
1) for non-root user the System RAM in /proc/iomem is 00000000-00000000 so the script
always returns the very first entry in ck_cmdline.
2) There is no defined path for unsupported architectures. Can we avoid calling
get_recommend_size function if system architecture is not supported.
Thanks,
Sourabh Jain