From owner-freebsd-stable@freebsd.org Wed Oct 4 14:13:22 2017 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 DB950E3A6FF for ; Wed, 4 Oct 2017 14:13:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (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 AA976639A5 for ; Wed, 4 Oct 2017 14:13:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x231.google.com with SMTP id w94so10620518ioi.7 for ; Wed, 04 Oct 2017 07:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=tFe2wqYsb73vsaylO/JITHj3FX26IhJX2KTwl5gejOo=; b=xsMFJkmtb23us8aVAQEhaLz5xThkiQ4EHEOP6D7ZTSYgm6ljEAkLhTBn9Qra45ns/6 SVI4FQcf8BnsChNMOndHx3+x8ZEdfYqScmM4GrxB9un5QpsTARF1tvfB7JswdMSltmkM AY2qkBfL6X6MH6Qwj1VWWUN1uOTbtGlmlHAXpOGY2C3XY8LIULy5qmTkA4HK6s/plwDw 1Kk7EmnDnNrPIDX3YBwTBBRyfXShCEZ9MEUIJRg8jW4phGwQfSRZE0qKKJlrBh0Q9pOb 17V/MiS7BTijGTeSM0Nz4lew3WYVezA+i80flSJpBKbLW4c4xj/AoDt0ISkhOsngpTio N9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=tFe2wqYsb73vsaylO/JITHj3FX26IhJX2KTwl5gejOo=; b=jFAwCd1uC3fa4p13uaN8hUG/2zB9fXFNDvVulNpwelcS96ht92f9DddfvMhMYmowDD 2kCcB7+ojSzZnY6sx6wssLeIBA0MU+fn78//wb/pLIbaHs0WAwLOYC+9oFsFtUGbyLju Nq94nhHyqNfhArZxoDrNTR9kck4IvncS6flgkiHUnh1VyIVHHNpqUP4UXOO2aaTYgjeR scl2pxCCrYUZu3zP22bEQRSbVSGUta+zrejmbUuEsFFZc6PftRdxVPgiVqgrJKCeHh/1 Xer/wb4M5s2yc/mziOrlSBI++F2qjl40wiImIk1BGdONT5LTz/yCod6fiMmtLFmGrFOr S83g== X-Gm-Message-State: AMCzsaVqL8o36DDYy+roW8n2PbNEDCYpSJ9fENVre2gq2+3sVb8zsw89 K6FFPOPBeLRlXf6nSk70FmCySpKJk6XMorHiJiOyFg== X-Google-Smtp-Source: AOwi7QA76hbS5ftkMMwQnFgH92hASPtlM82eOnCD2GwCgrjp9NDv5uPZhYKULqo5XVW5Bjg2LH/QoNRyUb8mVfW/j+g= X-Received: by 10.107.135.147 with SMTP id r19mr34768505ioi.26.1507126401503; Wed, 04 Oct 2017 07:13:21 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.2.194 with HTTP; Wed, 4 Oct 2017 07:13:20 -0700 (PDT) X-Originating-IP: [192.173.66.162] In-Reply-To: <8d1471c9-7341-8892-88f7-a539fc77c45e@ze.tum.de> References: <8d1471c9-7341-8892-88f7-a539fc77c45e@ze.tum.de> From: Warner Losh Date: Wed, 4 Oct 2017 08:13:20 -0600 X-Google-Sender-Auth: 0W04PWsGYaMSpZRTmP0KXBbGeIg Message-ID: Subject: Re: nvd0 lockup while compiling ports To: Gerhard Schmidt Cc: FreeBSD-STABLE Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Oct 2017 14:13:23 -0000 On Wed, Oct 4, 2017 at 6:03 AM, Gerhard Schmidt wrote: > Hi, > > I've got a new Workstation last week with the Main HD as M2 Card. > > FreeBSD recognizes the card as nvd0 > nvd0: NVMe namespace > nvd0: 488386MB (1000215216 512 byte sectors) > > When compiling some ports (in this example VirtualBox-ose) I > experiencing lockups on the Harddisk when many files are deleted. > > here is the entries gstat reports > > dT: 1.064s w: 1.000s > L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name > 25281 769 0 0 0.0 0 0 0.0 100.0| nvd0 > 25279 769 0 0 0.0 0 0 0.0 100.0| nvd0p4 > 25279 769 0 0 0.0 0 0 0.0 100.0| ufs/USR > > here the right part of gstat -d -o > > dT: 1.003s w: 1.000s > d/s kBps ms/d o/s ms/o %busy Name > 770 24641 31965 0 0.0 100.1| nvd0 > 770 24641 31965 0 0.0 100.1| nvd0p4 > 770 24641 31965 0 0.0 100.1| ufs/USR > > the numbers under L(q) go up to about 160000 and as long as theses > operations are not finisched, no outer file operation is possible on > this filesystem. > > The number of ops/s and d/s is constant aproximatly 770. > > Is there a way to speed up delete operations or limit the queue length? > Try disabling TRIM. Warner