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

nixos/zfs: disable redundant scheduler #250308

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

Artturin
Copy link
Member

@Artturin Artturin commented Aug 20, 2023

I (according to the comment) wrote this somewhere and since then it has spread to many configs.

https://github.com/search?q=artturin+ENV%7BID_FS_TYPE%7D%3D%3D%22zfs_member%22%2C+ATTR%7B..%2Fqueue%2Fscheduler%7D%3D%22none%22&type=code

#169457 (comment)

Does anybody know where I wrote it?

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Aug 20, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Aug 20, 2023
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The scheduler bit here was for some legacy functionality which was used to largely disable the IO scheduler since ZFS has it's own (only allow front and back merges). However, this functionality was removed a while ago since it was hard to support and users were encourages just to write a udev rule is they wanted to change the default scheduler.

openzfs/zfs#11838 (review)

openzfs/zfs@04344d5

It does not appear to affect the need to set this rule because people are still having the issue this PR fixes.

Copy link
Contributor

@Shawn8901 Shawn8901 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using basically the same in my configs, so lgfm

@lopsided98
Copy link
Contributor

The same person did claim that this should not be necessary anymore: openzfs/zfs#9609 (comment)

These days deadline, mq-deadline, noop, and none all perform well with ZFS, and users should not need to change the scheduler.

On the other hand, this doesn't appear to be always true in practice, and setting the default to none probably doesn't hurt. I just wanted to document upstream's advice.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Sep 6, 2023
@Mic92 Mic92 merged commit 696353f into NixOS:master Sep 13, 2023
Mic92 added a commit to nix-community/srvos that referenced this pull request Jan 21, 2024
zowoq pushed a commit to nix-community/srvos that referenced this pull request Mar 1, 2024
mergify bot pushed a commit to nix-community/srvos that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: user experience 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants