[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Memory issue
- Subject: [ale] Memory issue
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Mon, 13 Jun 2011 11:09:55 -0400
I'm running into a problem in 2.6.38 where the kernel is not doing what
I'm expecting it to do. I'm guessing that some things have changed and
that is what it going on.
f.open("/proc/sys/vm/panic_on_oom", std::ios::out);
f << "1";
f.close();
f.open("/proc/sys/kernel/panic", std::ios::out);
f << "10";
f.close();
I want the kernel to panic on out of memory. I then want it to wait 10s
before doing a reboot.
This program will consume all memory and make the box unresponsive
#!/usr/bin/perl
my @mem = ()
while(1) {
push @mem, "########################";
}
It does not take long to fill up 1G of space. There is NO swap on this
device and never will be.
Chris