What’s the default block size in benchmark prove test?
How can we change it ( for better performance, we need to tune the block size parameter)
What’s the default block size in benchmark prove test?
How can we change it ( for better performance, we need to tune the block size parameter)
Proving benchmark measures proving performance, it doesn’t produce blocks, there are no blocks involved, so your questions doesn’t make sense to me.
Will proving benchmark write to disk and read from disk?
It will read, but not write anything
I use strace to log the read syscall. I want to know how many bytes are read in prove.
The log shows very small amount of data was read. Is that all the data prove read?
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0@\257\0\0\0\0\0\0”…, 832) = 832
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\3008\0\0\0\0\0\0”…, 832) = 832
read(3, “\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\330\\0\0\0\0\0\0”…, 832) = 832
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0`+\0\0\0\0\0\0”…, 832) = 832
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\320\16\0\0\0\0\0\0”…, 832) = 832
read(3, “\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\340\10\2\0\0\0\0\0”…, 832) = 832
read(3, “0\n”, 32) = 2
read(3, “557d84a000-557ea0c000 r-xp 00000”…, 1024) = 1024
read(3, “.so\n7f90a48000-7f90a58000 —p 0”…, 1024) = 1024
read(3, "0 r–p 00016000 08:07 1860 "…, 1024) = 1024
read(3, "m-2.27.so\n7f90b8c000-7f90b8d000 "…, 1024) = 771
read(3, “12:blkio:/user.slice\n11:debug:/\n”…, 8192) = 326
read(3, “”, 8192) = 0
read(3, “22 0 8:7 / / ro,relatime shared:”…, 8192) = 4069
read(9, “0-7\n”, 8192) = 4
read(10, “481\n”, 63) = 4
read(10, “Snapdragon\n”, 63) = 11
read(10, “2.1\n”, 63) = 4
read(9, “rcupdate.rcu_expedited=1 rcu_noc”…, 1024) = 870
read(9, “Processor\t: AArch64 Processor re”…, 1024) = 1024
read(9, “38.40\nFeatures\t: fp asimd evtstr”…, 1024) = 951
read(9, “”, 1024) = 0
read(9, “/dev/root / ext4 ro,relatime 0 0”…, 1024) = 1024
read(10, “”, 1023) = 0
read(9, “er 0 0\ncgroup /sys/fs/cgroup/net”…, 1024) = 1024
read(9, “/\n”, 127) = 2
read(9, “0-7\n”, 4097) = 4
read(9, “0\n”, 4097) = 2
read(9, “0-7\n”, 4097) = 4
read(9, “01\n”, 4097) = 3
read(9, “0\n”, 10) = 2
read(9, “0f\n”, 4097) = 3
read(9, “0\n”, 10) = 2
read(9, “01\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “32K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “128\n”, 10) = 4
read(9, “01\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “01\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “128K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “3\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “4096K\n”, 10) = 6
read(9, “64\n”, 10) = 3
read(9, “4096\n”, 10) = 5
read(9, “02\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “0f\n”, 4097) = 3
read(9, “02\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “32K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “128\n”, 10) = 4
read(9, “02\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “02\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “128K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “04\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “0f\n”, 4097) = 3
read(9, “04\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “32K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “128\n”, 10) = 4
read(9, “04\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “04\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “128K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “08\n”, 4097) = 3
read(9, “3\n”, 10) = 2
read(9, “0f\n”, 4097) = 3
read(9, “08\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “32K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “128\n”, 10) = 4
read(9, “08\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “08\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “128K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “10\n”, 4097) = 3
read(9, “0\n”, 10) = 2
read(9, “70\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “10\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “64K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “256\n”, 10) = 4
read(9, “10\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “10\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “256K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “20\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “70\n”, 4097) = 3
read(9, “20\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “64K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “256\n”, 10) = 4
read(9, “20\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “20\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “256K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “40\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “70\n”, 4097) = 3
read(9, “40\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “64K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “256\n”, 10) = 4
read(9, “40\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “40\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “256K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “512\n”, 10) = 4
read(9, “ff\n”, 4097) = 3
read(9, “80\n”, 4097) = 3
read(9, “0\n”, 10) = 2
read(9, “80\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “80\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Data\n”, 19) = 5
read(9, “64K\n”, 10) = 4
read(9, “64\n”, 10) = 3
read(9, “256\n”, 10) = 4
read(9, “80\n”, 4097) = 3
read(9, “1\n”, 10) = 2
read(9, “Instruction\n”, 19) = 12
read(9, “80\n”, 4097) = 3
read(9, “2\n”, 10) = 2
read(9, “Unified\n”, 19) = 8
read(9, “512K\n”, 10) = 5
read(9, “64\n”, 10) = 3
read(9, “1024\n”, 10) = 5
read(9, “ff\n”, 4097) = 3
read(9, “1804800\n”, 10) = 8
read(9, “351\n”, 10) = 4
read(9, “1804800\n”, 10) = 8
read(9, “351\n”, 10) = 4
read(9, “1804800\n”, 10) = 8
read(9, “351\n”, 10) = 4
read(9, “1804800\n”, 10) = 8
read(9, “351\n”, 10) = 4
read(9, “2419200\n”, 10) = 8
read(9, “871\n”, 10) = 4
read(9, “2419200\n”, 10) = 8
read(9, “871\n”, 10) = 4
read(9, “2419200\n”, 10) = 8
read(9, “871\n”, 10) = 4
read(9, “2841600\n”, 10) = 8
read(9, “1024\n”, 10) = 5
read(9, “MemTotal: 11869440 kB\nMemF”…, 4095) = 1221
read(10, “0\n”, 63) = 2
read(9, “{"v0":{"id":"01HS124G5A2FCF5DP7G”…, 254) = 254
read(9, “”, 32) = 0
read(9, “12:blkio:/user.slice\n11:debug:/\n”…, 128) = 128
read(9, “r.slice\n6:schedtune:/\n5:net_cls,”, 32) = 32
read(9, “net_prio:/\n4:freezer:/\n3:perf_ev”…, 96) = 96
read(9, “0.slice/session-c1.scope\n0::/use”…, 256) = 70
read(9, “”, 186) = 0
read(17, “{"sampling_mode":"Flat","iters":”…, 219) = 219
read(17, “”, 32) = 0
read(17, “{"mean":{"confidence_interval":{”…, 768) = 768
read(17, “”, 32) = 0
read(17, “{"sampling_mode":"Flat","iters":”…, 224) = 224
read(17, “”, 32) = 0
read(17, “{"mean":{"confidence_interval":{”…, 776) = 776
read(17, “”, 32) = 0
+++ exited with 0 +++
Yes, thought your question kind of contains an answer already. If you are curious about such things, it might be good to start by reading Introduction | Autonomys Academy
Could you please show me the docs link about benchmark prove? I want to know the work flow of the prove test and what have been done in the test.
For that you should just look at the code. Proving is doing what the specification and Introduction | Autonomys Academy say it should do, benchmarking code only runs it in a loop to measure time.