[catching up on old threads today] On Mar 2, 2014, at 12:34 AM, Mahmood Naderan <nt_mahm...@yahoo.com> wrote:
> Hi, > How can I find the execution time of each syscall using DTrace (or any other > developers related tool)? > For example, I can see > > fstat 100 > sendto 400 > brk 50 > > I want to know which one has the largest overhead in the run time. > 100 * (execution of one fstat) > or > 400 * (execution of one sendto) > or > 50 * (execution of one brk) > > Any feedback is appreciated. Be aware that any measurement of response time that possibly includes disk I/O can vary by 3 to 6 orders of magnitude if an actual disk I/O is require. One example of that here fstat() because it could cause a physical disk I/O to get the file's metadata. Similarly, sendto() performance can vary based on what is happening down the wire. -- richard -- richard.ell...@richardelling.com +1-760-896-4422 ------------------------------------------- dtrace-discuss Archives: https://www.listbox.com/member/archive/184261/=now RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f Modify Your Subscription: https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2 Powered by Listbox: http://www.listbox.com