From owner-freebsd-stable@freebsd.org Mon Aug 1 18:49:32 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C71E8BAB04D for ; Mon, 1 Aug 2016 18:49:32 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-ua0-x22e.google.com (mail-ua0-x22e.google.com [IPv6:2607:f8b0:400c:c08::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E8151177 for ; Mon, 1 Aug 2016 18:49:32 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: by mail-ua0-x22e.google.com with SMTP id k90so112772815uak.0 for ; Mon, 01 Aug 2016 11:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m19Bj8O2dAyCtiHxneqUYBcn01O6AtppRNGJaq15GzY=; b=T1lIC7ZDvA9gQbGVP0TKVl7iMgwqafjgrh7mmfc8RlVc6M6zoOqxWiEiPYR1HxgCR8 f36Uzs7dPwKCcm9OS2QNYK/tp5gWvqcVkpSX+KcYydjzTZ1IO742M2IxXU2ef36VxOHr LcRiW3RkJoiC802jy+l6CxLNsUrel+sOqNbY//1zZ2YMiGlHS5d2xMMx+Uj/A3Du/G5n 1xYh3AzfhaLYhgb7XYbD6Oo3226SC29zEy5tYj6fU4cyVojlsgH9Tv7Jy1SN6qrnyUnH 0Gbzo70NygWzzW2YlabcxgDS8QrKNkS965yzuSJHXcy+67cRtieFGFBpm5JyhuE7BkUo MfGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m19Bj8O2dAyCtiHxneqUYBcn01O6AtppRNGJaq15GzY=; b=UOUo1ZHuAKrtOjOWQNMfKMOCRDiCIMJ5r1R8Ib/+LSrSXQ/7iF4NAJPEXJlJ3FAE9c WZ1T6ZZqTr0Jhe8Zf75D3k4sXgn9+ucQxc42+C69ur4Fq5UNYErCjQ4yE31jOfX+ufCm lQUaTo7WQUVTdPFK+5x8UIP+NhYg3lutglUoD3tD99ivcuowhaT8kbMGQEiPBxMm9iQm QatY9x2gFVNxCC3zEqHfx/m/pWiqN6B9fb3U/syNZ9cSTl10hmJaNvcvjvNaVHPOMYfo eoN/LHSZAyzv/NW8qZm1XuKxbLICzTKQKBJt7jaYqjrfyDK1CTLMJGZ0WQ9angt52LaS 2dIQ== X-Gm-Message-State: AEkooutvs+mrBkV36Lm7wLbHSfvrAr5Th7RCHuO5QOKI+CCXAQMfkpFk9iG1J4AjpRHgCs3AHxv/U/809SvP2g== X-Received: by 10.159.33.182 with SMTP id 51mr28766587uac.104.1470077371502; Mon, 01 Aug 2016 11:49:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.4.229 with HTTP; Mon, 1 Aug 2016 11:49:31 -0700 (PDT) In-Reply-To: <4996AF96-76BA-47F1-B328-D4FE7AC777EE@sarenet.es> References: <4996AF96-76BA-47F1-B328-D4FE7AC777EE@sarenet.es> From: Jim Harris Date: Mon, 1 Aug 2016 11:49:31 -0700 Message-ID: Subject: Re: Intel NVMe troubles? To: Borja Marcos Cc: FreeBSD-STABLE Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2016 18:49:32 -0000 On Mon, Aug 1, 2016 at 7:38 AM, Borja Marcos wrote: > > > On 29 Jul 2016, at 17:44, Jim Harris wrote: > > > > > > > > On Fri, Jul 29, 2016 at 1:10 AM, Borja Marcos wrote= : > > > > > On 28 Jul 2016, at 19:25, Jim Harris wrote: > > > > > > Yes, you should worry. > > > > > > Normally we could use the dump_debug sysctls to help debug this - the= se > > > sysctls will dump the NVMe I/O submission and completion queues. But > in > > > this case the LBA data is in the payload, not the NVMe submission > entries, > > > so dump_debug will not help as much as dumping the NVMe DSM payload > > > directly. > > > > > > Could you try the attached patch and send output after recreating you= r > pool? > > > > Just in case the evil anti-spam ate my answer, sent the results to your > Gmail account. > > > > > > Thanks Borja. > > > > It looks like all of the TRIM commands are formatted properly. The > failures do not happen until about 10 seconds after the last TRIM to each > drive was submitted, and immediately before TRIMs start to the next drive= , > so I'm assuming the failures are for the the last few TRIM commands but > cannot say for sure. Could you apply patch v2 (attached) which will dump > the TRIM payload contents inline with the failure messages? > > Sure, this is the complete /var/log/messages starting with the system > boot. Before booting I destroyed the pool > so that you could capture what happens when booting, zpool create, etc. > > Remember that the drives are in LBA format #3 (4 KB blocks). As far as I > know that=E2=80=99s preferred to the old 512 byte blocks. > > Thank you very much and sorry about the belated response. Hi Borja, Thanks for the additional testing. This has all of the detail that I need for now. -Jim