aboutsummaryrefslogtreecommitdiff
path: root/tests/sys
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-12-22 20:42:36 +0000
committerIan Lepore <ian@FreeBSD.org>2014-12-22 20:42:36 +0000
commit7668336c8e14f9960ba8954449adc72847c9c187 (patch)
treee71cd82bb70c1f4965b2df19e17871824730d8f2 /tests/sys
parent87570696588537e63ba3b6906c1dc6b5c4857596 (diff)
downloadsrc-7668336c8e14f9960ba8954449adc72847c9c187.tar.gz
src-7668336c8e14f9960ba8954449adc72847c9c187.zip
Add a divisor parameter to twiddle() so that callers can request that output
only happen on every Nth call. Update the existing twiddle() calls done in various IO loops to roughly reflect the relative IO sizes. That is, tftp and nfs call twiddle() on every 1K block, ufs on every filesystem block, so the network calls now use a much larger divisor than disk IO calls. Also add a new twiddle_divisor() function that allows an application to set a global divisor that is applied on top of the per-call divisors. Nothing calls this yet, but loader(8) will be using it to further throttle the cursor for slow serial consoles.
Notes
Notes: svn path=/head/; revision=276079
Diffstat (limited to 'tests/sys')
0 files changed, 0 insertions, 0 deletions