Page MenuHomeFreeBSD

isci: use maxphys rather than 128KB to size s/g list
ClosedPublic

Authored by gallatin on Jan 7 2021, 4:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 12:57 PM
Unknown Object (File)
Feb 23 2024, 12:57 PM
Unknown Object (File)
Feb 23 2024, 12:40 PM
Unknown Object (File)
Dec 20 2023, 4:34 AM
Unknown Object (File)
Dec 12 2023, 7:17 AM
Unknown Object (File)
Nov 9 2023, 10:22 AM
Unknown Object (File)
Nov 7 2023, 3:51 PM
Unknown Object (File)
Nov 5 2023, 11:06 AM
Subscribers

Details

Summary

In the conversion into a tunable, we converted the
size of the s/g list used by the driver to be based
off of a hardcoded size of 128k rather than maxphys,
this caused performance problems for us. Revert this
to use the maxphys tunable.

Note that this constant is used to size dynamically allocated
things, and not static data structs, and is not constrained
by controller hardware limits, so this is safe.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

gallatin created this revision.
This revision is now accepted and ready to land.Jan 7 2021, 4:38 PM

I tested this (at work); it works in our workload (and avoids a severe performance regression).