Re: Any clue why "df -m" vs. "du -xsAm" get such different results for the tmpfs in question (403 MiBytes vs. 101 MiBytes)?

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 09 Jun 2022 19:31:17 UTC
On 2022-Jun-9, at 03:45, Eugene Grosbein <eugen@grosbein.net> wrote:

> 09.06.2022 2:54, Mark Millard wrote:
> 
>> Why 403 vs. 101 ?
> 
> lsof +aL1 $mountpoint
> 

Thanks for the explicit alternative to explore.

It turns out that the result is a list of all FIFO types:

# lsof +aL1 /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p/ | more
lsof: WARNING: access /usr/home/root/.lsof_CA72_UFS: No such file or directory
lsof: WARNING: created device cache file: /usr/home/root/.lsof_CA72_UFS
COMMAND     PID USER   FD   TYPE                DEVICE SIZE/OFF NLINK   NODE NAME
sh          187 root    6u  FIFO 4294967295,2264989460        0     0 609904 /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p (tmpfs)
sh         2447 root    6u  FIFO 4294967295,2264989460        0     0 609904 /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p (tmpfs)
. . .
sh        96552 root    6u  FIFO 4294967295,2264989460        0     0 609904 /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p (tmpfs)
sh        98284 root    6u  FIFO 4294967295,2264989460        0     0 609904 /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p (tmpfs)

But there is still the likes of 402 (df) vs 101 (du):

# df -m /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p
Filesystem 1M-blocks Used Avail Capacity  Mounted on
tmpfs           1024  402   621    39%    /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p

# du -xsAm /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p/
101	/usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p/


So I'm still looking to figure out what leads to
the about factor of 4 between the df and du results.

===
Mark Millard
marklmi at yahoo.com