szetszwo commented on PR #6613:
URL: https://github.com/apache/ozone/pull/6613#issuecomment-3559548839

   1. Changed a single response to contain multiple checksums: bytesPerChecksum 
only affects the performance slightly.  Even 512 bytesPerChecksum can get good 
performance. 
   2. Added pre-read supported: the client buffer size does not matter .
   
   - 512 bytesPerChecksum
   ```
   XXX ---------------------------------------------------------
   XXX key4 with 1G (=1073741824) bytes and 512 bytesPerChecksum
   XXX  createStreamKey:   142.14 MB/s (  7.204 s, buffer   8MB (=8388608), 
keySize  1024.00 MB, md5=61 17 A5 9D AD F1 E1 DD 3B 3D 37 E3 2B 6A 5A 4C)
   XXX    readStreamKey:  2622.17 MB/s (  0.391 s, buffer       4k (=4096), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   767.54 MB/s (  1.334 s, buffer       4k (=4096), 
keySize  1024.00 MB, md5=61 17 A5 9D AD F1 E1 DD 3B 3D 37 E3 2B 6A 5A 4C)
   XXX    readStreamKey:  2659.68 MB/s (  0.385 s, buffer    1M (=1048576), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   762.32 MB/s (  1.343 s, buffer    1M (=1048576), 
keySize  1024.00 MB, md5=61 17 A5 9D AD F1 E1 DD 3B 3D 37 E3 2B 6A 5A 4C)
   XXX    readStreamKey:  2668.96 MB/s (  0.384 s, buffer    8M (=8388608), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   727.99 MB/s (  1.407 s, buffer    8M (=8388608), 
keySize  1024.00 MB, md5=61 17 A5 9D AD F1 E1 DD 3B 3D 37 E3 2B 6A 5A 4C)
   XXX    readStreamKey:  2720.65 MB/s (  0.376 s, buffer  32M (=33554432), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   680.19 MB/s (  1.505 s, buffer  32M (=33554432), 
keySize  1024.00 MB, md5=61 17 A5 9D AD F1 E1 DD 3B 3D 37 E3 2B 6A 5A 4C)
   ```
   - 256k bytesPerChecksum
   ```
   XXX ---------------------------------------------------------
   XXX key3 with 1G (=1073741824) bytes and 256k (=262144) bytesPerChecksum
   XXX  createStreamKey:   145.81 MB/s (  7.023 s, buffer   8MB (=8388608), 
keySize  1024.00 MB, md5=5B 98 A8 2B 30 74 F2 C7 40 59 9B D9 98 8E 59 9C)
   XXX    readStreamKey:  2769.22 MB/s (  0.370 s, buffer       4k (=4096), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   780.02 MB/s (  1.313 s, buffer       4k (=4096), 
keySize  1024.00 MB, md5=5B 98 A8 2B 30 74 F2 C7 40 59 9B D9 98 8E 59 9C)
   XXX    readStreamKey:  2726.07 MB/s (  0.376 s, buffer    1M (=1048576), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   778.18 MB/s (  1.316 s, buffer    1M (=1048576), 
keySize  1024.00 MB, md5=5B 98 A8 2B 30 74 F2 C7 40 59 9B D9 98 8E 59 9C)
   XXX    readStreamKey:  2786.75 MB/s (  0.367 s, buffer    8M (=8388608), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   736.60 MB/s (  1.390 s, buffer    8M (=8388608), 
keySize  1024.00 MB, md5=5B 98 A8 2B 30 74 F2 C7 40 59 9B D9 98 8E 59 9C)
   XXX    readStreamKey:  2810.36 MB/s (  0.364 s, buffer  32M (=33554432), 
keySize  1024.00 MB, md5=null)
   XXX    readStreamKey:   699.14 MB/s (  1.465 s, buffer  32M (=33554432), 
keySize  1024.00 MB, md5=5B 98 A8 2B 30 74 F2 C7 40 59 9B D9 98 8E 59 9C)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to