Measuring the time ecryptfs consumes in encryption and I/O steps.
1.make && insmod && mount
-
Write to ecryptfs: dd if=/dev/zero of=a bs=4K count=100
-
Get the timing results: cat /proc/ecryptfs_time_stat
-
Sum the I/O time or crypto time: tail -n100 /proc/ecryptfs_time_stat | awk '{print $6}' | awk '{sum+=$1} END {print sum}'