Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msg/simple: apply prefetch policy more precisely #10344

Merged
merged 1 commit into from Aug 1, 2016

Commits on Jul 19, 2016

  1. msg/simple: apply prefetch policy more precisely

    We shall apply prefetch policy based on the residual length aftering
    checking cache instead of the original request length.
    
    E.g., if the reading sequences are 1K, 5K, 2K, the improved logic
    will trigger another prefetch of 4K(as 5K - 3K(from recv_buf) == 2K, and we
    now have 8K prefetched data total) by the second 5K reading(which we
    don't do this according to the old logic), and thus the last reading request
    which asks for 2K data can be also benefited from this prefetch too,
    which is good for performance.
    
    Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
    xiexingguo committed Jul 19, 2016
    Copy the full SHA
    d5c12af View commit details
    Browse the repository at this point in the history