From owner-freebsd-questions@FreeBSD.ORG Sun Oct 12 16:38:28 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E836D7E4 for ; Sun, 12 Oct 2014 16:38:28 +0000 (UTC) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A31E0B83 for ; Sun, 12 Oct 2014 16:38:28 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id r5so4081204qcx.35 for ; Sun, 12 Oct 2014 09:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=GdYWtPyMlBHdykx3eNc8R0/Ivcr/TUhvb2zI+F1wMMk=; b=AU+VnWDcQ3LAaqwwccQ5mWP1jOHPWE5kzoaiOqXAp7PVKXYlpcwcfegOiPsT9cXGz9 6CJzpnjQjKm3Z/1IJgozu+2t63vQVGVJRrsovLwivfM6Y7wwbZU5WejAwMqDn3/eFeQu hcV3ANVHkjuGAF1QFha4ePh+EGt2cfemwdxC1Glq/kKlnnHZzDd+tDhXGMAianCQ7STV nOWiI6nBwQmYrWNIZiaqCzSyuTht/fysVk3u6q/NMohenYEpAAJmA8DyDxUYC67CtEym xTfvE/MJzpB3xlH0YC3Zw+Y/eXsBYBKwQEXtjz2XOE4fN4zed6pVRRV1IlnDKOYX5LOj NbNg== X-Received: by 10.224.37.134 with SMTP id x6mr32428597qad.39.1413131907015; Sun, 12 Oct 2014 09:38:27 -0700 (PDT) Received: from [10.0.1.13] ([191.181.214.203]) by mx.google.com with ESMTPSA id z8sm10388502qaj.43.2014.10.12.09.38.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Oct 2014 09:38:26 -0700 (PDT) Message-ID: <543AADF2.3040204@gmail.com> Date: Sun, 12 Oct 2014 13:36:02 -0300 From: =?UTF-8?B?IkRhbnRlIEYuIEIuIENvbMOyIg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.8.1 MIME-Version: 1.0 To: Johan Hendriks Subject: Re: Samba smbd processes overload and panic References: <5438477D.7090406@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2014 16:38:29 -0000 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ò" > > 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 at > /usr/local/lib/libsmbconf.so.0 > #1 0x802b5a708 at > /usr/local/lib/libsmbconf.so.0 > #2 0x80146ef25 at > /usr/local/lib/libsamba-util.so.0 > #3 0x80146f50a at > /usr/local/lib/libsamba-util.so.0 > #4 0x80146eee3 at > /usr/local/lib/libsamba-util.so.0 > #5 0x8044ce40b <_swapcontext+0x15b> at /lib/libthr.so.3 > #6 0x8044cdff3 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 >