Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2022 12:31:17 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Any clue why "df -m" vs. "du -xsAm" get such different results for the tmpfs in question (403 MiBytes vs. 101 MiBytes)?
Message-ID:  <2F1A9EE0-FB9E-4BBF-AF76-4E5AD372FCC1@yahoo.com>
In-Reply-To: <82ffa6bb-5826-62b6-2b82-a735b183272f@grosbein.net>
References:  <4997AB05-8CD4-4A2C-AAB3-34F6DB2CE325.ref@yahoo.com> <4997AB05-8CD4-4A2C-AAB3-34F6DB2CE325@yahoo.com> <82ffa6bb-5826-62b6-2b82-a735b183272f@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2022-Jun-9, at 03:45, Eugene Grosbein <eugen@grosbein.net> wrote:

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

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.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F1A9EE0-FB9E-4BBF-AF76-4E5AD372FCC1>