Resurrect another of the stress tests; it kinda works, though it requires

killall-ing a few things in order to make it stop. And alas, it does seem
to eventually cause kernel hangs with 2.6.32-16. (Committing now before ext4
eats my changes and brain.)
This commit is contained in:
Steve Beattie 2010-03-10 20:56:47 -08:00
parent 140495fe64
commit 66286494a2
6 changed files with 22 additions and 19 deletions

View file

@ -1,9 +1,9 @@
BASE/change_hat {
/lib/lib*.so r,
/usr/lib/lib*.so r,
/lib/lib*.so.* r,
/lib/i[356]86/lib*.so r,
/lib/tls/lib*.*.so r,
/lib/lib*.so rm,
/usr/lib/lib*.so rm,
/lib/lib*.so.* rm,
/lib/i[356]86/lib*.so rm,
/lib/tls/lib*.*.so rm,
/lib/ld-*.so rix,
/etc/ld.so.* r,
BASE/change_hat r,

View file

@ -1,9 +1,9 @@
BASE/child {
/lib/libc-*.so r,
/lib/libc-*.so.* r,
/lib/libc-*.so rm,
/lib/libc-*.so.* rm,
/lib/ld-*.so rix,
/lib/ld-*.so.* rix,
/lib/libAA* r,
/{usr/,}lib/libAA* rm,
/etc/ld.so.* r,
BASE/child r,
/bin/ls r,

View file

@ -16,8 +16,8 @@ int main(int argc, char *argv[])
if (argc > 1)
o_file = argv[1];
// for (i=0, success=0, fail=0; i<MAX_LOOP; i++) {
for (i=0, success=0, fail=0; !i; i++) {
for (i=0, success=0, fail=0; i<MAX_LOOP; i++) {
// for (i=0, success=0, fail=0; !i; i++) {
fd = open(o_file, O_RDONLY);
if (fd != -1) {
success++;

View file

@ -1,9 +1,9 @@
BASE/open {
/lib/libc-*.so r,
/lib/libc-*.so.* r,
/lib/libc-*.so rm,
/lib/libc-*.so.* rm,
/lib/ld-*.so rix,
/lib/ld-*.so.* rix,
/lib/libAA* r,
/{usr/,}lib/libAA* rm,
/etc/ld.so.* r,
BASE/open r,
/bin/ls r,

View file

@ -11,11 +11,12 @@ BASE/sh {
/etc/termcap r,
BASE/sh r,
BASE/* rix,
/lib/libc-*.so r,
/lib/libc-*.so.* r,
/lib/libc-*.so rm,
/lib/libc-*.so.* rm,
/lib/ld-*.so rix,
/lib/ld-*.so.* rix,
/lib/** r,
/lib/** rm,
/{usr/,}/lib/libAA* rm,
/proc/meminfo r,
/usr/lib/locale/** r,
/usr/share/locale/** r,

View file

@ -4,6 +4,8 @@
${subdomain_parser} change_hat.profile child.profile open.profile
rm -f /tmp/foobar && touch /tmp/foobar
./open & ./open /tmp/foobar &
./child & ./child &
@ -12,8 +14,8 @@ ${subdomain_parser} change_hat.profile child.profile open.profile
while :
do
cat change_hat.profile | ${subdomain_parser} -r > /dev/null 2>&1 &
cat child.profile | ${subdomain_parser} -r > /dev/null 2>&1 &
cat open.profile | ${subdomain_parser} -r > /dev/null 2>&1 &
${subdomain_parser} -r change_hat.profile > /dev/null 2>&1 &
${subdomain_parser} -r child.profile > /dev/null 2>&1 &
${subdomain_parser} -r open.profile > /dev/null 2>&1 &
done &