how to increase cpu load


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to increase cpu load
# 1  
Old 08-31-2012
how to increase cpu load

can someone suggest me some code in any language that will increase CPU and memory both.
# 2  
Old 08-31-2012
google for this:
Code:
sourceforge.net: stress test

Assuming you want to clobber your system to test something.
# 3  
Old 08-31-2012
Quote:
Originally Posted by jim mcnamara
google for this:
Code:
sourceforge.net: stress test

Assuming you want to clobber your system to test something.
I have already tried stress.

Code:
  stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s

It increase mostly server load, while i need to increase CPU/MEM.
# 4  
Old 08-31-2012
Use the proper options:
Code:
$ stress --cpu X --vm 1 --vm-bytes=Y

where Y is the number of your cpus, and Y the amount of memory you want to be used. For example, for a 4 cpu system with 6GB free memory, you could use:
Code:
$ stress --cpu 4 --vm 1 --vm-bytes=5G

Or use Prime95: Free Software - GIMPS, which is more stressing.

To test the ram from inside the OS, you can use memtester: memtester version 4
--
Bye
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Load above normal, qmail, bogofilter, increase CPU?

Hello, on my VPS load is above normal. It is around 2.00 all the time. But VPS has assigned: 1000 CPU units, one core. Does it mean VPS needs faster CPU, or can balance high load any other way? The load is 70% used by process: bogofilter the maillog file is full of: vps qmail:... (2 Replies)
Discussion started by: postcd
2 Replies

2. UNIX for Dummies Questions & Answers

CPU load in video decoding using SAR

Hi, I'm John_giova and I'm new in this Forum. Sorry my english, it's not my first language. So, I'm trying to check the CPU utlization during the video encoding and decoding (making a comparison between SW and HW ) using the SAR tool. According to a past thread I saw as CPU utilization I should... (4 Replies)
Discussion started by: John_giova
4 Replies

3. Red Hat

Load average in a multi CPU machine

I had the query as to whether the load average in a multi CPU machine should be (load average/no of CPUs) We have 4 CPU on our VMware RHEL instance, so the load average should be Load average/4. I hope, my question is clear. Please revert with the reply to my query. Regards (0 Replies)
Discussion started by: RHCE
0 Replies

4. Shell Programming and Scripting

awk & CPU Load

Deal All, I'm writing a simple awk to generate some sort of report. The awk will check 24 files (file generated each one hour in a wholoe day) and then it will print one field to another file for counting purposes. The script is working fine but the problem is that the CPU load is very high... (10 Replies)
Discussion started by: charbel
10 Replies

5. Solaris

CPU load -12.50 in server.

Friends I have noticed that the Sun Fire v490 server with Solaris9 OS in my office, is showing a load of 12.50 during peak time and the CPU showing a max of 75% and an average of 60%. The Application running in this machine hung last month(For reasons unknown) and is running fine after... (5 Replies)
Discussion started by: Renjesh
5 Replies

6. Linux

How to find the load on CPU ?

Hi ALL, I have to develop a script which checks for the load on CPU on regular intervals. I created a simple script which uses 'uptime' command to find out the avg load in the last 5 min. I then used grep and put the value of the avg load in a variable OUT. It was working fine till... (5 Replies)
Discussion started by: vikings.svnit
5 Replies

7. AIX

increase load for testing

Hi, Anyone know of a good procedure or command that will significantly increase the load of my server without crashing it? I want to run some threshold tests and monitor load, cpu and memory usage. Thanks Chris. (1 Reply)
Discussion started by: chlawren
1 Replies

8. Red Hat

High cpu load average

Hi Buddies, Thanx for reading my first post... After googling a lot and searching so many forums I am feeling down a bit... Please don't mind my ignorence, and my grammer ... :) My server is running RHEL 2.6.9-5.EL. The cpu load is going higher than roof, almost 100 sometimes. I am... (2 Replies)
Discussion started by: squid04
2 Replies

9. AIX

Application high CPU load

after a long period of running, the network application's CPU load in our syst em increase slowly, the failed at the end. we use "truss" tool to trace the process, found that it processes something like "semop" ,"semctl","thread_waitlock","kread" kernel call . The trace log file looks like the... (0 Replies)
Discussion started by: Frank2004
0 Replies

10. UNIX for Dummies Questions & Answers

CPU load unit of measure?

If unix says my cpu load is 2.15 exactly what does that mean? --Jason (1 Reply)
Discussion started by: Mac J
1 Replies
Login or Register to Ask a Question