On Wed, Feb 6, 2013 at 6:57 PM, David Anderson <[email protected]> wrote: > The BOINC code doesn't assume a block size: > > struct statfs fs_info; > statfs(path, &fs_info); > total_space = (double)fs_info.f_frsize * (double)fs_info.f_blocks; > free_space = (double)fs_info.f_frsize * (double)fs_info.f_bavail; > It could silently failing, too (f the code above is representative). >From http://linux.die.net/man/2/statfs:
int statfs(const char *path, struct statfs *buf); int fstatfs(int fd, struct statfs *buf); Return Value. On success, zero is returned. On error, -1 is returned, and errno is set appropriately. Please forgive me if I misread. Jeff > On 04-Feb-2013 2:01 PM, Eric J Korpela wrote: >> Is it possible that the boinc disk space calculation is assuming 512 byte >> blocks but that tmpfs is using some other size (4k?). >> >> On Mon, Feb 4, 2013 at 1:21 PM, Rom Walton <[email protected]> wrote: >> >>> How much space is used by the 'projects' directory? Are you attached to >>> any other project? >>> >>> ----- Rom >>> >>> -----Original Message----- >>> From: [email protected] >>> [mailto:[email protected]] On Behalf Of Ken Sharp >>> Sent: Monday, February 04, 2013 4:13 PM >>> To: [email protected] >>> Subject: [boinc_alpha] Available disc space: something doesn't add >>> up(tmpfs?) >>> >>> I am attempting to run a BOINC client with LHC@Home on a tmpfs mount in >>> order to reduce disk I/O. The server is highly reliable so this will not >>> be a problem. >>> >>> Unfortunately the numbers reported by BOINC do not seem to add up, >>> regardless of the preference settings. >>> >>> I have tried with 7.0.44 (and 7.0.26) under Ubuntu 12.04. I have a >>> feeling that this may be related to the tmpfs mount, but if it is me >>> being thick then so be it. >>> >>> 04-Feb-2013 19:58:19 [---] max disk usage: 0.24GB >>> >>> 04-Feb-2013 19:59:21 [LHC@home 1.0] SixTrack needs 152.68MB more disk >>> space. You currently have 38.06 MB available and it needs 190.73 MB. >>> >>> tmpfs 256M 14M 243M 6% /tmp >>> >>> <disk_max_used_gb>10.000000</disk_max_used_gb> >>> <disk_max_used_pct>100.000000</disk_max_used_pct> >>> <disk_min_free_gb>0.000000</disk_min_free_gb> >>> >>> I have tried similar with larger, dedicated tmpfs mounts but the problem >>> is the same. >>> >>> I cannot see an obvious problem with my preferences nor my free disk >>> space. Is BOINC incompatible with tmpfs? _______________________________________________ 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.
