Skip to content

Instantly share code, notes, and snippets.

@brendangregg
Created December 9, 2011 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendangregg/1453467 to your computer and use it in GitHub Desktop.
Save brendangregg/1453467 to your computer and use it in GitHub Desktop.
libmicro mprot_tw128k testing
[root@smartos18 ~/utils/libMicro-0.4.1/bin]# ./mprotect -N "mprot_tw128k" -l 128k -I 2000 -w -t -f /dev/zero
prc thr usecs/call samples errors cnt/samp size flags
mprot_tw128k 1 1 1.63200 219 0 1 131072 --w-t
[root@smartos18 ~/utils/libMicro-0.4.1/bin]# ./mprotect -N "mprot_tw128k" -l 128k -I 2000 -w -t -f /dev/zero
prc thr usecs/call samples errors cnt/samp size flags
mprot_tw128k 1 1 67.25900 205 0 1 131072 --w-t
[root@smartos18 ~/utils/libMicro-0.4.1/bin]# ./mprotect -N "mprot_tw128k" -l 128k -I 2000 -w -t -f /dev/zero
prc thr usecs/call samples errors cnt/samp size flags
mprot_tw128k 1 1 106.88600 135 0 1 131072 --w-t
^^^^^^^^^ note variance
[root@smartos18 ~/utils/libMicro-0.4.1/bin]# time ./mprotect -N "mprot_tw128k" -l 128k -I 2000 -w -t -f /dev/zero
prc thr usecs/call samples errors cnt/samp size flags
mprot_tw128k 1 1 67.42600 215 0 1 131072 --w-t
real 0m0.042s
user 0m0.013s
sys 0m0.028s
^^^^^^^^ too quick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment