There's a line in configure-proxy.sh to set the maximum disk cache size to 60% disk size: SQUID_SIZE=$(( `df -P /var/spool/squid |tail -n1 | awk '{print $4 }'` / 100 * 6 )) but this should really be: SQUID_SIZE=$(( `df -P /var/spool/squid |tail -n1 | awk '{print $4 }'` / 10240 * 6 )) it may well also be wise to set a maximum value too since the squid cache is probably never going to fill over say 50GB anyway. If the user really finds they need a bigger than 50GB cache they can always edit squid.conf later.
Hmm yes and no. The formula is wrong. 100 * 6 means 6% and it should be 60 %. Correct formula should be then 100 * 60. Commited as a72034907565c306a416e318d34b47d540c67f4a How did you come to 10240?
The Squid cache size is in MB but the value you're getting from df is in kB. Using your new calculation, with the ~27GB free I have here you end up with a result of 1662594 MB which isn't right :) Using my calculation you end up with 16236 MB (15GB). The / 10240 * 6 instead of / 1024 * 0.6 is to get around the fact we can't floating point maths in bash.
Commited as 621e010d2d88558a2bcc65ee4e8a93950a302a6b.
Spacewalk 0.5 released.
Spacewalk 0.5 has been released for long time ago.