Home
last modified time | relevance | path

Searched full:trim (Results 1 – 25 of 863) sorted by relevance

12345678910>>...35

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_multiple_pools.ksh23 # Verify 'zpool trim -a' works correctly with multiple pools
27 # 2. Start a trim on all pools using 'zpool trim -a'.
28 # 3. Verify that the trim is started on all pools.
29 # 4. Wait for the trim to complete.
30 # 5. Verify that the trim is complete on all pools.
31 # 6. Start a trim on all pools using 'zpool trim -w -a'.
32 # 7. Verify that the trim is complete on all pools.
34 # 9. Verify that the trim status is correct for each option.
49 log_assert "Verify if trim '-a' works on multiple pools correctly."
70 # Start a trim on all pools using 'zpool trim -a'.
[all …]
H A Dzpool_trim_rate.ksh24 # Verify 'zpool trim -r <rate>' rate limiting.
28 # 2. Manually TRIM the pool with rate limiting.
29 # 3. Verify the TRIM can be suspended.
30 # 4. Restart the TRIM and verify the rate is preserved.
33 # set be to fairly large since we are capping the maximum trim rate. The
34 # actual trim rate can be lower. The critical thing is that the trim rate
57 log_must zpool trim -r 200M $TESTPOOL
60 log_must zpool trim -s $TESTPOOL
65 log_must zpool trim $TESTPOOL
68 log_must zpool trim -s $TESTPOOL
[all …]
H A Dzpool_trim_partial.ksh24 # Verify 'zpool trim' partial trim.
29 # 3. Run 'zpool trim' to only TRIM allocated space maps.
31 # 5. Run 'zpool trim' to perform a full TRIM.
34 # On FreeBSD, manual 'zpool trim' does not reclaim space on file
37 log_unsupported "Manual trim on file vdevs not supported on FreeBSD"
64 # Minimum trim size is decreased to verify all trim sizes.
89 # Perform a partial trim, we expect it to skip most of the new metaslabs
92 log_must zpool trim -w $TESTPOOL
98 # Perform a full trim, all metaslabs will be trimmed the pool vdev
102 log_must zpool trim -w $TESTPOOL
[all …]
H A Dzpool_trim_start_and_cancel_neg.ksh24 # Cancelling and suspending trim doesn't work if not all specified vdevs
31 # 4. Try to re-trim the currently trimming disk.
42 log_must zpool trim -r 1 $TESTPOOL $DISK1
45 log_fail "Trim did not start"
47 log_mustnot zpool trim -c $TESTPOOL $DISK2
48 log_mustnot zpool trim -c $TESTPOOL $DISK2 $DISK3
50 log_mustnot zpool trim -s $TESTPOOL $DISK2
51 log_mustnot zpool trim -s $TESTPOOL $DISK2 $DISK3
53 log_mustnot zpool trim $TESTPOOL $DISK1
55 log_pass "Nonsensical trim operations fail"
H A Dzpool_trim_start_and_cancel_pos.ksh24 # Starting and stopping a trim works.
35 log_must zpool trim -r 1 "$TESTPOOL"
38 log_fail "TRIM did not start"
40 log_must zpool trim -c $TESTPOOL
43 log_fail "TRIM did not stop"
45 log_pass "TRIM start + cancel works"
H A Dzpool_trim_secure.ksh24 # Verify 'zpool trim -d' secure trim.
28 # 2. Run 'zpool trim -d' to securely TRIM allocated space maps.
54 log_mustnot zpool trim -d $TESTPOOL
56 log_pass "Manual 'zpool trim -d' failed as expected for file vdevs"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/
H A Dzpool_wait_trim_flag.ksh23 # -w flag for 'zpool trim' waits for trimming to complete for all and only those
28 # 2. Start trimming vdevs 1 and 2 with one invocation of 'zpool trim -w'
29 # 3. Start trimming vdev 3 with a second invocation of 'zpool trim -w'
30 # 4. Cancel the trim of vdev 1. Check that neither waiting process exits.
31 # 5. Cancel the trim of vdev 3. Check that only the second waiting process
33 # 6. Cancel the trim of vdev 2. Check that the first waiting process exits.
55 log_bkgrnd zpool trim -r 1M -w $TESTPOOL "$VDEV1" "$VDEV2"
57 log_bkgrnd zpool trim -r 1M -w $TESTPOOL "$VDEV3"
66 # Cancel trim of one of disks started by trim12, make sure neither
69 log_must zpool trim -c $TESTPOOL "$VDEV1"
[all …]
H A Dzpool_wait_trim_cancel.ksh23 # 'zpool wait' works when a trim operation is canceled.
32 # 5. Cancel the trim.
34 # 7. Repeat 3-7, except pause the trim instead of canceling it.
48 log_must zpool trim -r 1M $TESTPOOL "$FILE_VDEV"
50 log_bkgrnd zpool wait -t trim $TESTPOOL
71 do_test "zpool trim -c $TESTPOOL $FILE_VDEV"
72 do_test "zpool trim -s $TESTPOOL $FILE_VDEV"
74 log_pass "'zpool wait' works when trim is stopped before completion."
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/trim/
H A Dtrim_integrity.ksh20 . $STF_SUITE/tests/functional/trim/trim.kshlib
21 . $STF_SUITE/tests/functional/trim/trim.cfg
25 # Verify manual trim pool data integrity.
28 # 1. Create a pool on sparse file vdevs to trim.
30 # 3. Manually trim the pool.
31 # 4. Verify trim IOs of the expected type were issued for the pool.
32 # 5. Verify data integrity of the pool after trim.
37 log_assert "Run 'zpool trim' and verify pool data integrity"
52 # Minimum trim size is decreased to verify all trim sizes.
68 dir="/$TESTPOOL/trim-$((RANDOM % 5))"
[all …]
H A Dtrim_config.ksh20 . $STF_SUITE/tests/functional/trim/trim.kshlib
21 . $STF_SUITE/tests/functional/trim/trim.cfg
28 # 1. Create a pool on file vdevs to trim.
31 # 4. Remove all files making it possible to trim the entire pool.
32 # 5. Manually trim the pool.
33 # 6. Wait for trim to issue trim IOs for the free blocks.
39 # On FreeBSD, manual trim does not reclaim space on file vdevs stored
42 log_unsupported "Manual trim on file vdevs not supported on FreeBSD"
45 log_assert "Run 'zpool trim' verify pool disks were trimmed"
61 # Minimum trim size is decreased to verify all trim sizes.
[all …]
H A Dautotrim_trim_integrity.ksh20 . $STF_SUITE/tests/functional/trim/trim.kshlib
21 . $STF_SUITE/tests/functional/trim/trim.cfg
25 # Verify automatic trim and manual trim coexist correctly.
28 # 1. Create a pool on sparse file vdevs to trim.
32 # 4. Verify trim IOs of the expected type were issued for the pool.
33 # 5. Verify data integrity of the pool after trim.
38 log_assert "Set 'autotrim=on', run 'zpool trim' and verify pool data integrity"
53 # Minimum trim size is decreased to verify all trim sizes.
77 log_must timeout 120 zpool trim -w $TESTPOOL
89 log_pass "Automatic trim and manual trim coexistence successfully validated"
H A Dautotrim_integrity.ksh20 . $STF_SUITE/tests/functional/trim/trim.kshlib
21 . $STF_SUITE/tests/functional/trim/trim.cfg
25 # Verify automatic trim pool data integrity.
28 # 1. Create a pool on sparse file vdevs to trim.
31 # 4. Verify trim IOs of the expected type were issued for the pool.
32 # 5. Verify data integrity of the pool after trim.
52 # Minimum trim size is decreased to verify all trim sizes.
84 log_pass "Automatic trim successfully validated"
H A Dautotrim_config.ksh20 . $STF_SUITE/tests/functional/trim/trim.kshlib
21 . $STF_SUITE/tests/functional/trim/trim.cfg
28 # 1. Create a pool on file vdevs to trim.
32 # 5. Remove all files making it possible to trim the entire pool.
33 # 6. Wait for auto trim to issue trim IOs for the free blocks.
61 # Minimum trim size is decreased to verify all trim sizes.
104 # Remove the file, wait for trim, verify the vdevs are now sparse.
113 log_pass "Auto trim successfully shrunk vdevs"
H A Dtrim.kshlib30 # Get the number of trim IOs issued for the pool (ind or agg).
39 # Sum the ind or agg columns of the trim request size histogram.
56 # Verify that trim IOs were send to devices in the pool.
68 log_note "Issued $ios $type trim IOs for pool $pool"
70 log_fail "Too few trim IOs issued $ios/$min_trim_ios"
75 # Run N txgs which should be enough to trim the entire pool.
88 log_fail "Exceeded trim time limit of ${timeout}s"
97 log_note "Waited for $txgs txgs, $ios $type TRIM IOs"
H A Dtrim_l2arc.ksh15 . $STF_SUITE/tests/functional/trim/trim.kshlib
16 . $STF_SUITE/tests/functional/trim/trim.cfg
24 # 2. Create a pool on file vdevs to trim.
29 # 6. Verify trim IOs of the expected type were issued for the pool.
38 log_assert "Trim of L2ARC succeeds."
108 log_pass "Trim of L2ARC succeeds."
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_trim.c32 * TRIM is a feature which is used to notify a SSD that some previously
38 * There are two supported TRIM methods; manual and automatic.
40 * Manual TRIM:
42 * A manual TRIM is initiated by running the 'zpool trim' command. A single
44 * managing that vdev TRIM process. This involves iterating over all the
46 * required TRIM I/Os.
51 * the TRIM are regularly written to the pool. This allows the TRIM to be
54 * Automatic TRIM:
56 * An automatic TRIM is enabled by setting the 'autotrim' pool property
59 * core TRIM process as a manual TRIM, but with a few key differences.
[all …]
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzpool-trim.826 .Nm zpool-trim
27 .Nd initiate TRIM of free space in ZFS storage pool
30 .Cm trim
38 Initiates an immediate on-demand TRIM operation for all of the free space in
44 A manual on-demand TRIM operation can be initiated irrespective of the
52 Perform TRIM operation on
56 Causes a secure TRIM to be initiated.
57 When performing a secure TRIM, the
61 Controls the rate at which the TRIM operation progresses.
63 option TRIM is executed as quickly as possible.
[all …]
/freebsd/contrib/libucl/tests/basic/
H A Dload.in4 .load(try=false, multiline=false, trim=false, escape=false, key="key1", target="string", priority=1…
5 .load(try=false, multiline=true, trim=false, escape=false, key="key2", target="string", priority=1)…
6 .load(try=false, multiline=true, trim=true, escape=false, key="key3", target="string", priority=1) …
7 .load(try=false, multiline=true, trim=true, escape=true, key="key4", target="string", priority=1) "…
8 .load(try=false, multiline=false, trim=true, escape=false, key="key5", target="string", priority=1)…
9 .load(try=false, multiline=false, trim=false, escape=true, key="key6", target="string", priority=1)…
10 .load(try=false, multiline=false, trim=true, escape=true, key="key7", target="string", priority=1) …
11 .load(try=false, multiline=false, trim=false, escape=false, key="key8", target="int", priority=1) "…
12 .load(try=false, multiline=false, trim=false, escape=false, key="key9", target="int", priority=4) "…
13 .load(try=true, multiline=false, trim=false, escape=false, key="key10", target="string", priority=1…
/freebsd/sys/contrib/device-tree/Bindings/nvmem/
H A Dsocionext,uniphier-efuse.yaml44 usb_rterm0: trim@54,4 {
48 usb_rterm1: trim@55,4 {
52 usb_rterm2: trim@58,4 {
56 usb_rterm3: trim@59,4 {
60 usb_sel_t0: trim@54,0 {
64 usb_sel_t1: trim@55,0 {
68 usb_sel_t2: trim@58,0 {
72 usb_sel_t3: trim@59,0 {
76 usb_hs_i0: trim@56,0 {
80 usb_hs_i2: trim
[all...]
/freebsd/tools/test/stress2/misc/
H A Dtrim8.sh30 # Demonstrate disk queue completely full of TRIM commands.
35 trim=$(df -k | sed 1d | sort -rn +3 | awk '{print $NF}' | while read mp; do
38 dumpfs $on | head -20 | grep -q trim || continue
41 [ -z "$trim" ] && exit 0
42 mp=`mount | grep "$trim " | awk '{print $3}'`
43 echo "Found TRIM on $trim mounted as $mp"
51 dd if=/dev/zero of=$mp/trim.data.$i bs=1m count=1k status=none
52 rm $mp/trim.data.$i
H A Dtrim2.sh31 # Run a test on a 128 MB malloc backed MD with UFS SU fs with option trim.
39 [ $# -eq 0 ] && trim=-t
40 newfs $trim $newfs_flags md$mdstart > /dev/null
43 echo "This is a Trim (TRIM) test." >> $mntpoint/file
54 grep -a -qm1 Trim /dev/md$mdstart && { echo "Test failed"; s=1; }
/freebsd/contrib/atf/atf-c++/detail/
H A Dtext_test.cpp257 ATF_TEST_CASE(trim);
258 ATF_TEST_CASE_HEAD(trim) in ATF_TEST_CASE_HEAD() argument
260 set_md_var("descr", "Tests the trim function"); in ATF_TEST_CASE_HEAD()
262 ATF_TEST_CASE_BODY(trim) in ATF_TEST_CASE_BODY() argument
264 using atf::text::trim; in ATF_TEST_CASE_BODY()
266 ATF_REQUIRE_EQ(trim(""), ""); in ATF_TEST_CASE_BODY()
267 ATF_REQUIRE_EQ(trim(" "), ""); in ATF_TEST_CASE_BODY()
268 ATF_REQUIRE_EQ(trim("\t"), ""); in ATF_TEST_CASE_BODY()
270 ATF_REQUIRE_EQ(trim(" foo"), "foo"); in ATF_TEST_CASE_BODY()
271 ATF_REQUIRE_EQ(trim("\t foo"), "foo"); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/thermal/
H A Drenesas,r9a09g047-tsu.yaml57 renesas,tsu-trim:
62 - description: offset of trim registers
65 calibration trim values. The offset points to the first trim register
66 (OTPTSU1TRMVAL0), with the second trim register (OTPTSU1TRMVAL1) located
87 - renesas,tsu-trim
97 renesas,tsu-trim: false
116 renesas,tsu-trim = <&sys 0x330>;
/freebsd/usr.sbin/trim/
H A Dtrim.830 .Nm trim
51 It is mostly relevant for a storage that implements trim (like flash based,
68 to trim free blocks inside populated UFS, and to the
69 .Xr zpool-trim 8
70 command to trim existing ZFS pool.
99 of the region to trim or its offset
137 in low level support for ATA TRIM or SCSI UNMAP commands.
178 .Xr zpool-trim 8
/freebsd/sys/contrib/openzfs/etc/systemd/system/
H A Dzfs-trim@.service.in2 Description=zpool trim on %i
3 Documentation=man:zpool-trim(8)
13 exec @sbindir@/zpool wait -t trim %i;\
14 else exec @sbindir@/zpool trim -w %i; fi'
15 ExecStop=-/bin/sh -c '@sbindir@/zpool trim -s %i 2>/dev/null || true'

12345678910>>...35