diff options
author | Keith Busch <[email protected]> | 2016-01-12 15:08:39 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-01-12 15:10:56 -0700 |
commit | e36f6204288088fda50d1c84830340ccb70f85ff (patch) | |
tree | 58665774f3a1569b45b80346f8ff782d6a053443 /tools/perf/scripts/python/stackcollapse.py | |
parent | cda22646adaa453519fac28222f20b0d73aa8562 (diff) |
block: split bios to max possible length
This splits bio in the middle of a vector to form the largest possible
bio at the h/w's desired alignment, and guarantees the bio being split
will have some data.
The criteria for splitting is changed from the max sectors to the h/w's
optimal sector alignment if it is provided. For h/w that advertise their
block storage's underlying chunk size, it's a big performance win to not
submit commands that cross them. If sector alignment is not provided,
this patch uses the max sectors as before.
This addresses the performance issue commit d380561113 attempted to
fix, but was reverted due to splitting logic error.
Signed-off-by: Keith Busch <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Ming Lei <[email protected]>
Cc: Kent Overstreet <[email protected]>
Cc: <[email protected]> # 4.4.x-
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions