Re:Strace - The Sysadmin's Microscope
by dap on Friday January 06, 2012 @01:37AM
(#3432296)
Yes, buffer size can have a significant effect on performance. You can quickly see buffer sizes used by "read" across your system with "dtrace -n 'syscall::read:entry{ @ = quantize(arg2); }'", which summarizes the output (in case you're doing more of these than you can reasonably see in the console) and has significantly less impact on the program you're tracing. Output for my system:
# dtrace -n 'syscall::read:entry/arg2 == 512/{ @[ ustack() ] = count(); }'