On Wed, Sep 04, 2013 at 10:52:53PM +0200, Rolf Fokkens wrote: > I'm not sure if I understand. > > On 09/04/2013 10:26 PM, Darrick J. Wong wrote: > >Yeah... I calculate total cache size, then cache-used = cache-size * whatever > >percentage bcache reports. It won't add up exactly due to rounding errors. > >0.999 -> 1.00. That's rather a lot, really. > Is the following (snippet of the output I sent) the result of > rounding errors? > > Total Cache Size 1.00GiB > Total Cache Used 204.00MiB (10%) > Total Cache Unused 1.00GiB (90%) > > I mean: the percentages are 10% and 90%.. Oops, this was a Py3 v. Py2 issue -- Python3 saw the '%.2f' in the function that pretty-printed cache sizes and would fp-divide the two integers, whereas Pyhon2 saw that we were trying to divide two integers and used integer division. Fixed in the Gist. Kent: Any chance you'd like to pick up bcache-status into bcache-tools.git? (Or really, anyone who has commit access to that repo.) --D > > >>- "Dirty Data" is -6 MB? > >I think this was fixed in 3.11. > OK, so that is a kernel issue. -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html