Skip to content

duperemove: increase open file limit from default to maximum available#269

Merged
lorddoskias merged 1 commit intomarkfasheh:masterfrom
trofi:master
Aug 3, 2021
Merged

duperemove: increase open file limit from default to maximum available#269
lorddoskias merged 1 commit intomarkfasheh:masterfrom
trofi:master

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Jul 27, 2021

On 32-CPU machine with SSD I occasionally get -EMFILE errors when deduping as:
# duperemove -dr --hashfile=dupes.db /

My guess is that we exhausl relatively small 1K default RLIMIT_NOFILE.
The change cranks up the limit from 1K to 512K on x86_64 linux.

On 32-CPU machine with SSD I occasionally get -EMFILE errors when deduping as:
    # duperemove -dr --hashfile=dupes.db /

My guess is that we exhausl relatively small 1K default RLIMIT_NOFILE.
The change cranks up the limit from 1K to 512K on x86_64 linux.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
@lorddoskias lorddoskias merged commit 96dc4da into markfasheh:master Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants