# Filesystem pct/used not same as reported by df

**URL:** <https://discuss.elastic.co/t/filesystem-pct-used-not-same-as-reported-by-df/71795>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 16, 2017, 11:52pm UTC](https://discuss.elastic.co/t/filesystem-pct-used-not-same-as-reported-by-df/71795 "2017-01-16T23:52:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 18, 2017, 8:20pm UTC](https://discuss.elastic.co/t/filesystem-pct-used-not-same-as-reported-by-df/71795/8 "2017-01-18T20:20:16Z")

</div>

I think `df` is using the following calculation which is based on free space available to an unprivileged user.

% used = used / (total available to non-root = used + available)  
% used = 302919680 / ( 302919680 + 666697728) = 0.3124115527 = 31.24%

`available` definition - [https://linux.die.net/man/2/statfs](https://linux.die.net/man/2/statfs)

---

_[View the full topic](https://discuss.elastic.co/t/filesystem-pct-used-not-same-as-reported-by-df/71795)._
