Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2013 19:57:39 -0700
From:      Richard Sharpe <realrichardsharpe@gmail.com>
To:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   dtrace of a Samba nbench run shows
Message-ID:  <CACyXjPyR-9P+YHVKAe6+gmY2LDcxcLzjk5mhj1F7LaSimYJ=ag@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi folks,

I have been using dtrace, and particularly procsystime, to measure
Samba system call usage stuff. This is what I get:

cs-cc1# ./procsystime -n smbd
Tracing... Hit Ctrl-C to end...
^C

Elapsed Times for processes smbd,

         SYSCALL          TIME (ns)
         sysarch               1492
        thr_self               2636
        __getcwd               5695
     getsockname               5778
          accept               6952
          sendto               8019
     getpeername               8273
      setsockopt               9394
            pipe              13567
            kenv              15151
           umask              16400
       sigaction              23504
           msync              24068
        mprotect              26960
          getpid              29888
          socket              38078
            dup2              42323
           chdir              49643
       getgroups              74299
           wait4             108578
         connect             148649
     sigprocmask             150443
        __sysctl             215389
         getegid             243731
            mmap             257379
        setregid             260529
       setgroups             270894
         thr_new             376349
          munmap             428773
            fork             511601
       sigreturn             668402
           chown             703765
          getuid             821748
           chmod            1175632
            kill            1230340
           write            1281535
         geteuid            1918738
           rmdir            2376245
           mkdir            2516070
           fsync            3346330
        setreuid            5205649
    gettimeofday            9212264
           lseek            9336442
        pathconf           18606662
          statfs           29714064
          access           30073540
         fstatfs           31360178
           lstat           33902417
  extattr_get_fd           38793210
          fchmod          147266506
          rename          156300564
           fstat          234898224
          utimes          237551881
   getdirentries          253926535
extattr_set_link          371269699
           pread          671050763
          unlink          768327954
          pwrite          825201124
         fstatat          866823356
   clock_gettime         1257134991
          writev         1984839112
            read         2922189298
           close         6180434183
           fcntl         7849631277
            stat         7872399963
extattr_get_file         7887564205
           ioctl         9034605338
            open        23145865857
          select       274329462364
            poll       753606057912
        _umtx_op      1097794513187

So, what is _umtx_op? I guess I have to move to kqueue as well.

--=20
Regards,
Richard Sharpe
(=E4=BD=95=E4=BB=A5=E8=A7=A3=E6=86=82=EF=BC=9F=E5=94=AF=E6=9C=89=E6=9D=9C=
=E5=BA=B7=E3=80=82--=E6=9B=B9=E6=93=8D)



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CACyXjPyR-9P+YHVKAe6+gmY2LDcxcLzjk5mhj1F7LaSimYJ=ag>