Skip to content

Confused with how bcopy threshold is calculated? #7208

Answered by yosefe
haipeng31 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. the formula calculates the message size for which sending with bcopy is same time as sending with bcopy
    zcopy_thressh / bcopy_bw = iovcnt * reg_cost->overhead + zcopy_thresh / bandwidth + zcopy_thresh * reg_cost->growth
    in this case left side is bcopy send cost and right side is zcopy send cose (assuming bcopy_bw is slower than network)
  2. reg_cost is a linear function of memory size: overhead+growth*size. since sometimes there is extra code depending on the number of pages, for example.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@haipeng31
Comment options

Comment options

You must be logged in to vote
4 replies
@haipeng31
Comment options

@haipeng31
Comment options

@yosefe
Comment options

@haipeng31
Comment options

Answer selected by haipeng31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants