From: Roger Larsson <roger.larsson@norran.net> (by way of Roger Larsson <roger.larsson@norran.net>)
To: list linux-kernel <linux-kernel@vger.kernel.org>, linux-mm@kvack.org
Subject: New VM Testcase (2.4.18pre7 SWAPS) (2.4.17-rmap12b OK)
Date: Mon, 4 Feb 2002 23:24:11 +0100 [thread overview]
Message-ID: <200202042227.g14MRFN12329@maile.telia.com> (raw)
[-- 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
next reply other threads:[~2002-02-04 22:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-04 22:24 Roger Larsson [this message]
2002-02-04 22:35 ` Stephan von Krawczynski
2002-02-05 0:36 ` Ed Tomlinson
2002-02-05 23:15 ` Retest: " Roger Larsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202042227.g14MRFN12329@maile.telia.com \
--to=roger.larsson@norran.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox