mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #1223] throttle max bandwidth or fuse I/O writes #654
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#654
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @emanuelelevo on GitHub (Jan 3, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1223
I'm looking for a way to throttle the bandwidth usage or alternatively the fuse I/O writes. Is there any combination of options that may help achieving such purpose?
@gaul commented on GitHub (Jan 5, 2020):
Is there a generic way to do this for other file systems? It does not appear that
ioniceorblkiolimits will work for network file systems. Perhaps you can limit a process's socket io? This is not exactly what you want but--parallel_countcan limit the number of parallel writes.@emanuelelevo commented on GitHub (Jan 5, 2020):
I would use cgrous or systemd resource control for /dev/ , but this doesn't apply on fuse mounts. --parallel_count doesn't seem to help much. I could mark outgoing connections for the s3 endpoint and rate limit, this should work.
@gaul commented on GitHub (Jan 5, 2020):
Please report back what works or doesn't work. If we can document a generic solution it is better than s3fs implementing something custom. Thanks!
@emanuelelevo commented on GitHub (Jan 6, 2020):
Hi Andrew, I managed to throttle all upload traffic to the s3 region ip addresses with traffic control:
However this is a workaround. All upload traffic to the s3 region is going to be shaped (and not just s3fs). Marking the s3fs pid with iptables and using tc on the market pid does not seem to work due to forking.
I believe it would be helpful to have a built-in max_bandwidth option for s3fs (aws cli implemented this option some time ago).
@gaul commented on GitHub (Feb 2, 2020):
Could you test trickle?
@gaul commented on GitHub (Jul 26, 2020):
Closing due to inactivity. Please reopen if symptoms persist.