Solaris & Linux memory stress test?

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Solaris & Linux memory stress test?
# 1  
Old 07-20-2009
Solaris & Linux memory stress test?

I'm looking for a script or some other application that will use up a lot of memory on a Solaris or Linux server, in order to test a monitoring application. So far I have found a script that's good for CPU usage but it does nothing for memory. I have also tried the application called 'stress' (found here) but either it isn't using up enough memory to hit the monitoring threshold, or I'm not using it right, or it's just not suited to this kind of test.

So far the only method I have found is just lowering the threshold enough for an alarm to get sent, but that kinda seems like cheating n_n
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Network stress test.

Hi there. First things first, this is nothing to do with the internet or ISP speed, I know what that is, I know what it's doing. I have a cluster of 128 single board computers running a branch of Debian. I want to run some kind of stress test to ensure they can transfer data (a) to each... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies

2. Solaris

Swap stress test

I was hoping to test a bug posted by oracle, which indicates that the system may crash when using a zfs volume as a swap device. We moved swap away from zfs and over to raw disk devices in order to stop the crashes we've been experiencing. What I wanted to do was to re-create the crash in a... (8 Replies)
Discussion started by: butchie3980
8 Replies

3. Solaris

Check Solaris Zones Processor & Memory allocations

Hi, I am a newbee in the solaris administration. My question is how to 1. Check the total CPU and memory of a global zone. 2. Check the allocated CPU and memory for each of the residing non-global zones. I have already tried prtconf which gives the following output /usr/sbin/prtconf... (4 Replies)
Discussion started by: poga
4 Replies

4. IP Networking

Stress Test a NIC

I need to find out if the NIC on my MP-RAS box is bad. Unfortunately just sending out a ping to the loop back is not going to cut it. I need to be able to send out packets of information for several minutes at a time. I can't seem to find a tool or command to do this. Is anyone aware of a way to... (1 Reply)
Discussion started by: wardduncan
1 Replies

5. UNIX for Advanced & Expert Users

linux memory buffers & cache usage

18:45:47 # free -m total used free shared buffers cached Mem: 96679 95909 770 0 1530 19550 -/+ buffers/cache: 74828 21851 Swap: 12287 652 11635 Hi all. The below output is from a RHEL 4.5... (0 Replies)
Discussion started by: drummerrob
0 Replies

6. Shell Programming and Scripting

Stress testing php files at Unix/Linux Command line

Hi, Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt. I tried torture.pl but it is not working after20 concurrent threads/users. as it is very urgent for me..please suggest ur ideas asap. thanks (5 Replies)
Discussion started by: Malleswari
5 Replies

7. Programming

Stress testing memory using malloc in linux ??

Hi to all, Recently i am testing an equipment that runs in i586 fedora linux. I have to test mmap function. For that i determined to fill the memory and run the required application to check whether it throws any mmap error regarding low resources. This is the line that does the allocation. ... (3 Replies)
Discussion started by: frozensmilz
3 Replies

8. Solaris

how to stress the memory

Hi All, Is there way to stress memory on Solaris 10? If yes, how do I monitor the memory usage? (3 Replies)
Discussion started by: samnyc
3 Replies

9. Filesystems, Disks and Memory

Memory Test Solaris 2.6

Anyone know of the best tools for the job, I've used vmstat, prtdiag and dmesg but want somehting to really interogate the memory and report. Any ideas ? its on a SUN e6500 :D thanks (2 Replies)
Discussion started by: kie
2 Replies
Login or Register to Ask a Question
pi_stress(8)						Linux System Administrator's Manual					      pi_stress(8)

NAME
pi_stress - a stress test for POSIX Priority Inheritance mutexes SYNOPSIS
pi_stress [-i|--inversions inversions] [-t|--duration seconds] [-g|--groups groups [-d|--debug] [-v|--verbose] [-s|--signal] [-r|--rr] [-p|--prompt] [-m|--mlockall] [-u|--uniprocessor] pi_stress -h|--help DESCRIPTION
pi_stress is a program used to stress the priority-inheritance code paths for POSIX mutexes, in both the Linux kernel and the C library. It runs as a realtime-priority task and launches inversion machine thread groups. Each inversion group causes a priorty inversion condition that will deadlock if priority inheritance doesn't work. OPTIONS
-i n|--inversions=n Run for n number of inversion conditions. This is the total number of inversions for all inversion groups. Default is -1 for infi- nite. -t n|--duration=n Run the test for n seconds and then terminate. -g n|--groups=n The number of inversion groups to run. Defaults to 10. -d|--debug Run in debug mode; lots of extra prints -v|--verbose Run with verbose messages -s|--signal Terminate on receipt of SIGTERM (Ctrl-C). Default is to terminate on any keypress. -r|--rr Run inversion group threads as SCHED_RR (round-robin). The default is to run the inversion threads as SCHED_FIFO. -p|--prompt Prompt before actually starting the stress test -u|--uniprocessor Run all threads on one processor. The default is to run all inversion group threads on one processor and the admin threads (report- ing thread, keyboard reader, etc.) on a different processor. -m|--mlockall Call mlockall to lock current and future memory allocations and prevent being paged out -h|--help Display a short help message and options. CAVEATS
The pi_stress test threads run as SCHED_FIFO or SCHED_RR threads, which means that they can starve critical system threads. It is advisable to change the scheduling policy of critical system threads to be SCHED_FIFO prior to running pi_stress and use a priority of 10 or higher, to prevent those threads from being starved by the stress test. BUGS
No documented bugs. AUTHOR
Clark Williams <williams@redhat.com> Nov 27, 2006 pi_stress(8)