mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [Bug 890] New: performance regression compared to 2.4.20 under tight RAM conditions
Date: Tue, 08 Jul 2003 07:11:19 -0700	[thread overview]
Message-ID: <40390000.1057673479@[10.10.2.4]> (raw)

http://bugme.osdl.org/show_bug.cgi?id=890

           Summary: performance regression compared to 2.4.20 under tight
                    RAM conditions
    Kernel Version: 2.5.73
            Status: NEW
          Severity: normal
             Owner: akpm@digeo.com
         Submitter: idan@idanso.dyndns.org


Distribution:
debian unstable

Hardware Environment:
Pentium III 700Mhz
I815E Based motherboard
64MB SDRAM 133
WD 6GB harddrive, UDMA2

Software Environment:
GCC 3.3-2
glibc 2.3.1-16
Swap partition 123MB
Swap file(on ext3 fs) of about 96MB

Problem Description:

For quite a time I had the feeling that the 2.5.x kernels perform worse than
2.4.x on my box, especially when having to do aggrassive swapping(Switching
between relatively heavyweight(ram wise) applications)

I considered this feeling subjective at first, however, eventually I took the
time to write some benchmarking code and compare results.

The code(attached) is pretty trivial, it forks, mallocs and initialize a very
large bulk of memory(I used total RAM*1.5), in order to force the system to
swap, and simulate two processes fighting on RAM space when there is no enough
of that scared resource:-)

After both processes end their work, the parent process reports on the total
running time.

The code was compiled using gcc 3.3 with -O2 parameter.

I've done 20 iterations on each of the three kernels:
Stock debian 2.4.20 (kernel-source-2.4.20-5)
Stock vanilla 2.5.73 with preempt
Stock vanilla 2.5.73 without preempt

Result are at follows:
2.4.20            : Mean - 14.1732 Max - 16.0875 Min - 12.9977 
2.5.73            : Mean - 17.1692 Max - 21.8161 Min - 15.4827
2.5.73(w/o prempt): Mean - 16.9054 Max - 19.0174 Min - 15.4137

As can be seen, the differences are quite significant, about three seconds on
average, which I believe may be related to the increased swapping time I have
encountered.


             reply	other threads:[~2003-07-08 13:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-08 14:11 Martin J. Bligh [this message]
2003-07-08 18:20 ` Andrew Morton
2003-07-09 13:57   ` [Bug 890] New: performance regression compared to 2.4.20 undertight " Idan Sofer

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='40390000.1057673479@[10.10.2.4]' \
    --to=mbligh@aracnet.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®