From owner-freebsd-hackers@freebsd.org Sun Jan 5 19:22:16 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 DF5821E3987 for ; Sun, 5 Jan 2020 19:22:16 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 47rT6b5wKrz4fW7 for ; Sun, 5 Jan 2020 19:22:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qv1-xf2d.google.com with SMTP id t6so18249828qvs.5 for ; Sun, 05 Jan 2020 11:22:15 -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=rY92otVIibCZrf8mN2Lg2MkBAKR2JQ47+D8jGxeHkpI=; b=kddF9p77zwwL9nbf74R28mIk6CMcTsh0glNdIjKKbKehvYKw2I8MyzAFm2b9x56IhC 4oJEMsOToE8frtPqQcaflhJrSDmcYD3QKo07KtXGGd9K7M5bGe5Tvyq1/IGE84yCpDd4 LEBoIJOQROj71lmoVIeoyAxHW7OgE2+PUORMChPlZBTjO8YiWfvziaL4/emAAY6qQ6tz tZIVn4ojJVdLoW1A79dVydCWrcLq1wSR5WiA3tlnrV/9KWH0y0eRFtHrV/oxyjwVvMw/ 621TAZTugw8KIwKZZOJYZ3OReNuacJBCJke/fMgvvRKtfqu5joxAasHd4pjJWwZEQhQu VRrQ== 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=rY92otVIibCZrf8mN2Lg2MkBAKR2JQ47+D8jGxeHkpI=; b=Ttm5kFV1mi0qRqRklFb4OlKmov2UVlV2OidmlqVDZ6crlHHTYtE5z8QPUVgLA1fE4N cXctcro0okSMmQu0x5QBXbgFTvsTx6E2j5a9Y5WcYiskMSn36OtQKUSRbyC8w1JsneQF sJsQsRbEY7jHwljtyBnDgzlwl8GUgv40MtVDm1jdfhVYg04+vtEiPxf8Hwb/+xoNNO72 CWuT2fULqf2J/rmYcADKjcRsvi7/c2BJPvo5y4MEaWGEXmFBre6AIffJ7FTxBFgyMxm4 hjYhf6FrtRyHGE5cszLgiREfHyjkuGTD0BSMsFexdOyJVYFiVqvqk4dW2j6Ice1r5I2a rt1Q== X-Gm-Message-State: APjAAAXidik9dw//vkJtClbJXiMv5DuCRXBA72cIW0tkVt+Mc+xz739c C7CfZHNFSkfGiSdIx+cMVWXfratBUFYTY9F0QsikNlXt X-Google-Smtp-Source: APXvYqyu9Kw4L3skCcTKMKorz+CuVrJZZ8IwArvyw+u9YD4ipfDm3KadEEk11bhjZhzkhIyUyajuCPZUAFxiz/uFZ2k= X-Received: by 2002:a05:6214:1428:: with SMTP id o8mr78069610qvx.87.1578252129286; Sun, 05 Jan 2020 11:22:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 5 Jan 2020 13:21:57 -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: 47rT6b5wKrz4fW7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=kddF9p77; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::f2d) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.72 / 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]; 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]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.72)[ip: (-4.56), 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 19:22:16 -0000 On Sun, Jan 5, 2020, 12:11 PM Wojciech Puchar wrote: > > > > 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, > so there is a final reason to upgrade. > i will - after using it on my laptop for some time. > > For now i just disabled trim for this 2 UFS partitions. Not a problem > really as it's just 1/8 of SSD space, the rest are virtual machines that > do trim properly or unused space. > NDA is easy to back port to 11, I think. The UFS trim collapsing is a bit harder, but doable. If you hit big issues with the upgrade, there may be other options. but try the upgrade first. Warner >