Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 1996 03:16:27 -0700
From:      "Dima Ruban" <dima@sivka.rdy.com>
To:        Philippe Regnauld <regnauld@tetard.hsc.fr>, mpp@freefall.freebsd.org (Mike Pritchard)
Cc:        hackers@FreeBSD.ORG (hackers)
Subject:   Re: df && du
Message-ID:  <960531031628.ZM5998@sivka.rdy.com>
In-Reply-To: Philippe Regnauld <regnauld@tetard.hsc.fr> "Re: df && du" (May 31, 11:33am)
References:  <199605310933.LAA01665@tetard.hsc.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 31, 11:33am, Philippe Regnauld wrote:
> Subject: Re: df && du
> Mike Pritchard =E9crit / writes:
> > > /dev/wd0s1e     30206    24720     3068    89%    /var
> > >
> > > altair# cd /var
> > > altair# du -s .
> > > 12776   .
> > > altair#
> > >
> > > 12776 (du result) not even close to 24720 (df output)
> >
> > 12776 * 2 =3D 25552, which is pretty close.  Did you run df with the
> > BLOCKSIZE environment variable set to "K", and du from
> > one without it being set?
> >
> > Try "du -sk" and see if you get something that is close to df's outpu=
t.
>
> 	Anyway, I think du is broken in most of its implementation;
> 	it seems to have serious problems with links and such.

I didn't mean, that `du' is broken ... Looks like something
(wu-ftpd or apache) keeps open files or something ...

It looks like it, becaus problem fixes itself after rebooting.

>
> 	A friend of mine's written a realdu utility some time ago,
> 	on SunOS 4.1.2 -- it also works on 2.1.0.  I think it also
> 	supports the standard options (for scripts who rely on it).
>
> 	But it's a bit slower in 'real' mode.
>
> 	Anyone interested?
>
> 								-- Phil
>
>
> --
> +-------------------+---------------------------------------+----------=
-------+
> | Philippe Regnauld |_______Herve Schauer Consultants_______| regnauld@=
hsc.fr
|
> +-------------------+FreeBSD - Turning PCs into
Workstations+-----------------+
>
>
>
>-- End of excerpt from Philippe Regnauld



-- =

-- dima



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?960531031628.ZM5998>