Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File system maintenance service and its btrfs handle #256

Merged
merged 2 commits into from
Feb 20, 2018
Merged

Conversation

happyaron
Copy link
Contributor

@happyaron happyaron commented Feb 19, 2018

This PR includes a new file system maintenance service and its btrfs handle, suggested to complete the mitigation in #235.

Two files are added:

  • extras/bin/fs-service: Dumb service wrapper to get file system maintenance tasks done properly under snappy constrains where timers are not always available. It schedules different tasks under defined situations with proper tracking.
  • extras/bin/btrfs-maint: Handle of maintaining btrfs file system, scheduled by fs-service. It takes care of a strategy of improving the health of btrfs's on-disk status by issuing sync, balance and scrub operations periodically with constraints. IO activities are heavily throttled according to the system load and IO status, even though it needs a better implementation to take care of the IO information.

@dilshat dilshat merged commit 4e28b26 into sysnet Feb 20, 2018
@happyaron happyaron deleted the fs-guards branch February 20, 2018 07:01
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