Add a New Comment (Rich Markup)
Right. I've just committed the original fix to: http://git.sv.gnu.org/cgit/findutils.git/commit/?id=c1556892a6 and the fix for the NEWS entry is here: http://git.sv.gnu.org/cgit/findutils.git/commit/?id=9d849f77d5 The reason for the bug - stat() on BTRFS returning device ids for snapshots and subvolumes which do not exist in "/proc/self/mountinfo" - still exists. This also leads to performance issues, yet I don't know numbers. I'm thinking about adding a BTRFS-specific workaround in "find/ftype.c". Thanks & have a nice day, Berny
Possibly related to http://lists.gnu.org/archive/html/findutils-patches/2017-02/msg00020.html i.e. caused by a btrfs bug.
Long running invocations of find, e.g. as part of update-locatedb, grow their allocated memory beyond all bounds. On my system (NixOS), I have regularly observed it to take more than 12G of RES memory. This bug was originally reported to the ubuntu tracker (https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/1364492) and the patch that was posted there by Juan Carlos Cordero González (https://launchpadlibrarian.net/304000719/find_bug.patch) fixed the condition for me. % find --version find (GNU findutils) 4.6.0 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Eric B. Decker, James Youngman, and Kevin Dalley. Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2) % /nix/store/yarp3aqw768wi94nh4n9wzrdb4k74bva-findutils-4.6.0/bin/find/(-fstypeafs-o-fstypeanon_inodefs-o-fstypeauto-o-fstypeautofs-o-fstypebdev-o-fstypebinfmt-o-fstypebinfmt_misc-o-fstypecgroup-o-fstypecifs-o-fstypecoda-o-fstypeconfigfs-o-fstypecramfs-o-fstypecpuset-o-fstypedebugfs-o-fstypedevfs-o-fstypedevpts-o-fstypedevtmpfs-o-fstypeecryptfs-o-fstypeeventpollfs-o-fstypeexofs-o-fstypefutexfs-o-fstypeftpfs-o-fstypefuse-o-fstypefusectl-o-fstypegfs-o-fstypegfs2-o-fstypehostfs-o-fstypehugetlbfs-o-fstypeinotifyfs-o-fstypeiso9660-o-fstypejffs2-o-fstypelustre-o-fstypemisc-o-fstypemqueue-o-fstypencpfs-o-fstypennpfs-o-fstypeocfs-o-fstypeocfs2-o-fstypepipefs-o-fstypeproc-o-fstyperamfs-o-fstyperpc_pipefs-o-fstypesecurityfs-o-fstypeselinuxfs-o-fstypesfs-o-fstypeshfs-o-fstypesmbfs-o-fstypesockfs-o-fstypespufs-o-fstypenfs-o-fstypeNFS-o-fstypenfs4-o-fstypenfsd-o-fstypesshfs-o-fstypesubfs-o-fstypesupermount-o-fstypesysfs-o-fstypetmpfs-o-fstypeubifs-o-fstypeudf-o-fstypeusbfs-o-fstypevboxsf-o-fstypevperfctrfs-o-typed-regex\(^/tmp$\)\|\(^/var/tmp$\)\|\(^/var/cache$\)\|\(^/var/lock$\)\|\(^/var/run$\)\|\(^/var/spool$\)\|\(^/nix/store$\))-prune-o-print0
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 4 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11