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

disabling of workqueue to improve ssd performance #35

Open
4 tasks
Tracked by #41
iaacornus opened this issue Feb 2, 2023 · 7 comments · May be fixed by #57
Open
4 tasks
Tracked by #41

disabling of workqueue to improve ssd performance #35

iaacornus opened this issue Feb 2, 2023 · 7 comments · May be fixed by #57
Assignees
Labels
deep mod includes in depth tweaks | not simple tweaks hardware related eg drvs, improvements, patches for hardware priority prioritized software related software stuffs system wide modification program option that will modify a system wide setting
Milestone

Comments

@iaacornus
Copy link
Collaborator

iaacornus commented Feb 2, 2023

  • determine if the user is running on ssd
  • check if the ssd is encrypted
  • determine the encrypted volume
  • set --perf-no_read_workqueue --perf-no_write_workqueue --persistent to the encrypted volume

this assumes that the device is partitioned with the default fedora partition:

/dev/DEVICE/
├─/dev/DEVICEp1
├─/dev/DEVICEp2
└─/dev/DEVICEp3
  └─/dev/mapper/luks-UID
@iaacornus
Copy link
Collaborator Author

for the disabling of workqueue implemented by cloudflare refer to arch wiki documentation about the topic and official write up of cloudflare.

the workqueue is also about to be disabled in official kinoite/silverblue 38 image as proposed in this discussion fedora-silverblue/issue-tracker#388, which can be tracked here https://bugzilla.redhat.com/show_bug.cgi?id=2154817

it is also disabled by default in zen kernel zen-kernel/zen-kernel@328976f

@iaacornus iaacornus self-assigned this Feb 2, 2023
@iaacornus iaacornus added priority prioritized system wide modification program option that will modify a system wide setting labels Feb 2, 2023
@iaacornus iaacornus added this to the 0.1-alpha milestone Feb 2, 2023
@boredsquirrel
Copy link
Collaborator

so should this be closed?

@iaacornus
Copy link
Collaborator Author

so should this be closed?

the fedora devs still does not clarify when or if this would be implemented, so i think we can handle this for setup while they arent doing anything about it yet

@iaacornus iaacornus added hardware related eg drvs, improvements, patches for hardware software related software stuffs deep mod includes in depth tweaks | not simple tweaks labels Mar 4, 2023
@francoism90
Copy link

Any update on this? It doesn't seem to be landed on Fedora 38?

@boredsquirrel
Copy link
Collaborator

@boredsquirrel
Copy link
Collaborator

boredsquirrel commented Apr 30, 2023

lsblk -d -o name,rota | grep -E '^nvme|^sd' | awk '{print $1}' | head -n 1 && printf 'discard,no-read-workqueue,no-write-workqueue' | sudo tee -a /etc/crypttab && notify-send -a "optimizer" "Encrypted SSD performance optimized"

That should be it. I will propose the chance to the ublue project to be implemented in its setup scripts (It lands in the /skel.d/.config/autostart/ directory)

Chatgpt is a damn bless.

@boredsquirrel
Copy link
Collaborator

Here is a guide any way to automate this is important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deep mod includes in depth tweaks | not simple tweaks hardware related eg drvs, improvements, patches for hardware priority prioritized software related software stuffs system wide modification program option that will modify a system wide setting
Projects
None yet
3 participants