Re: Cheap way to track disk usage?
On Tue, 03 Mar 2015 09:55:46 +0000, 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.
Can do something similar with du and xdu.
The output of du can diverted to a file, running overnight, and then
afterward, xdu can take it as input ad display it nicely.
-- hendrik
Reply to: