| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/ |
| H A D | zpool_trim_multiple_pools.ksh | 27 # Verify 'zpool trim -a' works correctly with multiple pools 31 # 2. Start a trim on all pools using 'zpool trim -a'. 32 # 3. Verify that the trim is started on all pools. 33 # 4. Wait for the trim to complete. 34 # 5. Verify that the trim is complete on all pools. 35 # 6. Start a trim on all pools using 'zpool trim -w -a'. 36 # 7. Verify that the trim is complete on all pools. 38 # 9. Verify that the trim status is correct for each option. 53 log_assert "Verify if trim '-a' works on multiple pools correctly." 74 # Start a trim on all pools using 'zpool trim -a'. [all …]
|
| H A D | zpool_trim_rate.ksh | 28 # Verify 'zpool trim -r <rate>' rate limiting. 32 # 2. Manually TRIM the pool with rate limiting. 33 # 3. Verify the TRIM can be suspended. 34 # 4. Restart the TRIM and verify the rate is preserved. 37 # set be to fairly large since we are capping the maximum trim rate. The 38 # actual trim rate can be lower. The critical thing is that the trim rate 61 log_must zpool trim -r 200M $TESTPOOL 64 log_must zpool trim -s $TESTPOOL 69 log_must zpool trim $TESTPOOL 72 log_must zpool trim -s $TESTPOOL [all …]
|
| H A D | zpool_trim_partial.ksh | 28 # Verify 'zpool trim' partial trim. 33 # 3. Run 'zpool trim' to only TRIM allocated space maps. 35 # 5. Run 'zpool trim' to perform a full TRIM. 62 # Minimum trim size is decreased to verify all trim sizes. 87 # Perform a partial trim, we expect it to skip most of the new metaslabs 90 log_must zpool trim $TESTPOOL 101 # Perform a full trim, all metaslabs will be trimmed the pool vdev 104 log_must zpool trim $TESTPOOL 115 log_pass "Manual 'zpool trim' successfully partially trimmed pool"
|
| H A D | zpool_trim_start_and_cancel_neg.ksh | 28 # Cancelling and suspending trim doesn't work if not all specified vdevs 35 # 4. Try to re-trim the currently trimming disk. 46 log_must zpool trim -r 1 $TESTPOOL $DISK1 49 log_fail "Trim did not start" 51 log_mustnot zpool trim -c $TESTPOOL $DISK2 52 log_mustnot zpool trim -c $TESTPOOL $DISK2 $DISK3 54 log_mustnot zpool trim -s $TESTPOOL $DISK2 55 log_mustnot zpool trim -s $TESTPOOL $DISK2 $DISK3 57 log_mustnot zpool trim $TESTPOOL $DISK1 59 log_pass "Nonsensical trim operations fail"
|
| H A D | zpool_trim_start_and_cancel_pos.ksh | 28 # Starting and stopping a trim works. 39 log_must zpool trim -r 1 "$TESTPOOL" 42 log_fail "TRIM did not start" 44 log_must zpool trim -c $TESTPOOL 47 log_fail "TRIM did not stop" 49 log_pass "TRIM start + cancel works"
|
| H A D | zpool_trim_secure.ksh | 28 # Verify 'zpool trim -d' secure trim. 32 # 2. Run 'zpool trim -d' to securely TRIM allocated space maps. 58 log_mustnot zpool trim -d $TESTPOOL 60 log_pass "Manual 'zpool trim -d' failed as expected for file vdevs"
|
| H A D | zpool_trim_rate_neg.ksh | 28 # A badly formed parameter passed to 'zpool trim -r' should 32 # 1. Create an array containing bad 'zpool trim -r' parameters. 44 log_assert "Execute 'zpool trim -r' using invalid parameters." 50 log_mustnot zpool trim -r ${args[i]} $TESTPOOL 54 log_pass "Invalid parameters to 'zpool trim -r' fail as expected."
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/trim/ |
| H A D | trim_integrity.ksh | 24 . $STF_SUITE/tests/functional/trim/trim.kshlib 25 . $STF_SUITE/tests/functional/trim/trim.cfg 29 # Verify manual trim pool data integrity. 32 # 1. Create a pool on sparse file vdevs to trim. 34 # 3. Manually trim the pool. 35 # 4. Verify trim IOs of the expected type were issued for the pool. 36 # 5. Verify data integrity of the pool after trim. 41 log_assert "Run 'zpool trim' and verify pool data integrity" 56 # Minimum trim size is decreased to verify all trim sizes. 72 dir="/$TESTPOOL/trim-$((RANDOM % 5))" [all …]
|
| H A D | autotrim_trim_integrity.ksh | 24 . $STF_SUITE/tests/functional/trim/trim.kshlib 25 . $STF_SUITE/tests/functional/trim/trim.cfg 29 # Verify automatic trim and manual trim coexist correctly. 32 # 1. Create a pool on sparse file vdevs to trim. 36 # 4. Verify trim IOs of the expected type were issued for the pool. 37 # 5. Verify data integrity of the pool after trim. 42 log_assert "Set 'autotrim=on', run 'zpool trim' and verify pool data integrity" 57 # Minimum trim size is decreased to verify all trim sizes. 81 log_must timeout 120 zpool trim -w $TESTPOOL 93 log_pass "Automatic trim and manual trim coexistence successfully validated"
|
| H A D | trim_config.ksh | 24 . $STF_SUITE/tests/functional/trim/trim.kshlib 25 . $STF_SUITE/tests/functional/trim/trim.cfg 32 # 1. Create a pool on file vdevs to trim. 35 # 4. Remove all files making it possible to trim the entire pool. 36 # 5. Manually trim the pool. 37 # 6. Wait for trim to issue trim IOs for the free blocks. 43 log_assert "Run 'zpool trim' verify pool disks were trimmed" 59 # Minimum trim size is decreased to verify all trim sizes. 101 # Remove the file, issue trim, verify the vdevs are now sparse. 103 log_must timeout 120 zpool trim -w $TESTPOOL [all …]
|
| H A D | autotrim_integrity.ksh | 24 . $STF_SUITE/tests/functional/trim/trim.kshlib 25 . $STF_SUITE/tests/functional/trim/trim.cfg 29 # Verify automatic trim pool data integrity. 32 # 1. Create a pool on sparse file vdevs to trim. 35 # 4. Verify trim IOs of the expected type were issued for the pool. 36 # 5. Verify data integrity of the pool after trim. 56 # Minimum trim size is decreased to verify all trim sizes. 88 log_pass "Automatic trim successfully validated"
|
| H A D | autotrim_config.ksh | 24 . $STF_SUITE/tests/functional/trim/trim.kshlib 25 . $STF_SUITE/tests/functional/trim/trim.cfg 32 # 1. Create a pool on file vdevs to trim. 36 # 5. Remove all files making it possible to trim the entire pool. 37 # 6. Wait for auto trim to issue trim IOs for the free blocks. 59 # Minimum trim size is decreased to verify all trim sizes. 102 # Remove the file, wait for trim, verify the vdevs are now sparse. 111 log_pass "Auto trim successfully shrunk vdevs"
|
| H A D | trim_l2arc.ksh | 19 . $STF_SUITE/tests/functional/trim/trim.kshlib 20 . $STF_SUITE/tests/functional/trim/trim.cfg 28 # 2. Create a pool on file vdevs to trim. 33 # 6. Verify trim IOs of the expected type were issued for the pool. 42 log_assert "Trim of L2ARC succeeds." 109 log_pass "Trim of L2ARC succeeds."
|
| H A D | trim.kshlib | 30 # 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"
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/ |
| H A D | zpool_wait_trim_flag.ksh | 23 # -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. 59 log_bkgrnd zpool trim -r 1M -w $TESTPOOL "$VDEV1" "$VDEV2" 61 log_bkgrnd zpool trim -r 1M -w $TESTPOOL "$VDEV3" 70 # Cancel trim of one of disks started by trim12, make sure neither 73 log_must zpool trim -c $TESTPOOL "$VDEV1" [all …]
|
| H A D | zpool_wait_trim_cancel.ksh | 23 # '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 75 do_test "zpool trim -c $TESTPOOL $FILE_VDEV" 76 do_test "zpool trim -s $TESTPOOL $FILE_VDEV" 78 log_pass "'zpool wait' works when trim is stopped before completion."
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev_trim.c | 42 * TRIM is a feature which is used to notify a SSD that some previously 48 * There are two supported TRIM methods; manual and automatic. 50 * Manual TRIM: 52 * A manual TRIM is initiated by running the 'zpool trim' command. A single 54 * managing that vdev TRIM process. This involves iterating over all the 56 * required TRIM I/Os. 61 * the TRIM are regularly written to the pool. This allows the TRIM to be 64 * Automatic TRIM: 66 * An automatic TRIM is enabled by setting the 'autotrim' pool property 69 * core TRIM process as a manual TRIM, but with a few key differences. [all …]
|
| /freebsd/sys/contrib/openzfs/man/man8/ |
| H A D | zpool-trim.8 | 36 .Nm zpool-trim 37 .Nd initiate TRIM of free space in ZFS storage pool 40 .Cm trim 48 Initiates an immediate on-demand TRIM operation for all of the free space in 54 A manual on-demand TRIM operation can be initiated irrespective of the 62 Perform TRIM operation on 66 Causes a secure TRIM to be initiated. 67 When performing a secure TRIM, the 71 Controls the rate at which the TRIM operation progresses. 73 option TRIM is executed as quickly as possible. [all …]
|
| /freebsd/contrib/libucl/tests/basic/ |
| H A D | load.in | 4 .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 D | socionext,uniphier-efuse.yaml | 44 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 D | trim8.sh | 30 # 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 D | trim2.sh | 31 # 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 D | text_test.cpp | 257 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/usr.sbin/trim/ |
| H A D | trim.8 | 30 .Nm trim 51 It is mostly relevant for a storage that implements trim (like flash based, 58 to trim populated UFS, and to the 59 .Xr zpool-trim 8 60 command to trim existing ZFS pool. 89 of the region to trim or its offset 127 in low level support for ATA TRIM or SCSI UNMAP commands. 168 .Xr zpool-trim 8
|
| /freebsd/sys/contrib/openzfs/etc/systemd/system/ |
| H A D | zfs-trim@.service.in | 2 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'
|