coreutils
[Top][All Lists]
Advanced

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

RE: [PATCH] rm, du, chmod, chown, chgrp: use much less memory for large


From: Voelker, Bernhard
Subject: RE: [PATCH] rm, du, chmod, chown, chgrp: use much less memory for large directories
Date: Tue, 23 Aug 2011 09:44:21 +0200

Jim Meyering wrote:

+++ b/tests/rm/4-million-entry-dir
...
+# Put 4M files in a directory.
+mkdir d && cd d || framework_failure_
+seq 4000000|xargs touch || framework_failure_
+
+cd ..
+
+# Restricted to 50MB, rm from coreutils-8.12 would fail with a
+# diagnostic like "rm: fts_read failed: Cannot allocate memory".
+ulimit -v 50000
+rm -rf d || fail=1
+
+Exit $fail

wouldn't this leave behind lots of used inodes in case of a failure?

Additionally, looking at 2 of my (not so big) SLES servers:
most partitions only have <500000 inodes (/ /opt /usr /tmp /var),
so maybe it's worth checking beforehand whether the filesystem
meets the test requirements. What do you think?

Have a nice day,
Berny




reply via email to

[Prev in Thread] Current Thread [Next in Thread]