root lopstir tmp test code echo proc sys vm drop_caches root lopstir t

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
root@lopstir:~/tmp/test/code# echo 3 > /proc/sys/vm/drop_caches
root@lopstir:~/tmp/test/code# time ./main2 file100m 4095
real 0m0.448s
user 0m0.000s
sys 0m0.044s
root@lopstir:~/tmp/test/code# echo 3 > /proc/sys/vm/drop_caches
root@lopstir:~/tmp/test/code# time ./main2 file100m 4096
real 0m0.378s
user 0m0.000s
sys 0m0.028s
root@lopstir:~/tmp/test/code# echo 3 > /proc/sys/vm/drop_caches
root@lopstir:~/tmp/test/code# time ./main2 file100m 4097
real 0m0.378s
user 0m0.000s
sys 0m0.028s