From nobody Wed Dec 1 18:24:57 2021 X-Original-To: freebsd-stable@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 BD25F18C5D42 for ; Wed, 1 Dec 2021 18:25:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J46vV4p09z3KXL for ; Wed, 1 Dec 2021 18:25:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ua1-x929.google.com with SMTP id p37so50904777uae.8 for ; Wed, 01 Dec 2021 10:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NUjV1tmSsC8FxFsNNxlUqvAkpdp68+36svNmMW3doRM=; b=V3QCE/BWWB+xHYYl6TjhmP7SGLFvMR+LAxvSjnkw35izD3poiyj8K6aHOueZxzVb+o wZOjk0d4j84Rfnoqlbr4Tdt+1xUCERM0NoZDfnaO7C+0QiaCPZofNQYRl4KTR1JhzhaG q4LLOf63IKKEXVemE5HSsymV7jdsGLNyZW0BFUYCxgvOMuFyNVGZIu8yH5LRCS2QMJlN 378aIE9iDg4CWaZTnW7Agb6Ak552VjwR8WVFEVoZoMpRV6ciz1IM5W1ExdbJx9YfDzqE LgVE6aYtvEX01KNGB+h8Og6C+36BYC32DmKE1j04L0RkOrbrt4HwWxrSlWiiEFBcbWHH tTDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NUjV1tmSsC8FxFsNNxlUqvAkpdp68+36svNmMW3doRM=; b=r1DqYYdgQUSqZzgQPSc1aTiNDOaRbBkfeVEqUkFLdkBk4FdtMdxR7ZhgYaTRqzaZRl 9r9RZAfc+Zb9ADU4g8q2OAhiDsWMzzhzcQCJ53mwL9kQVXS5/vD26GprIDG9x7wZjv+I yI8wiNCsNViF1K9iy4XHvqkwitF2wAekPRzg22nymAtY+lWqSWBGG+81XwtAwVuchh/i v3IFqnZEBahRXStnRzGzB/SUuaGtJ7MO8fmceb8/h/asW/9yc+htT0kPlllEsxvam1v9 LzOBYf38eL1BEDOWdB7Csv55BW72DLhtgMZqO9OuaVdDCNotKoWyB+KiHaptIXXVts/B IECA== X-Gm-Message-State: AOAM532l/skMhNU27nBiDgXCVgsRo94ptEM4b//dAKkn55FgCNj1ADLs id2aJCos3tkB/TRLtBmxF19c7V7faR8MjwLD3gKC3tJBhf2M9A== X-Google-Smtp-Source: ABdhPJxGaz9VEgflI887HoqFNw1ZxKn21ktHOTf5tK7YNkvF0yMkoaGjAhOvIfCyRGkemI+y3C9X3gKEtxowjDKmDxs= X-Received: by 2002:ab0:6f47:: with SMTP id r7mr9624222uat.85.1638383110088; Wed, 01 Dec 2021 10:25:10 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Wed, 1 Dec 2021 11:24:57 -0700 Message-ID: Subject: Re: ZFS deadlocks triggered by HDD timeouts To: Alan Somers Cc: FreeBSD Content-Type: multipart/alternative; boundary="0000000000004878e205d219cb42" X-Rspamd-Queue-Id: 4J46vV4p09z3KXL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --0000000000004878e205d219cb42 Content-Type: text/plain; charset="UTF-8" On Wed, Dec 1, 2021, 11:16 AM Alan Somers wrote: > On a stable/13 build from 16-Sep-2021 I see frequent ZFS deadlocks > triggered by HDD timeouts. The timeouts are probably caused by > genuine hardware faults, but they didn't lead to deadlocks in > 12.2-RELEASE or 13.0-RELEASE. Unfortunately I don't have much > additional information. ZFS's stack traces aren't very informative, > and dmesg doesn't show anything besides the usual information about > the disk timeout. I don't see anything obviously related in the > commit history for that time range, either. > > Has anybody else observed this phenomenon? Or does anybody have a > good way to deliberately inject timeouts? CAM makes it easy enough to > inject an error, but not a timeout. If it did, then I could bisect > the problem. As it is I can only reproduce it on production servers. > What SIM? Timeouts are tricky because they have many sources, some of which are nonlocal... Warner > --0000000000004878e205d219cb42--