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

Elapsed time based scoreboard updates #1485

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cus
Copy link

@cus cus commented Jul 16, 2022

Fixes Issue #1484.

cus added 2 commits July 7, 2022 00:23
This has two advantages:

- Update the scoreboard in a single call making xfer_done and elasped_time come
  from the same moment and reducing scoreboard update overhead
- During FTP uploads the number of received bytes also get updated in XFER_DONE
  making ftpwho -o json display "transfer_bytes" for uploads as well

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit removes the previously used blocksize or filesize percentage based
scoreboard updates and starts using elapsed time based scoreboard updates.

Percent based scoreboard updates could have been too infrequent for big files
and slow link speeds, blocksize based scoreboard updates could have been too
frequent for fast links.

Also this changes the meaning of PR_TUNABLE_XFER_SCOREBOARD_UPDATES, previously
it meant the number of transferred blocks to wait until a scoreboard update
happened, now it means the number of deciseconds to wait between subsequent
scoreboard updates.

Deciseconds as the unit were chosen so the default of
PR_TUNABLE_XFER_SCOREBOARD_UPDATES of 10 is unchanged and will mean a
scoreboard update every second.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant