Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/fs/tmpfs Lower the maximum number of vnodes whil...
details: https://anonhg.NetBSD.org/src/rev/ae5f9741bb66
branches: trunk
changeset: 584178:ae5f9741bb66
user: jmmv <jmmv%NetBSD.org@localhost>
date: Sat Sep 10 19:39:18 2005 +0000
description:
Lower the maximum number of vnodes while running this test. Otherwise,
it won't ever succeed with default values.
diffstat:
regress/sys/fs/tmpfs/t_vnode_leak | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 3a0cc04d424f -r ae5f9741bb66 regress/sys/fs/tmpfs/t_vnode_leak
--- a/regress/sys/fs/tmpfs/t_vnode_leak Sat Sep 10 19:26:18 2005 +0000
+++ b/regress/sys/fs/tmpfs/t_vnode_leak Sat Sep 10 19:39:18 2005 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: t_vnode_leak,v 1.1 2005/09/10 19:20:51 jmmv Exp $
+# $NetBSD: t_vnode_leak,v 1.2 2005/09/10 19:39:18 jmmv Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -44,14 +44,17 @@
#
test_run() {
- tries=$(($(sysctl kern.maxvnodes | awk '{ print $3; }') * 2))
+ oldvnodes=$(sysctl kern.maxvnodes | awk '{ print $3; }')
+ sysctl -w kern.maxvnodes=2000 >/dev/null || die
test_name "vnodes are properly reclaimed"
- test_mount -o -s$(((${tries} + 2) * 4096))
- for f in $(jot ${tries}); do
+ test_mount -o -s$(((4000 + 2) * 4096))
+ for f in $(jot 4000); do
mkdir ${f}
done
test_unmount
+
+ sysctl -w kern.maxvnodes=${oldvnodes} >/dev/null || die
}
. ./h_funcs.subr
Home |
Main Index |
Thread Index |
Old Index