Skip to content

Maintaining system responsiveness under heavy IO load due to FDE

Hi all.

I have a system with LUKS encryption enabled for the entire root partition. My processor is a bit older (i5-7600k + exploit mitigations), so during heavy IO load (upgrading packages, downloading large files), the CPU often spikes as the encryption occurs while things get written to disk.

I've tried tuning sysctls, and currently I can maintain minimal responsiveness (no lockups) with

vm.dirty_background_bytes = 402653200
vm.dirty_bytes = 402653200

but things are still quite sluggish.

Does anyone know of a better way to improve this?

3 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
mtgd48

Author

10
posts
54
comments
1
media
View profile

3 comments

I have an old i7-4700mq and i don't have the issues you've described.. I have btrfs on luks with sway, but i doubt it would do as big of a difference considering it's a laptop with an old haswell chip.. While this does not directly help I'm a bit unsure you pinpointed the issue here.

2 points

I have an older, weaker processor (i7-6650U) and I also don't have the issue you described with an encrypted root partition.

For keeping my systems generally responsive I like to use ananicy but I haven't done in depth testing to determine if it's more than a placebo.

2 points

No problems here either: Thinkpad T570, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, 20GB ram, SSD, FDE.

I don't doubt you have a problem, except it's probably not dmcrypt related.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.