[NCLUG] Testing memory pressure
dann frazier
dannf at dannf.org
Thu Jan 13 09:46:54 MST 2011
On Thu, Jan 13, 2011 at 09:19:34AM -0700, Myles Bostwick wrote:
> It's probably not quite what you're looking for, but you could mount a
> ramfs that eats up most of your memory.
Just remember that, due to lazy allocation, you need to *touch* the
memory, not just allocate it. e.g. fill the ramdisk or write to all
the memory you malloc.
I'm sure you can find various 'memhog' programs online for testing
such things.
-dann
>
> -Myles
>
> <insert fancy signature here>
>
> On Thu, Jan 13, 2011 at 8:23 AM, <grant at amadensor.com> wrote:
> > I want to test how an application reacts to being starved for resources.
> >
> > I have some pretty good ideas about how to create an artificial I/O load
> > and a CPU load. Does anyone have a good idea for how to (from something
> > quick like shell or PERL) use a lot of memory so that things start to swap
> > out?
> >
> >
> > I am trying to get real numbers about how different database plans (hash,
> > loops, scans) react to different resource limitations. I have seen it
> > over the years on different hardware, but I want real numbers for he same
> > hardware when you have to share.
> >
> > _______________________________________________
> > NCLUG mailing list NCLUG at lists.nclug.org
> >
> > To unsubscribe, subscribe, or modify
> > your settings, go to:
> > http://lists.nclug.org/mailman/listinfo/nclug
> >
> _______________________________________________
> NCLUG mailing list NCLUG at lists.nclug.org
>
> To unsubscribe, subscribe, or modify
> your settings, go to:
> http://lists.nclug.org/mailman/listinfo/nclug
>
More information about the NCLUG
mailing list