commit | 5e230fd57caa041145fb14926f47712f36a09c5e | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Mar 04 13:47:12 2016 -0700 |
committer | Jens Axboe <axboe@fb.com> | Fri Mar 04 13:47:12 2016 -0700 |
tree | e5192ef672326867995e032415d619df728a0299 | |
parent | 993930644e248d6d3c5e7a2da13b3e53aac10547 [diff] |
Pre-generate access tables for zoned random distribution If we have a lot of zones, then the looping to find and sum our correct one eats some CPU cycles. On a null workload with 10 zones, it was about a 20% reduction in performance. So cache the state information, by pre-generating the tables. This makes it so that there's no difference in performance between running without zones, or with tens of zones. Signed-off-by: Jens Axboe <axboe@fb.com>