Date: Sun, 12 Oct 2014 13:36:02 -0300 From: =?UTF-8?B?IkRhbnRlIEYuIEIuIENvbMOyIg==?= <dante01010@gmail.com> To: Johan Hendriks <joh.hendriks@gmail.com> Cc: freeBSD <freebsd-questions@freebsd.org> Subject: Re: Samba smbd processes overload and panic Message-ID: <543AADF2.3040204@gmail.com> In-Reply-To: <CAOaKuAWfsJE5sygOM_KLwkdjuUrgmuJOqT5S1550vz-uD-4j7Q@mail.gmail.com> References: <5438477D.7090406@gmail.com> <CAOaKuAWfsJE5sygOM_KLwkdjuUrgmuJOqT5S1550vz-uD-4j7Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Johan, Sendfile is disabled, this is my setup , all shares have the full_audit module enable but i already tried disable ,and the same for xattr_tdb which is enabled on all shares located in ZFS volumes since ZFS has no support for extended attributes yet on Freebsd i decided to use this module, i didn't disabled zfsacl module , but i'm thinking about move everthing to a UFS2 partition and use vfs_acl_xattr for ntfs like acls, i just don't like to use a Windows machine to set acls on folders it's too slow and i couldn't find a way to set acls from command line on samba, it's possible with smbcacls command but it's limited , rudimentary and even slower, someone correct me if i'm wrong. Regards Dante F. B. Colò [global] server role = classic primary domain controller netbios name = SALAMONE-PDC workgroup = SALAMONE server string = %L os level = 255 domain logons= yes preferred master = yes domain master = yes wins support = yes name resolve order = lmhosts wins host bcast max stat cache size = 768 security = user add user script = /home/samba/scripts/smbadduser.sh "%u" add machine script = /usr/sbin/pw useradd -g machines -s /sbin/nologin -d /dev/null -c "%u" -n "%u" unix password sync = no admin users = @smbadmins log file = /var/log/samba4/log.%I max log size = 4096 log level = 1 debug class = yes debug prefix timestamp = yes syslog = 0 deadtime=60 time server = yes logon path = logon drive = H: logon script =%G/logon.bat # [netlogon] path = "/home/samba/netlogon" browsable = no writable = no guest ok = yes # [homes] directory mask = 0700 create mask = 0700 browsable = no writable = yes valid users = %S # [Diligencias] vfs objects = zfsacl,xattr_tdb,full_audit xattr_tdb:file = /var/db/samba4/private/shares_xattrs/diligencias.tdb full_audit:prefix = "%I|%u|%P" full_audit:success = rmdir rename unlink full_audit:failure = rmdir rename unlink full_audit:facility = LOCAL0 full_audit:priority = NOTICE path = "/samba/salamone/diligencias" inherit owner = yes inherit permissions = yes writable = yes browsable = yes ea support = yes store dos attributes = yes map archive = no map system = no map readonly = no map hidden = no level2 oplocks = no oplocks = no # [RH] vfs objects =full_audit full_audit:prefix = "%I|%u|%P" full_audit:success = rmdir rename unlink full_audit:failure = rmdir rename unlink full_audit:facility = LOCAL0 full_audit:priority = NOTICE path = "/local_disk_2/salamone/dados_gerais/rh" writable = yes browsable = yes inherit owner = yes create mask =0777 directory mask =0777 store dos attributes = yes ea support = yes valid users =@smbadmins,gabriela.martins,leonardo.oliveira,robezia.silva,amanda.zonta,neildes.digesu,jose.salamone,miriam.lucateli,meiriele.oliveira map archive = no map system = no map readonly = no map hidden = no level2 oplocks = no oplocks = no # [Eventos] vfs objects = zfsacl,xattr_tdb,full_audit xattr_tdb:file = /var/db/samba4/private/shares_xattrs/eventos.tdb full_audit:prefix = "%I|%u|%P" full_audit:success = rmdir rename unlink full_audit:failure = rmdir rename unlink full_audit:facility = LOCAL0 full_audit:priority = NOTICE path = "/samba/salamone/eventos" writable = yes browsable = yes inherit owner = yes inherit permissions = yes store dos attributes = yes ea support = yes map archive = no map system = no map readonly = no map hidden = no level2 oplocks = no oplocks = no On 10/12/2014 06:42 AM, Johan Hendriks wrote: > > > Op vrijdag 10 oktober 2014 heeft "Dante F. B. Colò" > <dante01010@gmail.com <mailto:dante01010@gmail.com>> het volgende > geschreven: > > Greetings everyone > > I recently deployed Samba 4.0.21 running as classic pdc on > freebsd 10 version RELEASE-p9, most of shares are in a ZFS volume > with vfs_zfsacl module, some smbd processes stays constantly with > around 70% cpu usage sometimes 90% and dies with signal 11 > according the log message , i also tried enable debug but didn't > show anything helpful or maybe i wasn't able to understand the > entire log, is there anybody here experiencing something similar ? > > Best Regards > Dante F. B. Colò > > INTERNAL ERROR: Signal 11 in pid 59865 (4.0.21) > Please read the Trouble-Shooting section of the Samba HOWTO > [2014/10/10 08:33:08.955295, 0] > =============================================================== > [2014/10/10 08:33:08.955326, 0] PANIC (pid 59865): internal error > [2014/10/10 08:33:08.957939, 0] BACKTRACE: 7 stack frames: > #0 0x802b5a921 <log_stack_trace+0x21> at > /usr/local/lib/libsmbconf.so.0 > #1 0x802b5a708 <smb_panic_s3+0x98> at > /usr/local/lib/libsmbconf.so.0 > #2 0x80146ef25 <smb_panic+0x35> at > /usr/local/lib/libsamba-util.so.0 > #3 0x80146f50a <smb_panic+0x61a> at > /usr/local/lib/libsamba-util.so.0 > #4 0x80146eee3 <fault_setup+0x73> at > /usr/local/lib/libsamba-util.so.0 > #5 0x8044ce40b <_swapcontext+0x15b> at /lib/libthr.so.3 > #6 0x8044cdff3 <sigaction+0x343> at /lib/libthr.so.3 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > A shot in the dark, but do you have use sendfile = yes in your > /usr/local/etc/smb4.conf file? > If so, set it to no or comment out the line and restart samba. > > > Regards, > Johan >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?543AADF2.3040204>