linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* New VM Testcase (2.4.18pre7 SWAPS) (2.4.17-rmap12b OK)
@ 2002-02-04 22:24 Roger Larsson
  2002-02-04 22:35 ` Stephan von Krawczynski
  2002-02-05  0:36 ` Ed Tomlinson
  0 siblings, 2 replies; 4+ messages in thread
From: Roger Larsson @ 2002-02-04 22:24 UTC (permalink / raw)
  To: list linux-kernel, linux-mm

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

When examining Karlsbakk problem I got into one quite different myself.

I have a 256MB UP PII 933 MHz.
When running the included program with an option of 200
(serving 200 clients with streaming data a 10MB... on first run
it creates the data, from /dev/urandom - overkill from /dev/null is ok!)

ddteset.sh 200
[testcase initially written by Roy Sigurd Karlsbakk, he does not get
into this - but he has more RAM]

the 2.4.18pre7 goes into deep swap after awhile .
It is impossible to start a new login, et.c. finally
the dd processes begins to be OOM killed... not nice...

the 2.4.17-rmap12b handles this MUCH nicer!

/RogerL

--
Roger Larsson
Skelleftea
Sweden



[-- Attachment #2: ddtest.sh --]
[-- Type: application/x-shellscript, Size: 890 bytes --]

#!/bin/bash
MAX=100
BS=$((1024 * 2048))
COUNT=10
FPATH=/tmp

case $# in
        0)
                i=$COUNT
                ;;

        1)
                i=$1
                ;;
        *)
                printf "Error:\nSyntax: $0 [ numfiles ]\n"
                exit
                ;;
esac

if [[ $i -lt 1 ]]; then
        printf "Can't read $i files\n"
        exit
fi

if test \! -f `printf "%s/file%04d.mp0" $FPATH $i`; then
        c=$i
        echo "Writing $c files..."

        while [[ $c -gt 0 ]]; do
                file=`printf "%s/file%04d.mp0" $FPATH $c`
                touch $file
                dd if=/dev/urandom of=$file bs=$BS count=$COUNT
                c=$(( $c - 1 ))
        done
fi

printf "Reading $i files..\n"

while [[ $i -gt 0 ]]; do
        file=`printf "%s/file%04d.mp0" $FPATH $i`
        dd if=$file of=/dev/null bs=$BS &
        i=$(( $i - 1 ))
done

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-02-05 23:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-04 22:24 New VM Testcase (2.4.18pre7 SWAPS) (2.4.17-rmap12b OK) Roger Larsson
2002-02-04 22:35 ` Stephan von Krawczynski
2002-02-05  0:36 ` Ed Tomlinson
2002-02-05 23:15   ` Retest: " Roger Larsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox