home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
378.lha
/
MemEater_v1.0
/
MemEater1
/
MemEater.doc
< prev
next >
Wrap
Text File
|
1990-05-02
|
2KB
|
40 lines
Program: MemEater V1.0 (Public Domain)
Date: 03/27/90
Author: Mark R. Rinfret (source available)
MemEater was written for software developers (or the curious) who wish to
test application behavior under low memory conditions or to determine if an
application will run correctly on a given system configuration. It can be
started from the CLI or the WorkBench. When run from the CLI, it will
detach and run as an independent process.
MemEater presents a small window with six numeric gadgets. The contents of
the top two gadgets in the left-hand column (Limits) may be altered by the
user to establish the maximum amount of CHIP and FAST memory that is to be
available (specified in "K"). The right-hand column of gadgets displays
the actual amount of memory available in each category. The bottom gadget
in each row reports the total allowed and total available memory. Upon
startup, the program defaults to the total available memory in each class.
MemEater is driven by a 1/2 second interval timer. On each interval, it
checks to see if more memory is available than is allowed. If so, memory
is "consumed" until requirements are met (as closely as is possible).
MemEater only controls the maximum amount of memory available. It does
nothing to prevent memory from going below the levels set by the user (this
is the whole object of the program - to generate low memory conditions).
If any application terminates or releases memory and causes these
thresholds to be exceeded, MemEater gobbles up the excess memory. To
regain all of the memory in a given class, just enter a very large number
in the appropriate CHIP or FAST limit gadget. MemEater will give back all
the memory it has consumed in that class. Terminating MemEater by clicking
its window close box will also release all memory.
I decided to use units of "K" vs. bytes since we normally deal with those
units when defining system limits. Feel free to change that, if you like.
I might add a "Units" gadget to the next revision (if any).
MemEater is public domain. I place no copyrights or restrictions on its
use.