Skip to content

Commit 81638c9

Browse files
authored
ZTS: Update zfs_share_concurrent_shares.ksh
Occasionally an out of memory error is hit by this test case when mounting the filesystems. Try and reduce the likelihood of this occurring by reducing the thread count from 100 to 50. It also has the advantage of slightly speeding up the test. cannot mount 'testpool/testfs3/79': Cannot allocate memory filesystem successfully created, but not mounted Reviewed-by: George Melikov <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #11283
1 parent d1d4769 commit 81638c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/zfs-tests/tests/functional/cli_root/zfs_share/zfs_share_concurrent_shares.ksh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#
3030
# DESCRIPTION:
3131
# Verify that 'zfs set sharenfs=on', 'zfs share', and 'zfs unshare' can
32-
# run concurrently. The test creates 300 filesystem and 300 threads.
32+
# run concurrently. The test creates 50 filesystem and 50 threads.
3333
# Each thread will run through the test strategy in parallel.
3434
#
3535
# STRATEGY:
@@ -47,7 +47,7 @@ verify_runnable "global"
4747
function cleanup
4848
{
4949
wait
50-
for fs in $(seq 0 100)
50+
for fs in $(seq 0 50)
5151
do
5252
log_must zfs set sharenfs=off $TESTPOOL/$TESTFS1/$fs
5353
log_must zfs set sharenfs=off $TESTPOOL/$TESTFS2/$fs
@@ -79,7 +79,7 @@ function cleanup
7979

8080
function create_filesystems
8181
{
82-
for fs in $(seq 0 100)
82+
for fs in $(seq 0 50)
8383
do
8484
log_must zfs create -p $TESTPOOL/$TESTFS1/$fs
8585
log_must zfs create -p $TESTPOOL/$TESTFS2/$fs
@@ -137,7 +137,7 @@ log_onexit cleanup
137137
create_filesystems
138138

139139
child_pids=()
140-
for fs in $(seq 0 100)
140+
for fs in $(seq 0 50)
141141
do
142142
test_share $TESTPOOL/$TESTFS1/$fs &
143143
child_pids+=($!)
@@ -158,7 +158,7 @@ log_note "Verify 'zfs share -a' succeeds."
158158
# Unshare each of the file systems.
159159
#
160160
child_pids=()
161-
for fs in $(seq 0 100)
161+
for fs in $(seq 0 50)
162162
do
163163
unshare_fs $TESTPOOL/$TESTFS1/$fs &
164164
child_pids+=($!)
@@ -181,7 +181,7 @@ log_must zfs share -a
181181
#
182182
unset __ZFS_POOL_EXCLUDE
183183

184-
for fs in $(seq 0 100)
184+
for fs in $(seq 0 50)
185185
do
186186
is_shared $TESTPOOL/$TESTFS1/$fs || \
187187
log_fail "File system $TESTPOOL/$TESTFS1/$fs is not shared"

0 commit comments

Comments
 (0)