Re: OOM test program

From: Erik Andersen (andersen@xmission.com)
Date: Fri Mar 31 2000 - 12:17:05 EST


On Fri Mar 31, 2000 at 09:52:55AM -0500, j_clifton@aerosimulation.com wrote:
Content-Description: "cc:Mail Note Part"
> Attached is a trivial(stupid?) program I wrote to test available memory for a
> military aircraft simulator. I had to abandon it because it causes
> BadThingsToHappen (TM) if you run multiple copies to exhaust memory. I tried it
> under 2.2.12 (RedHat 6.1) yesterday and it killed Telnet and locked up the
> console. It also caused havoc on 2.0.36.
> Now I just use /proc/<pid>/maps to get the data required.
>

Why don't you use sysinfo(2) to get the amount of free memory?

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:29 EST