Re: Cheap way to track disk usage?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/03/15 22:55, Darac Marjal wrote:
> On Tue, Mar 03, 2015 at 10:09:41AM +0200, Johann Spies wrote:
>>
>>
>> I can run du, but that takes ages, and has a performance impact.
>> df only gives the total for the filesystem, of course.
>>
>> Try ncdu. It also takes some time to finish calculating, but the
>> output is easier to handle and you can drill down to lower
>> directories without losing the other data.
>
> Also, if it's useful to you, you can separate out the gathering
> and displaying tasks with ncdu. So you could, for example, run
> "ionice -c3 ncdu -o ~/ncdu-output" late at night (or when the
> system is relatively quiet) and then, in the morning run "ncdu -f
> ~/ncdu-output" to examine the file that was produced by the
> overnight run.
>
I didn't spot that option ... because it isn't in the manpage, and is
unknown to the binary :-) Is it in a newer version ... ah, I see it's
in 1.9; wheezy has 1.8.
If that works, it could indeed be a very useful tool, thanks.
Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAEBAgAGBQJU9YpRAAoJELSi8I/scBaNOycIAKCQ0fBFxN4PPD8fwgZoutCW
MyKoNvVor0RQvg6hCAVIrkkX3yvGrZ0HHfm2lvmgZYiWcPmLM9DxOY/a7nE6Gvtw
vTuv4zKUO1nnH3FSvxqEj5bzH35mI5IAYWpfaT0QEQ/wkAvgWigv+BsXf6zd3nyT
fmYxrwW+244gBLQw2xdyAcQDDDtOo8gNRMxlwcODycZIZJCtUEHD9wuTNr1G2wAJ
JNmAfnPn1V8bc8GU24fUEZqNgfDxwwfYkG/MS0P1FKSOSpjLNsHPrMk2AhvYfEAS
VBmsKxCNzG10agRJtu41P9pWSPIOvPr/9bge3/mOY+HCJ+sa1MjYvXVdaLJ+mZg=
=lE0s
-----END PGP SIGNATURE-----
Reply to: