From owner-freebsd-questions@FreeBSD.ORG Fri May 24 02:57:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B6917F26 for ; Fri, 24 May 2013 02:57:40 +0000 (UTC) (envelope-from realrichardsharpe@gmail.com) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx1.freebsd.org (Postfix) with ESMTP id 98233DD for ; Fri, 24 May 2013 02:57:40 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id bv13so1763220pdb.26 for ; Thu, 23 May 2013 19:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eL2tJL23KcDdeds/X8ahtuxvzqYRqC7jub+okl/AAAs=; b=VM6+4IIMwo4Zk4EUdvhr00zV2y7kWWbOHhjKmCyBG7kDgpbWmWg3fMNxGB9BBLVKpb MMYNbkYpfzV5kfWSI7eRddU3AurVs3Xf50FYUn9fMXAbyQKad0W7C3xqLMp9cD/QKkD8 fbLc31kGOaGVtut2nUEEEY1zi2cMgqj1ImecPwk6K/CR9ybiWISlHWxvyf6PDI8Ohq76 gpZAsPakkMxniDxd7TEw9d9zEV936mBdM/qLgFIv8r82SUsMotqKCMMeoP5Zem+XLAP8 DssYt0dmI/9OUrK1G/WaDPzF3LFCIVTR9cAyBleQeRG33xaV//7CDtba8/b0p0fzaxsw RGpg== MIME-Version: 1.0 X-Received: by 10.66.155.102 with SMTP id vv6mr16191137pab.64.1369364260083; Thu, 23 May 2013 19:57:40 -0700 (PDT) Received: by 10.70.89.11 with HTTP; Thu, 23 May 2013 19:57:39 -0700 (PDT) Date: Thu, 23 May 2013 19:57:39 -0700 Message-ID: Subject: dtrace of a Samba nbench run shows From: Richard Sharpe To: FreeBSD Questions Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2013 02:57:40 -0000 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)