All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.4.x VM problems thread
@ 2001-08-07 20:44 Igmar Palsenberg
  2001-08-07 20:55 ` Richard B. Johnson
  2001-08-08  0:24 ` Luigi Genoni
  0 siblings, 2 replies; 9+ messages in thread
From: Igmar Palsenberg @ 2001-08-07 20:44 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 252 bytes --]


Hi,

I've followed the 2.4.x VM thread stuff. Someone mentioned he will
wite a test program. Attached program kills all boxen within 1 minute,
it's not hard to see what it does.

I'm willing to test experimental stuff if needed.

	Regards,


		Igmar


[-- Attachment #2: Type: TEXT/PLAIN, Size: 496 bytes --]

#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <sys/mman.h>
#include <errno.h>

int main(int argc, char ** argv)
{
	void * tmp;
	pid_t pid;

	for (;;) {
		pid = fork();
		switch (pid) {
			case 0: break;
				tmp = mmap(0, 64 * 4096, PROT_EXEC, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
				if (tmp == MAP_FAILED)
					fprintf(stderr, "mmap() failed : %s\n", strerror(errno));
			case -1: break;
			default: break;
		}
	}

	return 0;
}

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <fa.kga80kv.1fk0mqv@ifi.uio.no>]

end of thread, other threads:[~2001-08-08 12:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-07 20:44 2.4.x VM problems thread Igmar Palsenberg
2001-08-07 20:55 ` Richard B. Johnson
2001-08-08  0:24 ` Luigi Genoni
2001-08-08  0:32   ` Mike Fedyk
2001-08-08  0:57     ` Luigi Genoni
2001-08-08  1:06       ` Luigi Genoni
2001-08-08 12:12     ` Rik van Riel
     [not found] <fa.kga80kv.1fk0mqv@ifi.uio.no>
2001-08-07 21:02 ` Ted Unangst
2001-08-07 21:23   ` Hua Zhong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.