You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
On the flush path we allocate a new IO-aligned buffer, copy the region buffer into it and then write the copy to the device. I'm not sure why this extra copy exists, especially since our Region buffers are already [IO-aligned](https://www.internalfb.com/code/fbsource/[d0fda3b969458b99e1492aafece94ea93ca7c4a4]/fbcode/cachelib/navy/block_cache/RegionManager.cpp?lines=65-66). It also doesn't increase concurrency by, for example, allowing us to return the Region buffer to the clean pool earlier because we're still blocking on the device write.
Remove this redundant copy and just directly write the region buffer to the device.
Reviewed By: AlnisM, byahn0996
Differential Revision: D94241607
fbshipit-source-id: a5c94f75ade247df658e981803461a2ee9d2af71
0 commit comments