From: Shane Nay <shane@minirl.com>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: "Dr S.M. Huen" <smh1008@cus.cam.ac.uk>,
Sean Hunter <sean@dev.sportingbet.com>,
Xavier Bestel <xavier.bestel@free.fr>,
lkml <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: VM Report was:Re: Break 2.4 VM in five easy steps
Date: Thu, 7 Jun 2001 16:29:17 -0700 [thread overview]
Message-ID: <0106071629171E.32519@compiler> (raw)
In-Reply-To: <Pine.LNX.4.21.0106071722450.1156-100000@freak.distro.conectiva>
In-Reply-To: <Pine.LNX.4.21.0106071722450.1156-100000@freak.distro.conectiva>
(VM report at Marcelo Tosatti's request. He has mentioned that rather than
complaining about the VM that people mention what there experiences were. I
have tried to do so in the way that he asked.)
> 1) Describe what you're running. (your workload)
A lot of daemons, all on a private network so there is no throughput load on
them. About 13 rxvt's, freeamp actively playing music at all times, xemacs
with 25 active buffers, a few instances of vi, opera, no "desktop env", just
windowmaker. (Though I have a few KDE2 apps open, and one or two GTK based
apps open, so lots of library code swapping in and out I imagine) Now what
I've noticed lately is this, with 2.4.2 my machine would lock quite
frequently when I was compiling code and had other apps that were allocing
memory. With 2.4.5 I haven't had that behaviour, but I've been much lighter
on my machine. (I was doing full toolchain builds with 2.4.2 when I had the
real problems) But processes were still running when the machine would
lock..., like the mp3 player was still playing I noticed one time. With
2.4.5 (not -ac) I haven't had any deadlocks, but the system seems very
sluggish at acute moments . While doing absolutely nothing processor
intensive (I've been loading up top and ps'ing with regularity when this
happens, looking for kswapd going crazy), when I switch between workspaces
the refresh is much more sluggish on occasion, like I can watch windows
appear. Almost like a micro freeze really.
(AMD T-Bird 1.333Mhz 256MB-DDR)
> 2) Describe what you're feeling. (eg "interactivity is crap when I run
> this or that thing", etc)
Freeing memory takes *forever*, but I think that's a function of how I'm
allocing in this polygon rendering routine I'm working on. Like literally
sucks up vast numbers of cycles and makes picogui totally unusable. But I
think this is unrelated to the kernel..., I think that's just because I
haven't implemented re-use in memory structures for the polygon routine.
(It's malloc/freeing massive numbers of small chunks of memory rather than
doing it's own memory management, probably related to glibc memory
organization)
Here's a vmstat line after a 8 days of uptime and before contrived mem tests:
procs memory swap io system
cpu
r b w swpd free buff cache si so bi bo in cs us sy
id
1 0 0 0 3056 7856 121872 0 0 7 4 37 16 1 0
40
> If we need more info than that I'll request in private.
>
> Also send this reports to the linux-mm list, so other VM hackers can also
> get those reports and we avoid traffic on lk.
> By performance you mean interactivity or throughput?
Interactivity. I don't have any throughput needs to speak of.
I just ran a barage of tests on my machine, and the smallest it would ever
make the cache was 16M, it would prefer to kill processes rather than make
the cache smaller than that.
Contrived stressor program: (pseudo code)
fork(); fork(); fork(); fork(); //16 total processes
for (i=0;i<n;i++) {
ptr=malloc(1M)
while(++m<ptrsize) ptr[m]='b';
sleep(2);
}
I would change n such that the total amount of memory was less than the
amount of cache plus free memory. Running this put the entire system into
chaos in short order. After it had killed off only one of the contrived
memory hungry processes and at least two others (MP3 player and opera), the
machine was slugish..., very slow to respond to any key input. It stayed in
this near freeze state for about 20 seconds, after that it started to speed
up to user input gradually. (Probably swapping code from disk into cache or
something like that) It took about 5-10 minutes to come back "up to speed".
> Just do what I described above.
Done :).
Thanks,
Shane Nay.
next prev parent reply other threads:[~2001-06-07 23:29 UTC|newest]
Thread overview: 106+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-05 22:19 Break 2.4 VM in five easy steps Derek Glidden
2001-06-05 23:38 ` Jeffrey W. Baker
2001-06-06 1:42 ` Russell Leighton
2001-06-06 7:14 ` Sean Hunter
2001-06-06 7:47 ` Jonathan Morton
2001-06-06 2:16 ` Andrew Morton
2001-06-06 3:19 ` Derek Glidden
2001-06-06 8:19 ` Xavier Bestel
2001-06-06 8:54 ` Sean Hunter
2001-06-06 9:16 ` Xavier Bestel
2001-06-06 9:25 ` Sean Hunter
2001-06-06 10:04 ` Jonathan Morton
2001-06-06 9:57 ` Dr S.M. Huen
2001-06-06 10:06 ` DBs (ML)
2001-06-06 10:08 ` Vivek Dasmohapatra
2001-06-06 10:19 ` Lauri Tischler
2001-06-06 10:22 ` Sean Hunter
2001-06-06 10:48 ` Alexander Viro
2001-06-06 16:58 ` dean gaudet
2001-06-06 17:10 ` Remi Turk
2001-06-06 22:44 ` Kai Henningsen
2001-06-09 7:17 ` Rik van Riel
2001-06-06 16:47 ` dean gaudet
2001-06-06 17:17 ` Kurt Roeckx
2001-06-06 18:35 ` Dr S.M. Huen
2001-06-06 18:40 ` Mark Salisbury
2001-06-06 19:11 ` android
2001-06-07 0:27 ` Mike A. Harris
2001-06-07 0:20 ` Mike A. Harris
2001-06-09 8:16 ` Rik van Riel
2001-06-09 8:57 ` Mike A. Harris
2001-06-07 21:31 ` Shane Nay
2001-06-07 20:00 ` Marcelo Tosatti
2001-06-07 21:55 ` Shane Nay
2001-06-07 20:29 ` Marcelo Tosatti
2001-06-07 23:29 ` Shane Nay [this message]
2001-06-08 1:18 ` VM Report was:Re: " Jonathan Morton
2001-06-08 12:50 ` Mike Galbraith
2001-06-08 14:19 ` Tobias Ringstrom
2001-06-08 15:51 ` John Stoffel
2001-06-08 17:01 ` Mike Galbraith
2001-06-08 17:43 ` John Stoffel
2001-06-08 17:35 ` Marcelo Tosatti
2001-06-08 20:58 ` John Stoffel
2001-06-08 20:04 ` Marcelo Tosatti
2001-06-08 23:44 ` Jonathan Morton
2001-06-09 2:36 ` Andrew Morton
2001-06-09 6:33 ` Mark Hahn
2001-06-09 3:43 ` Mike Galbraith
2001-06-09 4:05 ` Jonathan Morton
2001-06-09 5:09 ` Mike Galbraith
2001-06-09 5:07 ` Mike Galbraith
2001-06-08 18:30 ` Mike Galbraith
2001-06-09 12:31 ` Zlatko Calusic
2001-06-09 3:34 ` Rik van Riel
2001-06-08 16:51 ` Mike Galbraith
2001-06-08 19:09 ` Tobias Ringstrom
2001-06-09 4:36 ` Mike Galbraith
2001-06-06 11:16 ` Daniel Phillips
2001-06-06 15:28 ` Richard Gooch
2001-06-06 15:42 ` Christian Bornträger
2001-06-06 15:57 ` Requirement: swap = RAM x 2.5 ?? Jeff Garzik
2001-06-06 16:12 ` Richard Gooch
2001-06-06 16:15 ` Jeff Garzik
2001-06-06 16:19 ` Richard Gooch
2001-06-06 16:53 ` Mike Galbraith
2001-06-06 17:05 ` Greg Hennessy
2001-06-06 18:42 ` Eric W. Biederman
2001-06-07 1:29 ` Jan Harkes
2001-06-06 17:14 ` Break 2.4 VM in five easy steps Ben Greear
2001-06-06 12:07 ` Jonathan Morton
2001-06-06 13:58 ` Gerhard Mack
2001-06-08 4:56 ` C. Martins
2001-06-06 14:41 ` Derek Glidden
2001-06-06 20:29 ` José Luis Domingo López
2001-06-06 14:16 ` Disconnect
[not found] ` <3B1DEAC7.43DEFA1C@idb.hist.no>
2001-06-06 14:51 ` Derek Glidden
2001-06-06 21:34 ` Alan Cox
2001-06-09 8:07 ` Rik van Riel
2001-06-07 7:23 ` Helge Hafting
2001-06-07 16:56 ` Eric W. Biederman
2001-06-07 20:24 ` José Luis Domingo López
2001-06-06 4:03 ` Jeffrey W. Baker
2001-06-06 13:32 ` Eric W. Biederman
2001-06-06 14:41 ` Marc Heckmann
2001-06-06 14:51 ` Hugh Dickins
2001-06-06 13:08 ` Eric W. Biederman
2001-06-06 16:48 ` Jeffrey W. Baker
[not found] ` <m2lmn61ceb.fsf@sympatico.ca>
2001-06-06 14:37 ` Derek Glidden
2001-06-07 0:34 ` Mike A. Harris
2001-06-07 3:13 ` Miles Lane
2001-06-07 15:49 ` Derek Glidden
2001-06-07 19:06 ` Miles Lane
2001-06-09 5:57 ` Mike A. Harris
2001-06-06 18:59 ` Mike Galbraith
2001-06-06 19:39 ` Derek Glidden
2001-06-06 20:47 ` Linus Torvalds
2001-06-07 7:42 ` Eric W. Biederman
2001-06-07 8:11 ` Linus Torvalds
2001-06-07 8:54 ` Eric W. Biederman
2001-06-06 21:39 ` android
2001-06-06 22:08 ` Jonathan Morton
2001-06-06 22:27 ` android
2001-06-06 22:33 ` Antoine
2001-06-06 22:38 ` Robert Love
2001-06-06 22:40 ` Jonathan Morton
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=0106071629171E.32519@compiler \
--to=shane@minirl.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=marcelo@conectiva.com.br \
--cc=sean@dev.sportingbet.com \
--cc=smh1008@cus.cam.ac.uk \
--cc=xavier.bestel@free.fr \
/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