Project

General

Profile

Actions

Bug #21223

closed

arv-mount sets RLIMIT_NOFILE sufficient to --file-cache

Added by Peter Amstutz 6 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
FUSE
Story points:
-
Release relationship:
Auto

Description

The Python keep client limits itself to using 1/4 of all file handles. Because each slot requires two file handles, this means the maximum number of cache blocks is RLIMIT_NOFILE / 8.

If RLIMIT_NOFILE is less than 10240, arv-mount will adjust RLIMIT_NOFILE to 10240.

This means, unless RLIMIT_NOFILE is adjusted before invoking arv-mount, the maximum disk cache arv-mount can have in typical usage is 1280 blocks or 80 GiB.

We have a user that needs more than 80 GiB of cache, but setting --file-cache to a larger value silently fails.

arv-mount should choose a value of RLIMIT_NOFILE that is adequate to fulfill --file-cache and fail if it cannot.


Subtasks 1 (0 open1 closed)

Task #21240: Review 21223-arv-mount-nofileResolvedPeter Amstutz11/29/2023Actions
Actions

Also available in: Atom PDF