Commit 339b5a5
mmc: bcm2835-sdhost: use Host Software Queueing mechanism
See commit 511ce37 ("mmc: Add MMC host software queue support")
Introduced in 5.8, this feature lets the block layer issue up to 2
pending requests to the MMC layer which in certain cases can improve
throughput, but in the case of this driver can significantly reduce
context switching when performing random reads.
On bcm2837 with a performant class A1 card, context switches under FIO
random 4k reads go from ~8800 per second to ~5800, with a reduction in
hardIRQs per second from ~5800 to ~4000. There is no appreciable
difference in throughput.
For bcm2835, and for workloads other than random read, HSQ is a wash in
terms of throughput and CPU load.
So, use it by default.
Signed-off-by: Jonathan Bell <[email protected]>1 parent 5d682b6 commit 339b5a5
2 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
1891 | 1892 | | |
1892 | 1893 | | |
1893 | 1894 | | |
1894 | | - | |
| 1895 | + | |
| 1896 | + | |
1895 | 1897 | | |
1896 | 1898 | | |
1897 | 1899 | | |
1898 | | - | |
| 1900 | + | |
1899 | 1901 | | |
| 1902 | + | |
1900 | 1903 | | |
| 1904 | + | |
1901 | 1905 | | |
1902 | 1906 | | |
1903 | 1907 | | |
| |||
1992 | 1996 | | |
1993 | 1997 | | |
1994 | 1998 | | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
1995 | 2009 | | |
1996 | 2010 | | |
1997 | 2011 | | |
| |||
2004 | 2018 | | |
2005 | 2019 | | |
2006 | 2020 | | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
2007 | 2024 | | |
2008 | 2025 | | |
2009 | 2026 | | |
| |||
2134 | 2151 | | |
2135 | 2152 | | |
2136 | 2153 | | |
2137 | | - | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
2138 | 2157 | | |
2139 | 2158 | | |
2140 | 2159 | | |
2141 | | - | |
2142 | | - | |
2143 | 2160 | | |
2144 | 2161 | | |
2145 | 2162 | | |
| |||
0 commit comments