From owner-freebsd-hackers@freebsd.org Sun Jan 5 17:29:53 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D69F81DE111 for ; Sun, 5 Jan 2020 17:29:53 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47rQcw5j5sz4WlF for ; Sun, 5 Jan 2020 17:29:52 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x734.google.com with SMTP id x1so37646580qkl.12 for ; Sun, 05 Jan 2020 09:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cvS13Z0GjRpksdMVNPlSWfTfEiQ9ZjEHsxPiFgSDEko=; b=IIbMDbCNL79AsQMoDVXnbNEanMlOGt39BRTxOSxUlwbhj1kYUtuQx6BDn/KZZ2+ViK 4maYwJnnqyt+od27yKA4SzJ0lUqA31i4FmmKVVjqGll/uJCf4IlJPe/M+Yl10jL7ztjt 8pGL3igZx4F7EzzTLbe3SBYG6de9C1PMYBFH4cubm5VnawT5eTRkguvbRnlmpYTgkCHI qHGRF3wugYMb8QhUD8+AsY7PO6OZnP4A4ItU6KyY+/356jz/6ta7/DinUCMVqqUjM6PZ sDgrMzaOgMfHDcIxK+KWuKo+vedKhVZ2kExwlBXxy06ohmg6e73xJXZ/StvIvAwOSFCf bxsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cvS13Z0GjRpksdMVNPlSWfTfEiQ9ZjEHsxPiFgSDEko=; b=cpelfjq5LuJLp0IOiujCNx04P79ma3QpwG3KiGhtkXYCddYetLEsioqSiE0upnXaAx e6Q+BgdOj6UAWG8Mi9u9pkLT47yctnVtFrcSmMuYYCQveV7+YzLiFdn3/HpUCjKwtl4t hrKJ7XwHNQfoHUpN99/OnRzfvQu2hKRpOYditoKPO/HVyLgec9zdjbBMXqNHVp2+8NHE RsTUbpVBZiYyPbeD28Yz8+yx7FP6NRivu2MEAvr1MLcVwXbQjyQbxAz6eu6wv+ol6Jud QPTBQlpwynuSi5TZh4IOzG5SFyugWwsj9QKzrKRVO0hi+f7aiSCLmu1bYKZy/7vzNlar /iUQ== X-Gm-Message-State: APjAAAXjzROZXr3xApX8BLThm9C1D+eDsKCZCHoTBMRQzOFGeiGqfMc3 vzSIfAgr/E/fghG/znZwTkxDpL4me3Sz5ETfNhidWOUx X-Google-Smtp-Source: APXvYqygi0U2gDb2vVhRKHA84EHN0wweoZygN7394OinNssg5IloasXxmQhR+sci5v33565rLuj1XWRQfzaA3ZJJACI= X-Received: by 2002:a37:a80a:: with SMTP id r10mr74058543qke.240.1578245391655; Sun, 05 Jan 2020 09:29:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 5 Jan 2020 11:29:39 -0600 Message-ID: Subject: Re: nvme/nvd - trim seems to be one block a time To: Wojciech Puchar Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 47rQcw5j5sz4WlF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=IIbMDbCN; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::734) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.66 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.66)[ip: (-9.25), ipnet: 2607:f8b0::/32(-2.13), asn: 15169(-1.86), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2020 17:29:53 -0000 On Sun, Jan 5, 2020, 10:26 AM Wojciech Puchar wrote: > on NVD devices trim seems to be send one block a time when used with UFS > this stall whole system when deleting many gigabytes. > > what am i doing wrong? > That's what it does. Upgrade to 12 and you can use the trim collapsing code in UFS to reduce the number of trims, and/or use the nda device which does trim collapsing as well (ufs can only do contiguous ranges, nda does non continuous as supported in the underlying protocol). Current has even more fixes to nda. Warner FreeBSD puchar.net 11.3-STABLE > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >