[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cheap way to track disk usage?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/03/15 23:17, Richard Hector wrote:
> 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.

Oh, whoops. I forgot - this machine is running lenny. Lenny doesn't
have libtinfo5 (which appears to replace ncurses), so I'll need to
muck around quite a bit to get ncdu to build :-(

Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJU9Y9UAAoJELSi8I/scBaNe0oH/jE6l1ZAIjbOOuQYWm7Rw2tP
SoVlgTD+65aqrigD8oSt+a+S07eqo1r+qd9daUfmCPJxQHNsJXdVp1gwk3pnz/vS
YwrJ9NyE8YV/BfusJqoEKg54n35jTSLxCfheb1UsubRDUHO96glVm29iyCFry7Xz
ob7QNxx2C473JYO+6k8MT+TGkiBdGxu6qt/aDLT4cx8SnAJfGcf7khAAvwc+2efh
1PAXcIXp1cmoKmiXBx65iBYIUQ6TqGsrHfuMmF9gPM5w9sjFd3Nn0Uq2XkOrFBpr
X7Gz3HMKTwTvTAVAhlyIfQ+/QyrpBIuUqwT1QL2fhUfhq2R4g1AWy9Dhf6/2aIg=
=T2BK
-----END PGP SIGNATURE-----


Reply to: