Gentoo Archives: gentoo-user

From: Meino.Cramer@×××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Record sizes of directories of a directory tree (huge) most efficiently
Date: Wed, 27 Jan 2016 16:25:49
Message-Id: 20160127162537.GC5287@solfire
1 Hi,
2
3 I want to determine the size of the contents of all directories of a
4 tree of directories on a hexacore AMD64 machine with 4GB RAM an one
5 harddisk (containing that tree) -- most efficiently (least time
6 consuming).
7
8 I tried this (cwd = root of that tree):
9
10 find . -depth -type d -print0 | xargs -0 -P 6 du -bsx {} \;
11
12 . Is there any to do this faster?
13
14 Thank you very much in advance for any help!
15 Best regards,
16 Meino

Replies