From nobody Thu Jan 26 11:18:19 2023 X-Original-To: freebsd-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 4P2dW32NYXz3bSmv for ; Thu, 26 Jan 2023 11:18:39 +0000 (UTC) (envelope-from serejk@febras.net) Received: from prima.febras.net (prima.febras.net [62.76.193.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.febras.net", Issuer "AlphaSSL CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P2dW20sVWz4JkN for ; Thu, 26 Jan 2023 11:18:38 +0000 (UTC) (envelope-from serejk@febras.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of serejk@febras.net designates 62.76.193.23 as permitted sender) smtp.mailfrom=serejk@febras.net; dmarc=none Received: from smtpclient.apple (host.164-138-92-85.broadband.redcom.ru [164.138.92.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: serejk@febras.net) by prima.febras.net ("FEB RAS network Mail Server") with ESMTPSA id 8AFA855B902; Thu, 26 Jan 2023 21:18:20 +1000 (VLAT) From: Korolev Sergey Message-Id: <6F206B4F-4E61-4773-8122-C356E599F619@febras.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_FB5AB4E0-36E8-4E81-8F47-D7B5DEE7A584" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.14\)) Subject: Re: rsync freezes FreeBSD machine Date: Thu, 26 Jan 2023 21:18:19 +1000 In-Reply-To: Cc: freebsd-questions@freebsd.org To: Ioan Samarul References: X-Mailer: Apple Mail (2.3654.120.0.1.14) X-FEBRAS-Info: Contact e-mail: admin@febras.net X-FEBRAS-ID: 8AFA855B902.A73E8 X-FEBRAS: clean X-FEBRAS-SpamCheck: not spam, SpamAssassin (not cached, score=-12.835, required 5, ALL_TRUSTED -1.00, AWL 2.89, BAYES_00 -15.00, HTML_MESSAGE 0.00, MR_NOT_ATTRIBUTED_IP 0.20, TW_ZF 0.08) X-FEBRAS-From: serejk@febras.net X-FEBRAS-To: freebsd-questions@freebsd.org, samarul.meu@gmail.com X-Spam-Status: No X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:62.76.193.23]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:34017, ipnet:62.76.193.0/24, country:RU]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; BLOCKLISTDE_FAIL(0.00)[164.138.92.85:server fail,62.76.193.23:server fail]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[febras.net]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4P2dW20sVWz4JkN X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_FB5AB4E0-36E8-4E81-8F47-D7B5DEE7A584 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, my experience (not big, to be honest) says, that the possible reason of = that type of freeze (when nothing helps except hard reboot) is when = processes hangs in =E2=80=98zio=E2=80=99 state. Some deadlock arises = when trying to access to a very busy FS. So, maybe monitoring with = zfs-mon can help, with simultaneous =E2=80=99top=E2=80=99 monitoring in = separate console. > On 26 Jan 2023, at 20:39, Ioan Samarul wrote: >=20 > Hello to you all! >=20 > I am doing a backup for some machines (OpenBSD and Linux) to a FreeBSD > machine (13.1-RELEASE-p5) with ZFS using rsync (usually with `-avhz`). > The problem I always encounter is that if I do an rsync to FreeBSD > everything is smooth, but the other way around, after some files > copied, the FreeBSD machine hangs. I tried even using > `--bwlimit=3D5000`, but it is the same. I can't ssh, nothing. Just = hard > restart. >=20 > I tried looking in the logs but I didn't get any useful information. >=20 > Any hint? >=20 --Apple-Mail=_FB5AB4E0-36E8-4E81-8F47-D7B5DEE7A584 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello,

my = experience (not big, to be honest) says, that the possible reason of = that type of freeze (when nothing helps except hard reboot) is when = processes hangs in =E2=80=98zio=E2=80=99 state. Some deadlock arises = when trying to access to a very busy FS. So, maybe monitoring with = zfs-mon can help, with simultaneous =E2=80=99top=E2=80=99 monitoring in = separate console.

On 26 = Jan 2023, at 20:39, Ioan Samarul <samarul.meu@gmail.com> wrote:

Hello = to you all!

I am doing a backup for some = machines (OpenBSD and Linux) to a FreeBSD
machine = (13.1-RELEASE-p5) with ZFS using rsync (usually with `-avhz`).
The problem I always encounter is that if I do an rsync to = FreeBSD
everything is smooth, but the other way around, = after some files
copied, the FreeBSD machine hangs. I = tried even using
`--bwlimit=3D5000`, but it is the same. I = can't ssh, nothing. Just hard
restart.

I tried looking in the logs but I didn't get any useful = information.

Any hint?


= --Apple-Mail=_FB5AB4E0-36E8-4E81-8F47-D7B5DEE7A584--