1) Fill up the memory of the AIX OS.
S. - create a large number of variables, each loaded with the contents
of a file. Alternatively, use the rmss command to reduce available
memory.
2) - Fill up disk space
s. Append multiple files to a single location (filename) on disk.
3) Heavy disk activity
s. continuous reading and writing of a file to disk. Could two scripts
read and write simulateously?
4) Heavy memory activity
- as task 1 - either variables or rmss command. Load and unload into
memory.
5) Fill memory to force paging.
As task 1 & 4
Could any replies pse be posted to me email account as well as the ng.
Thanks in anticipation.
Sent via Deja.com http://www.deja.com/
Before you buy.
Heck why not just install an Oracle database their dammed good memory disk
cpu hogs.
Johne <n43...@my-deja.com> wrote in message
news:8tuavh$4eg$1...@nnrp1.deja.com...
----- snip -------
#include <stdio.h>
#include <malloc.h>
#include <sys/shm.h>
#define BYTES 10000000
main()
{
char *walk, *p, *q;
char *save_addr;
while ( 1 )
{
p = (char *)malloc( BYTES ); /* ask for BYTES */
save_addr=p; /* save starting addr */
q = p + BYTES; /* get end-point */
while ( p != q ) *p++ = 1; /* walk through,
initializing every byte */
sleep ( 10 ); /* hold for X seconds */
/* release the memory to the OS */
disclaim ( save_addr, BYTES, ZERO_MEM);
/*free(save_addr);*/
printf("done\n\n");
} /* do it again */
}
------- end snip -----
As for getting past the file cache during I/O loading, just use raw I/O.
Build several LV's in your target configuration ( stripe, stripe + mirror,
RAID5, RAID0, etc... ), then use dd with a fairly large block size to
saturate the LV's with reads. You can even use the same for writing to
LV's. Also, there's no need to initialize the LV's with any data, as dd
will read the disk blocks regardless of whether there's anything there.
Just for grins:
Yes, Oracle likes to use as much resources ( memory/disk ) as you allow
it. And, Yes, Oracle can be a major CPU consumer too. However, in many
cases, if it weren't for Oracle and the folks who purchase and utilize it,
there would be no need for large SMP systems with loads of capacity ( note
that I did use the phrase "in many cases" ). So, don't bite the gift horse.
"Rodney Clark" <Rodney...@zonnet.nl> wrote in message
news:MAyM5.29955$tL4.372779@zonnet-reader-1...
> 4) Heavy memory activity
> - as task 1 - either variables or rmss command. Load and unload into
> memory.
To limit memory, rmss is the way to go.
To hog available memory and induce paging, try
Juan Quintala's mmap program.
http://carpanta.dc.fi.udc.es/~quintela/memtest/
Regards,
Nick Dronen