/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/ |
H A D | zpool_trim_rate.ksh | 27 # Verify 'zpool trim -r <rate>' rate limiting. 31 # 2. Manually TRIM the pool with rate limiting. 32 # 3. Verify the TRIM can be suspended. 33 # 4. Restart the TRIM and verify the rate is preserved. 36 # set be to fairly large since we are capping the maximum trim rate. The 37 # actual trim rate can be lower. The critical thing is that the trim rate 60 log_must zpool trim -r 200M $TESTPOOL 63 log_must zpool trim -s $TESTPOOL 68 log_must zpool trim $TESTPOOL 71 log_must zpool trim -s $TESTPOOL [all …]
|
H A D | zpool_trim_partial.ksh | 27 # Verify 'zpool trim' partial trim. 32 # 3. Run 'zpool trim' to only TRIM allocated space maps. 34 # 5. Run 'zpool trim' to perform a full TRIM. 61 # Minimum trim size is decreased to verify all trim sizes. 86 # Perform a partial trim, we expect it to skip most of the new metaslabs 89 log_must zpool trim $TESTPOOL 100 # Perform a full trim, all metaslabs will be trimmed the pool vdev 103 log_must zpool trim $TESTPOOL 114 log_pass "Manual 'zpool trim' successfully partially trimmed pool"
|
H A D | zpool_trim_start_and_cancel_neg.ksh | 27 # Cancelling and suspending trim doesn't work if not all specified vdevs 34 # 4. Try to re-trim the currently trimming disk. 45 log_must zpool trim -r 1 $TESTPOOL $DISK1 48 log_fail "Trim did not start" 50 log_mustnot zpool trim -c $TESTPOOL $DISK2 51 log_mustnot zpool trim -c $TESTPOOL $DISK2 $DISK3 53 log_mustnot zpool trim -s $TESTPOOL $DISK2 54 log_mustnot zpool trim -s $TESTPOOL $DISK2 $DISK3 56 log_mustnot zpool trim $TESTPOOL $DISK1 58 log_pass "Nonsensical trim operations fail"
|
H A D | zpool_trim_start_and_cancel_pos.ksh | 27 # Starting and stopping a trim works. 38 log_must zpool trim -r 1 "$TESTPOOL" 41 log_fail "TRIM did not start" 43 log_must zpool trim -c $TESTPOOL 46 log_fail "TRIM did not stop" 48 log_pass "TRIM start + cancel works"
|
H A D | zpool_trim_secure.ksh | 27 # Verify 'zpool trim -d' secure trim. 31 # 2. Run 'zpool trim -d' to securely TRIM allocated space maps. 57 log_mustnot zpool trim -d $TESTPOOL 59 log_pass "Manual 'zpool trim -d' failed as expected for file vdevs"
|
H A D | zpool_trim_neg.ksh | 27 # A badly formed parameter passed to 'zpool trim' should 31 # 1. Create an array containing bad 'zpool trim' parameters. 43 log_assert "Execute 'zpool trim' using invalid parameters." 49 log_mustnot zpool trim ${args[i]} $TESTPOOL 53 log_pass "Invalid parameters to 'zpool trim' fail as expected."
|
H A D | zpool_trim_rate_neg.ksh | 27 # A badly formed parameter passed to 'zpool trim -r' should 31 # 1. Create an array containing bad 'zpool trim -r' parameters. 43 log_assert "Execute 'zpool trim -r' using invalid parameters." 49 log_mustnot zpool trim -r ${args[i]} $TESTPOOL 53 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 | 23 . $STF_SUITE/tests/functional/trim/trim.kshlib 24 . $STF_SUITE/tests/functional/trim/trim.cfg 28 # Verify manual trim pool data integrity. 31 # 1. Create a pool on sparse file vdevs to trim. 33 # 3. Manually trim the pool. 34 # 4. Verify trim IOs of the expected type were issued for the pool. 35 # 5. Verify data integrity of the pool after trim. 40 log_assert "Run 'zpool trim' and verify pool data integrity" 55 # Minimum trim size is decreased to verify all trim sizes. 71 dir="/$TESTPOOL/trim-$((RANDOM % 5))" [all …]
|
H A D | autotrim_trim_integrity.ksh | 23 . $STF_SUITE/tests/functional/trim/trim.kshlib 24 . $STF_SUITE/tests/functional/trim/trim.cfg 28 # Verify automatic trim and manual trim coexist correctly. 31 # 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. 41 log_assert "Set 'autotrim=on', run 'zpool trim' and verify pool data integrity" 56 # Minimum trim size is decreased to verify all trim sizes. 80 log_must timeout 120 zpool trim -w $TESTPOOL 92 log_pass "Automatic trim and manual trim coexistence successfully validated"
|
H A D | trim_config.ksh | 23 . $STF_SUITE/tests/functional/trim/trim.kshlib 24 . $STF_SUITE/tests/functional/trim/trim.cfg 31 # 1. Create a pool on file vdevs to trim. 34 # 4. Remove all files making it possible to trim the entire pool. 35 # 5. Manually trim the pool. 36 # 6. Wait for trim to issue trim IOs for the free blocks. 42 log_assert "Run 'zpool trim' verify pool disks were trimmed" 58 # Minimum trim size is decreased to verify all trim sizes. 100 # Remove the file, issue trim, verify the vdevs are now sparse. 102 log_must timeout 120 zpool trim -w $TESTPOOL [all …]
|
H A D | autotrim_integrity.ksh | 23 . $STF_SUITE/tests/functional/trim/trim.kshlib 24 . $STF_SUITE/tests/functional/trim/trim.cfg 28 # Verify automatic trim pool data integrity. 31 # 1. Create a pool on sparse file vdevs to trim. 34 # 4. Verify trim IOs of the expected type were issued for the pool. 35 # 5. Verify data integrity of the pool after trim. 55 # Minimum trim size is decreased to verify all trim sizes. 87 log_pass "Automatic trim successfully validated"
|
H A D | autotrim_config.ksh | 23 . $STF_SUITE/tests/functional/trim/trim.kshlib 24 . $STF_SUITE/tests/functional/trim/trim.cfg 31 # 1. Create a pool on file vdevs to trim. 35 # 5. Remove all files making it possible to trim the entire pool. 36 # 6. Wait for auto trim to issue trim IOs for the free blocks. 58 # Minimum trim size is decreased to verify all trim sizes. 101 # Remove the file, wait for trim, verify the vdevs are now sparse. 110 log_pass "Auto trim successfully shrunk vdevs"
|
H A D | trim.kshlib | 29 # Get the number of trim IOs issued for the pool (ind or agg). 38 # Sum the ind or agg columns of the trim request size histogram. 55 # Verify that trim IOs were send to devices in the pool. 67 log_note "Issued $ios $type trim IOs for pool $pool" 69 log_fail "Too few trim IOs issued $ios/$min_trim_ios" 74 # Run N txgs which should be enough to trim the entire pool. 87 log_fail "Exceeded trim time limit of ${timeout}s" 96 log_note "Waited for $txgs txgs, $ios $type TRIM IOs"
|
H A D | trim_l2arc.ksh | 18 . $STF_SUITE/tests/functional/trim/trim.kshlib 19 . $STF_SUITE/tests/functional/trim/trim.cfg 27 # 2. Create a pool on file vdevs to trim. 32 # 6. Verify trim IOs of the expected type were issued for the pool. 41 log_assert "Trim of L2ARC succeeds." 108 log_pass "Trim of L2ARC succeeds."
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_trim.c | 41 * TRIM is a feature which is used to notify a SSD that some previously 47 * There are two supported TRIM methods; manual and automatic. 49 * Manual TRIM: 51 * A manual TRIM is initiated by running the 'zpool trim' command. A single 53 * managing that vdev TRIM process. This involves iterating over all the 55 * required TRIM I/Os. 60 * the TRIM are regularly written to the pool. This allows the TRIM to be 63 * Automatic TRIM: 65 * An automatic TRIM is enabled by setting the 'autotrim' pool property 68 * core TRIM process as a manual TRIM, but with a few key differences. [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/ |
H A D | zpool_wait_trim_flag.ksh | 22 # -w flag for 'zpool trim' waits for trimming to complete for all and only those 27 # 2. Start trimming vdevs 1 and 2 with one invocation of 'zpool trim -w' 28 # 3. Start trimming vdev 3 with a second invocation of 'zpool trim -w' 29 # 4. Cancel the trim of vdev 1. Check that neither waiting process exits. 30 # 5. Cancel the trim of vdev 3. Check that only the second waiting process 32 # 6. Cancel the trim of vdev 2. Check that the first waiting process exits. 58 log_bkgrnd zpool trim -r 1M -w $TESTPOOL "$VDEV1" "$VDEV2" 60 log_bkgrnd zpool trim -r 1M -w $TESTPOOL "$VDEV3" 69 # Cancel trim of one of disks started by trim12, make sure neither 72 log_must zpool trim -c $TESTPOOL "$VDEV1" [all …]
|
H A D | zpool_wait_trim_cancel.ksh | 22 # 'zpool wait' works when a trim operation is canceled. 31 # 5. Cancel the trim. 33 # 7. Repeat 3-7, except pause the trim instead of canceling it. 47 log_must zpool trim -r 1M $TESTPOOL "$FILE_VDEV" 49 log_bkgrnd zpool wait -t trim $TESTPOOL 74 do_test "zpool trim -c $TESTPOOL $FILE_VDEV" 75 do_test "zpool trim -s $TESTPOOL $FILE_VDEV" 77 log_pass "'zpool wait' works when trim is stopped before completion."
|
/freebsd/sys/contrib/openzfs/man/man8/ |
H A D | zpool-trim.8 | 34 .Nm zpool-trim 35 .Nd initiate TRIM of free space in ZFS storage pool 38 .Cm trim 46 Initiates an immediate on-demand TRIM operation for all of the free space in 52 A manual on-demand TRIM operation can be initiated irrespective of the 60 Causes a secure TRIM to be initiated. 61 When performing a secure TRIM, the 65 Controls the rate at which the TRIM operation progresses. 67 option TRIM is executed as quickly as possible. 82 .Nm zpool Cm trim [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/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'
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/ |
H A D | zvol_misc_trim.ksh | 33 # Verify we can TRIM a zvol 36 # 1. TRIM the entire zvol to remove data from older tests 40 # 5. TRIM the first 1MB and last 2MB of the 5MB block of data. 59 # By default, FreeBSD 'trim' always does a dry-run. '-f' makes 61 trimcmd='trim -f' 94 # Trim the first 1MB and also trim 2MB at offset 3MB.
|