From 6be59dbdb7505f857b6d6fc8c5bf871d5cc0c488 Mon Sep 17 00:00:00 2001 From: CandyAngel Date: Wed, 10 May 2017 12:44:09 +0000 Subject: Added a comment --- ...ent_5_ab3884748f3271a77ba3320f25d74414._comment | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/forum/Lots_of_4k_symlinks/comment_5_ab3884748f3271a77ba3320f25d74414._comment diff --git a/doc/forum/Lots_of_4k_symlinks/comment_5_ab3884748f3271a77ba3320f25d74414._comment b/doc/forum/Lots_of_4k_symlinks/comment_5_ab3884748f3271a77ba3320f25d74414._comment new file mode 100644 index 000000000..c1f428975 --- /dev/null +++ b/doc/forum/Lots_of_4k_symlinks/comment_5_ab3884748f3271a77ba3320f25d74414._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="CandyAngel" + avatar="http://cdn.libravatar.org/avatar/15c0aade8bec5bf004f939dd73cf9ed8" + subject="comment 5" + date="2017-05-10T12:44:08Z" + content=""" + $ find -name .git -prune -o -type l | wc -l + 1034886 + +Just over a million symlinks.. very convenient :) + + $ find -name .git -prune -o -type l -printf '%s\n' | awk '{sum+=$1} END {print sum/1024**3}' + 195.9 # 195MB actual size + $ find -name .git -prune -o -type l -print0 | du -ch --files0-from=- | tail -n1 + 4.0G total # 4GB disk usage + +And in comparison to my earlier comment 2 weeks ago: + + $ du -shc *-* | tail -n3 + 33M fd79bbd4-d41e-4ea8-acc8-86437c5eed7c + 33M ffbd042e-f6d9-4450-9a57-8ed1086f587c + 4.1G total + +So directory inode sizes are dwarfed by the 4K disk usage but ~198b actual usage of the symlinks (~96% wasted space?). +"""]] -- cgit v1.2.3