From nobody Fri Sep 27 12:45:41 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XFVYz6kHKz5Xy7Y for ; Fri, 27 Sep 2024 12:45:43 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs2.fjl.org.uk (bs2.fjl.org.uk [84.45.41.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "bs2.fjl.org.uk", Issuer "bs2.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XFVYz1nHlz4rmD for ; Fri, 27 Sep 2024 12:45:43 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 84.45.41.208 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk; dmarc=none Received: from roundcube.fjl.uk ([192.168.0.2]) by bs2.fjl.org.uk (8.16.1/8.16.1) with ESMTP id 48RCjfAP053870 for ; Fri, 27 Sep 2024 12:45:41 GMT (envelope-from freebsd-doc@fjl.co.uk) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Date: Fri, 27 Sep 2024 13:45:41 +0100 From: Frank Leonhardt To: questions@freebsd.org Subject: Re: Samba hogs syslogd and fails In-Reply-To: References: Message-ID: <981a22c7936ef27ae5e43b42d9c27956@fjl.co.uk> X-Sender: freebsd-doc@fjl.co.uk Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-2.58 / 15.00]; NEURAL_HAM_SHORT(-0.90)[-0.900]; NEURAL_HAM_MEDIUM(-0.81)[-0.808]; NEURAL_HAM_LONG(-0.67)[-0.670]; R_SPF_ALLOW(-0.20)[+ip4:84.45.41.208:c]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; ASN(0.00)[asn:25577, ipnet:84.45.0.0/17, country:GB]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[fjl.co.uk]; RCPT_COUNT_ONE(0.00)[1] X-Rspamd-Queue-Id: 4XFVYz1nHlz4rmD X-Spamd-Bar: -- On 2024-09-27 12:47, Andrea Venturoli wrote: > On 9/27/24 12:38, Frank Leonhardt wrote: > >> As no one else who knows better has answered... >> ... >> If you didn't know this already, I hope it helps. > > Thanks. > I had dealt with a similar problem long ago, so, more or less, I knew, > but a refresh was useful. > > I fully understand that this will only delay the problem, not solve it. > I guess "solving" it should be a Samba problem, not an OS one, unless > there's a way to force the syslog API to stop and wait when the buffers > are exahusted. > > I'll try anyway to increase these values, but the real problem is > vfs_full_audit won't tell when this happen, so you have to know you > lost logs... and usually you don't :( Here's a crazy idea. syslogd does a DNS lookup to log the originating hostname. Try running it with the -n option to disable this if it can't resolve your hostname - DNS timeouts are a bitch. Would it be possible to clear the O_NONBLOCK flag on the syslog socket? I would have thought so but I'm not sure how (other than recompiling syslogd). -- ------ 25-Sept-24 My apologies to everyone who I appear to have ignored for the last few years. A procmail script was misfiling some replies to Questions to the wrong folder.