From: Andrea Arcangeli <andrea@suse.de>
To: rwhron@earthlink.net
Cc: linux-kernel@vger.kernel.org, ltp-list@lists.sourceforge.net
Subject: Re: VM test on 2.4.14pre3aa2 (compared to 2.4.14pre3aa1)
Date: Mon, 29 Oct 2001 01:47:15 +0100 [thread overview]
Message-ID: <20011029014715.J1396@athlon.random> (raw)
In-Reply-To: <20011028120721.A286@earthlink.net>
In-Reply-To: <20011028120721.A286@earthlink.net>; from rwhron@earthlink.net on Sun, Oct 28, 2001 at 12:07:21PM -0500
On Sun, Oct 28, 2001 at 12:07:21PM -0500, rwhron@earthlink.net wrote:
>
> Summary: 2.4.14pre3aa2 gave oom errors not seen in 2.4.14pre3aa1.
>
> Test: Usual scripts to execute mtest01 and mmap001.
> Listen to long mp3 with mp3blaster.
>
> mtest01 -p 80 -w
> ================
>
> 2.4.14pre3aa1
>
> Averages for 10 mtest01 runs
> bytes allocated: 1246232576
> User time (seconds): 2.105
> System time (seconds): 2.773
> Elapsed (wall clock) time: 59.503
> Percent of CPU this job got: 7.80
> Major (requiring I/O) page faults: 132.8
> Minor (reclaiming a frame) faults: 305043.1
>
> 2.4.14pre3aa2
>
> Averages for 10 mtest01 runs
> bytes allocated: 1254201753
> User time (seconds): 2.211
> System time (seconds): 2.794
> Elapsed (wall clock) time: 65.176
> Percent of CPU this job got: 7.20
> Major (requiring I/O) page faults: 129.7
> Minor (reclaiming a frame) faults: 306988.9
I'm looking into optimizing this test. While it probably doesn't affect
the above numbers given the bytes allocated are quite similar, the
benchmark is not reliable, if you want to use it as benchmark you should
apply this patch first to make sure to compare apples to apples (not to
oranges). For example, without those fixes it allocates only 20mbytese
of ram here so it cannot swapout despite I use -p 80, because it
considers only the freeswap and freememory but on any real load all the
free memory will be allocated in cache most of the time.
the bench in short measure how fast we can push stuff to disk (just the
swapout, no the swapins).
Index: mtest01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/mem/mtest01/mtest01.c,v
retrieving revision 1.1
diff -u -r1.1 mtest01.c
--- mtest01.c 2001/08/27 22:15:12 1.1
+++ mtest01.c 2001/10/29 00:32:08
@@ -69,24 +69,9 @@
}
if(maxpercent) {
- unsigned long int D, C;
sysinfo(&sstats);
- maxbytes = ((float)maxpercent/100)*(sstats.totalram+sstats.totalswap) - ((sstats.totalram+sstats.totalswap)-(sstats.freeram+sstats.freeswap));
- /* Total memory needed to reach maxpercent */
- D = ((float)maxpercent/100)*(sstats.totalram+sstats.totalswap);
-
- /* Total memory already used */
- C = (sstats.totalram+sstats.totalswap)-(sstats.freeram+sstats.freeswap);
-
- /* Are we already using more than maxpercent? */
- if(C>D) {
- printf("More memory than the maximum amount you specified is already being used\n");
- exit(1);
- }
-
- /* set maxbytes to the extra amount we want to allocate */
- maxbytes = D-C;
- printf("Filling up %d%% of ram which is %lud bytes\n",maxpercent,maxbytes);
+ maxbytes = ((float)maxpercent/100)*(sstats.totalram+sstats.totalswap);
+ printf("Filling up %d of ram which is %lu bytes\n",maxpercent,maxbytes);
}
bytecount=chunksize;
For the mmap001 failures, they're due the max_mapped logic (the one that
was supposed to improve the swapout), I break the loop but I don't
consider I didn't scanned all the nr_inactive/vm_scan_ratio. they
triggers only with mmap001 because with mmap001 the lru gets filled by
mapped pages.
thanks for the feedback,
Andrea
next prev parent reply other threads:[~2001-10-29 0:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-28 17:07 VM test on 2.4.14pre3aa2 (compared to 2.4.14pre3aa1) rwhron
2001-10-29 0:47 ` Andrea Arcangeli [this message]
2001-10-29 2:45 ` Andrea Arcangeli
2001-10-29 3:29 ` Andrea Arcangeli
2001-10-29 3:57 ` 2.4.14pre3aa3 [was Re: VM test on 2.4.14pre3aa2 (compared to 2.4.14pre3aa1)] Andrea Arcangeli
2001-10-30 0:10 ` rwhron
2001-10-29 4:24 ` VM test on 2.4.14pre3aa2 (compared to 2.4.14pre3aa1) Linus Torvalds
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=20011029014715.J1396@athlon.random \
--to=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=ltp-list@lists.sourceforge.net \
--cc=rwhron@earthlink.net \
/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