1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| root@perf:/home/ykg# strace -p $(pgrep app) strace: Process 4611 attached write(1, "Time used: 1.450181 s to read 33"..., 45) = 45 close(4) = 0 munmap(0x7f46451db000, 33558528) = 0 nanosleep({tv_sec=1, tv_nsec=0}, 0x7ffed794fdb0) = 0 openat(AT_FDCWD, "/dev/sdb1", O_RDONLY|O_DIRECT) = 4 mmap(NULL, 33558528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46451db000 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 33554432) = 33554432 write(1, "Time used: 1.447891 s to read 33"..., 45) = 45 close(4) = 0 munmap(0x7f46451db000, 33558528) = 0 nanosleep({tv_sec=1, tv_nsec=0}, 0x7ffed794fdb0) = 0 openat(AT_FDCWD, "/dev/sdb1", O_RDONLY|O_DIRECT) = 4 mmap(NULL, 33558528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46451db000 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 33554432) = 33554432 write(1, "Time used: 1.448310 s to read 33"..., 45) = 45 close(4) = 0
|