I checked in a fix. -- David On 14-Jul-2014 8:03 AM, Jonathan Miller wrote:
Hi,I have encountered a problem that kills my BOINC server My apache error log is filling up with the following error. PHP Warning: disk_free_space(): No such file or directory in /var/www/beta/html/inc/cache.inc on line 113 This is because the following loop never completes, and the author has deliberately set the query never to time out. Cache.inc 108 // check free disk space every once in a while 109 function cache_check_diskspace(){ 110 if (!(rand() % CACHE_SIZE_CHECK_FREQ)) { 111 set_time_limit(0); // this may take a while 112 $max_age = 86400; 113 while ((disk_free_space("../cache") < MIN_FREE_SPACE) || 114 (disk_usage("../cache") > MAX_CACHE_USAGE) 115 ) { 116 clean_cache($max_age, "../cache"); 117 $max_age/=2; 118 } 119 } 120 } The trouble is, that the test in the while loop on line 113 never returns true on my server (I am trying to find out why - the directory does exist) and I just end up with a huge number of infinite loops, putting a massive load which kills the server. It is quite ironic that the comment next to the command to turn off the PHP timeout, says "this may take a while" :-) Jonathan Miller System Administrator ClimatePrediction.Net, University of Oxford Tel: 01865 610680 _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
_______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
