Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Record sizes of directories of a directory tree (huge) most efficiently
Date: Wed, 27 Jan 2016 20:54:00
Message-Id: 56A92E5D.1020208@gmail.com
In Reply to: [gentoo-user] Record sizes of directories of a directory tree (huge) most efficiently by Meino.Cramer@gmx.de
1 On 01/27/2016 08:25 AM, Meino.Cramer@×××.de wrote:
2 > Hi,
3 >
4 > I want to determine the size of the contents of all directories of a
5 > tree of directories on a hexacore AMD64 machine with 4GB RAM an one
6 > harddisk (containing that tree) -- most efficiently (least time
7 > consuming).
8 >
9 > I tried this (cwd = root of that tree):
10 >
11 > find . -depth -type d -print0 | xargs -0 -P 6 du -bsx {} \;
12 >
13 > . Is there any to do this faster?
14 >
15 > Thank you very much in advance for any help!
16 > Best regards,
17 > Meino
18 >
19 >
20 >
21 >
22 >
23
24 Did you try `du -cxb .` ?
25
26 Dan