pop-os / default-settings

Distribution Default Settings
Other
44 stars 16 forks source link

fix: Set reasonable size for dirty bytes parameters #119

Closed mmstick closed 2 years ago

mmstick commented 3 years ago

Importing patch from Focal to reduce stutter and freezes that can happen on Linux from excessive I/O on file transfers.

The kernel default is to buffer up to 10% of system RAM before flushing writes to the disk, which is insane. By setting a reasonable number of bytes for the dirty_bytes parameter, we can avoid sending the system into OOM during a large file transfer.

https://lwn.net/Articles/572911/

13r0ck commented 2 years ago

Works Great! I observed an ~33% faster file transfer when transferring a 2.3GB ISO via USB2.0 On USB 3.0 with a fast drive, this resulted in a faster transfer, but within the margin of error. Though that wasn't the point of this anyway.