dtrace of a Samba nbench run shows
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 chmod1175632 kill1230340 write1281535 geteuid1918738 rmdir2376245 mkdir2516070 fsync3346330 setreuid5205649 gettimeofday9212264 lseek9336442 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 open23145865857 select 274329462364 poll 753606057912 _umtx_op 1097794513187 So, what is _umtx_op? I guess I have to move to kqueue as well. -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD as Samba Server and Windows as Client
On Tue, Apr 16, 2013 at 12:20 PM, Mehmet Erol Sanliturk wrote: > Dear All , > > I could be able to connect a FreeBSD 9.1 amd64 computer as client to a > Windows XP ( 32 bits ) by > using information supplied by the mail > > http://lists.freebsd.org/pipermail/freebsd-questions/2013-April/250500.html > > and I sent a mail > > http://lists.freebsd.org/pipermail/freebsd-doc/2013-April/021857.html > > to share my findings . > > > Previously , I tried to make a FreeBSD 9.1 amd64 as Samba server and > connect a Windows XP as a client computer . > > By using The FreeBSD Handbook , many documents from www.samba.org and > Internet , > I could not be able to access to the FreeBSD Samba server from Windows XP : > > Continuously I have received "Access denied" error message in Windows XP > although in the server the related directory and files have mode > rwx-rwx-rwx . > > The same message is produced even for Linux Samba Server . > > The examples given in the documents are partial statements without actually > used > files / statements in such a setting , and sometimes inconsistent or > contradictory > with each other because they are mostly written manually . > > > If a working , applicable set of files / statements are supplied , it will > be appreciated very much . > > After a successful implementation , I will send an e-mail about this set up > as an example for > the FreeBSD Handbook to share our information with other people in need . All I can tell you is that it is definitely possible using FreeBSD. The FreeNAS folks do exactly that as does the company I work for. I do not have the time to spend helping you get it going and I note that you do not tell us which version of Samba you are using, but it does work. Have you tried setting the permissions correctly on the directory you are sharing? Do you know if it is getting Access Denied trying to access the Share or trying to create a file. -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Does anyone know how to install FreeBSD 8.3 under Virtual Box 4.2.6?
On Thu, Feb 28, 2013 at 11:29 PM, Trond Endrestøl wrote: > On Thu, 28 Feb 2013 23:04-0800, Richard Sharpe wrote: > >> Hi, >> >> I booted the FreeBSD 8.3 DVD1 under Virtual Box, but it crashes in VB >> 4.2.6 under Win 7 and Linux. >> >> Seems to install OK on QEMU/VMM under Linux ... >> >> Does anyone know how to get it to run under Virtual Box? > > Ensure firmware settings (i.e. BIOS) allow for hw virtualization. Thanks Trond. I assume you mean the host here. Since it has installed under QEMU/vmm on Linux, I guess that I have HW Virtualization enabled. Actually, I know that this is the case, since I have run OpenIndianna under Virtual Box as well as Windows Server 2008. > You don't specify if you are attempting i386 or amd64. True. AMD64. Maybe I need to check that. > VB needs to know if you're running a 32 bit or 64 bit guest OS. > > A higher degree of details would be nice. > > -- > +---++ > | Vennlig hilsen, | Best regards, | > | Trond Endrestøl, | Trond Endrestøl, | > | IT-ansvarlig, | System administrator, | > | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | > | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | > | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | > +---++ -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Does anyone know how to install FreeBSD 8.3 under Virtual Box 4.2.6?
Hi, I booted the FreeBSD 8.3 DVD1 under Virtual Box, but it crashes in VB 4.2.6 under Win 7 and Linux. Seems to install OK on QEMU/VMM under Linux ... Does anyone know how to get it to run under Virtual Box? -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Have there been any fixes for long TCP delays with FreeBSD 8.3 or 9.x?
Hi folks, I am seeing a problem when copying large files via SMB/Samba from a FreeBSD 8.0-based system (with Samba 3.6.6 and ZFS etc) where eventually Windows drops the connection. However, it seems, based on three captures I have, that what has happened is that FreeBSD has not supplied any data on the connection for 50-60 seconds and the Windows 60-second timeout trips. In each case, what I see is a large number of 1500-byte frames go out. Then Windows ACKs a reasonable amount of data, 30+K or so, and then sends another ACK to ack everything so far received. Then in two cases, after about 52 seconds I see some more data in two of the captures I have but after a further few seconds, Windows disconnects. In the last capture, there was no further data for 60 seconds, so Windows disconnected. I know there should have been more data because: 1. The READ requests are for 64kiB and there is still data to come and the sequence numbers match up. 2. In my Samba traces I know that Samba has gone on to process the next SMB2 command in sequence and the time difference between these are of the order of 1mS and Samba in this case is operating in sync mode where it does not read the next command off the socket until it has finished writing the response for the previous command to the socket. The system is relatively idle. Only one smbd and some web traffic (inbound as a result of a get). I am hoping that this describes a known problem. I can provide captures on request. They will have to be cut-down as they are 300 to 500MB in length. -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"