From owner-freebsd-hackers@freebsd.org Sun Dec 2 03:41:49 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6274130E8D0 for ; Sun, 2 Dec 2018 03:41:48 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C42D8160A for ; Sun, 2 Dec 2018 03:41:48 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x834.google.com with SMTP id z16so10307621qtq.4 for ; Sat, 01 Dec 2018 19:41:48 -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=7Pmx2QEjL3Q1dP2vjh1EZqJR1gh+HZ7ttfWDe15TAOY=; b=whT8Gc+hYrfjNxKFPQmyD+otVTrvP9p7fox7i3Xt091mR3I1B71vmm7YDqprzLyg7w dWjJ0/hbIqFNre+TsKbJdZHoK20JIdfA3ott50iUPw65kMoDWJfhnLvuiV8m0qf5mc4u IIKlDEMZX4shqpX/Tm3e5GnAty5rtDy5N/jZLhYe8S7jTjO2n+pDXlAlfSsUDhF9V0fo xCu21R0u+gp1Vt7f0Gtm8gVDHIiWUe6nPkpxi/TKO9afOkxYhYXzgJ1a0aV92y+mfy4O QY27hYVL+5Zsc5F8xarmvsDRMaSZvTw+1uXvH6daZdxSaUixeleS/7Qgj20Ot+PWw+ca WL+Q== 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=7Pmx2QEjL3Q1dP2vjh1EZqJR1gh+HZ7ttfWDe15TAOY=; b=G/26hPe91uhcCxaQIjSykQphVZbfmQ1LTldFyJEvpQzVyTx/5t0FEnYHnnLRD/m8f9 ExifZ0pUf4+AgiGh6KpJJ+XU7AsNPc5VQVlAxEojUL4YrMexA9qDUuehV4CubXF3EcoJ 20JGIo1YDkUwUhIvqgBQjk4IdScSK/C0xAB7FyY59exmagjGe96V5hEi+g8D4K+WgKnt 2GfGxqOqsse1erC3npY40jCZnesn2E2rzCxoaXbKMexbvw/dTUfjT+ngWQxnLfA2ifBQ PyCkNweJAXpB8aQMJBArN72HmdV6PltQ4p/iCIA9ZojR4nZDB1q+z1GYD4i3EtfYxXKy fIbQ== X-Gm-Message-State: AA+aEWYU9otJKVtBApQYe4GRB1GY3s2hxaSziuLmI4HnPW+Ny+BRi6Ii NI/d3qIHU3gkfSHFFa0VAST57L5IHHnDD1x8OGbOExQb X-Google-Smtp-Source: AFSGD/Wudfdi9EbSCDiBM/8Kcjeo7InZdPPor5Bi1zRqXdlpSvRW3dXF8/vaoHKcM3QsX2sZJJ+y3TtBH2+wBzh59Fk= X-Received: by 2002:aed:3881:: with SMTP id k1mr10522744qte.345.1543722107608; Sat, 01 Dec 2018 19:41:47 -0800 (PST) MIME-Version: 1.0 References: <7e69211c-6ffb-6155-b17a-a845c0b3586d@grosbein.net> <20181201.093153.893601099798031027.ish@amail.plala.or.jp> <1c7139bd-258c-e7d2-2572-052da3803b3b@freebsd.org> <20181201.202332.546134930481017424.ish@amail.plala.or.jp> <12404.1543699424@critter.freebsd.dk> <20181201222424.0ae8abfd@gumby.homeunix.com> In-Reply-To: <20181201222424.0ae8abfd@gumby.homeunix.com> From: Warner Losh Date: Sat, 1 Dec 2018 20:41:36 -0700 Message-ID: Subject: Re: How to use trim command ?,Re: How to use trim command ? To: RW Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 2C42D8160A X-Spamd-Result: default: False [-3.69 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.968,0]; NEURAL_HAM_LONG(-1.00)[-0.995,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]; RCVD_IN_DNSWL_NONE(0.00)[4.3.8.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]; MX_GOOD(-0.01)[ALT1.aspmx.l.google.com,aspmx.l.google.com,ALT2.aspmx.l.google.com]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[googlemail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-1.72)[ip: (-5.50), ipnet: 2607:f8b0::/32(-1.69), asn: 15169(-1.30), country: US(-0.09)]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org 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, 02 Dec 2018 03:41:49 -0000 On Sat, Dec 1, 2018, 3:27 PM RW via freebsd-hackers < freebsd-hackers@freebsd.org wrote: > On Sat, 01 Dec 2018 21:23:44 +0000 > Poul-Henning Kamp wrote: > > > > Why would you run 'fsck_ffs -E' in cron anyway ? > > > > If the file-system is has TRIM enabled, it would be a no-op, unless > > there are bugs in the fs ? > > There's a school of thought that trimming in real-time, after file > deletion, slows down I/O on the device. Some people advocate > turning-off trim support in the file-system and trimming all the > unused space in one go from cron when the system is likely to be idle. > That's an interesting idea. One that would be hard to do on FreeBSD. I don't know whether there's any truth in it. It sounds unlikely with > modern drives. > I'm working on a better way to meter the TRIMs to the drive fast enough to make progress, but slow enough to not affect other operations. I think the locking will be simpler than trimd, and the feedback loop will keep trims in budget. There are still drives out there which need it. The low end is still... under resourced... Warner _______________________________________________ > 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" >