{"push_id":842051557,"size":2,"distinct_size":2,"ref":"refs/heads/block_cache","head":"c75b6abe3bfbfe82452faadfe7325a6d3d350890","before":"abb37803a6172ed51865055a6f3a640d962bd5fa","commits":[{"sha":"0dfa5281626033a103bb901cd5b14f5b9aa79b69","author":{"email":"d37d382657f19b72c66fbd111cc85934ea45893d@linaro.org","name":"SY Chiu"},"message":"Secure Storage: implement block cache\n\nThis patch increasing the access speed if you are frequently\naccessing some portion of data in a TEE file.\n\nTested on MediaTek MT8173 EVB, result as follows:\n(default chunk size is 1KB):\n\n(w/ block cache)\n\nWRITE:\n-----------------+---------------+----------------\n Data Size (B)   | Time (s)      | Speed (kB/s)\n-----------------+---------------+----------------\n      256        |    0.005      |   50.000\n      512        |    0.006      |   83.333\n     1024        |    0.007      |  142.857\n     2048        |    0.017      |  117.647\n     4096        |    0.046      |   86.957\n    16384        |    0.181      |   88.398\n   524288        |    5.754      |   88.982\n  1048576        |   11.571      |   88.497\n-----------------+---------------+----------------\n\nREAD:\n-----------------+---------------+----------------\n Data Size (B)   | Time (s)      | Speed (kB/s)\n-----------------+---------------+----------------\n      256        |    0.000      |\tN/A\n      512        |    0.000      |      N/A\n     1024        |    0.000      |      N/A\n     2048        |    0.000      |      N/A\n     4096        |    0.015      |  266.667\n    16384        |    0.056      |  285.714\n   524288        |    1.729      |  296.125\n  1048576        |    3.470      |  295.101\n-----------------+---------------+----------------\n\nREWRITE: (Read-Modify-Write)\n-----------------+---------------+----------------\n Data Size (B)   | Time (s)      | Speed (kB/s)\n-----------------+---------------+----------------\n      256        |    0.008      |   31.250\n      512        |    0.008      |   62.500\n     1024        |    0.011      |   90.909\n     2048        |    0.028      |   71.429\n     4096        |    0.111      |   36.036\n    16384        |    0.515      |   31.068\n   524288        |   17.228      |   29.719\n  1048576        |   34.452      |   29.723\n-----------------+---------------+----------------\n\n(w/o block cache)\n\nWRITE:\n-----------------+---------------+----------------\n Data Size (B)   | Time (s)      | Speed (kB/s)\n-----------------+---------------+----------------\n      256        |    0.005      |   50.000\n      512        |    0.006      |   83.333\n     1024        |    0.009      |  111.111\n     2048        |    0.024      |   83.333\n     4096        |    0.093      |   43.011\n    16384        |    0.519      |   30.829\n   524288        |   16.614      |   30.817\n  1048576        |   33.363      |   30.693\n-----------------+---------------+----------------\n\nREAD:\n-----------------+---------------+----------------\n Data Size (B)   | Time (s)      | Speed (kB/s)\n-----------------+---------------+----------------\n      256        |    0.013      |   19.231\n      512        |    0.014      |   35.714\n     1024        |    0.013      |   76.923\n     2048        |    0.027      |   74.074\n     4096        |    0.068      |   58.824\n    16384        |    0.270      |   59.259\n   524288        |    8.648      |   59.204\n  1048576        |   17.288      |   59.232\n-----------------+---------------+----------------\n\nREWRITE: (Read-Modify-Write)\n-----------------+---------------+----------------\n Data Size (B)   | Time (s)      | Speed (kB/s)\n-----------------+---------------+----------------\n      256        |    0.047      |    5.319\n      512        |    0.047      |   10.638\n     1024        |    0.049      |   20.408\n     2048        |    0.094      |   21.277\n     4096        |    0.229      |   17.467\n    16384        |    0.918      |   17.429\n   524288        |   29.434      |   17.395\n  1048576        |   58.825      |   17.408\n-----------------+---------------+----------------\n\nSigned-off-by: SY Chiu <sy.chiu@linaro.org>","distinct":true,"url":"https://api.github.com/repos/m943040028/optee_os/commits/0dfa5281626033a103bb901cd5b14f5b9aa79b69"},{"sha":"c75b6abe3bfbfe82452faadfe7325a6d3d350890","author":{"email":"d37d382657f19b72c66fbd111cc85934ea45893d@linaro.org","name":"SY Chiu"},"message":"Secure Storage: Added a flag to turn Block Cache off\n\nIntroduce a new flag CFG_FS_BLOCK_CACHE (default off) to\nturn block cache on and off.\n\nSigned-off-by: SY Chiu <sy.chiu@linaro.org>\nTested-by: SY Chiu <sy.chiu@linaro.org> (QEMU,MT8173_EVB)","distinct":true,"url":"https://api.github.com/repos/m943040028/optee_os/commits/c75b6abe3bfbfe82452faadfe7325a6d3d350890"}]}