From: Andrea Arcangeli <andrea@suse.de>
To: Richard Ems <Richard.Ems@mtg-marinetechnik.de>
Cc: linux-kernel@vger.kernel.org, Hubert Mantel <mantel@suse.de>
Subject: Re: [PROBLEM] Badness in out_of_memory (Plain)
Date: Fri, 7 Jan 2005 00:41:04 +0100 [thread overview]
Message-ID: <20050106234104.GX4597@dualathlon.random> (raw)
In-Reply-To: <41DD7A96.5060006@mtg-marinetechnik.de>
On Thu, Jan 06, 2005 at 06:51:18PM +0100, Richard Ems wrote:
> this! Do you know a memory eater program other than starting lots of
> mozilla's, OpenOffices's, etc.?
You can run a few of this.
#include <stdio.h>
#include <time.h>
main()
{
char *p[160];
int i, j;
int count;
for (j=0; j<160; j++)
{
p[j] = (char *) malloc(10000000);
}
for (count=0;count<2000;count++)
{
for (j=0; j<160; j++)
{
for (i=0; i<10000000; i+= 4096)
p[j][i] = 0;
}
pause();
}
}
next prev parent reply other threads:[~2005-01-06 23:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-06 17:03 [PROBLEM] Badness in out_of_memory Richard Ems
2005-01-06 17:30 ` Andrea Arcangeli
2005-01-06 17:51 ` [PROBLEM] Badness in out_of_memory (Plain) Richard Ems
2005-01-06 23:41 ` Andrea Arcangeli [this message]
2005-01-07 15:18 ` Richard Ems
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=20050106234104.GX4597@dualathlon.random \
--to=andrea@suse.de \
--cc=Richard.Ems@mtg-marinetechnik.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mantel@suse.de \
/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