Author: juhliarik Date: Wed Nov 19 14:30:03 2008 New Revision: 53418 URL: http://svn.opensuse.org/viewcvs/yast?rev=53418&view=rev Log: changed proposal for ia64 with huge RAM Modified: trunk/kdump/src/Kdump.ycp Modified: trunk/kdump/src/Kdump.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/kdump/src/Kdump.ycp?rev=53418&r1=53417&r2=53418&view=diff ============================================================================== --- trunk/kdump/src/Kdump.ycp (original) +++ trunk/kdump/src/Kdump.ycp Wed Nov 19 14:30:03 2008 @@ -508,7 +508,7 @@ } else { range = crash_value; } - y2milestone("The 1st range from crashkernel is %1", result); + y2milestone("The 1st range from crashkernel is %1", range); integer position = search(range,":"); if (position != nil) @@ -735,6 +735,21 @@ alocated_memory = tostring(al_mem); } + // bnc #446480 - Fine-tune kdump memory proposal + if ((Arch::ia64()) && (total_memory >= 1024)) + { + integer total_memory_gigabyte = total_memory/1024; + if ((total_memory_gigabyte >= 1) && (total_memory_gigabyt <12)) + alocated_memory = "256"; + else if ((total_memory_gigabyte >= 12) && (total_memory_gigabyt <128)) + alocated_memory = "512"; + else if ((total_memory_gigabyte >= 128) && (total_memory_gigabyt <512)) + alocated_memory = "1024"; + else if ((total_memory_gigabyte >= 512) && (total_memory_gigabyt <768)) + alocated_memory = "2048"; + else if (total_memory_gigabyte >= 768) + alocated_memory = "3072"; + } } y2milestone("[kdump] allocated memory if not set in \"crashkernel\" param: %1", alocated_memory); return true; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org