LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2010, 07:14 PM   #1
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Rep: Reputation: 28
Looking for PowerPC CPU stress test


Does anyone know where I can find a PowerPC CPU stress test? I have came across many Linux CPU stress test but none of them seem to support PowerPC.
 
Old 12-22-2010, 08:56 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You can just open a terminal and enter:
Code:
while true; do true; done
That will run your CPU at 100% until you ctrl-c to kill it. It's a good way to check that temperature monitoring works and fans turn on, for example.
 
Old 12-23-2010, 10:41 AM   #3
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by macemoneta View Post
You can just open a terminal and enter:
Code:
while true; do true; done
That will run your CPU at 100% until you ctrl-c to kill it. It's a good way to check that temperature monitoring works and fans turn on, for example.
Great! Thanks I'll give that a try. I'm trying to test CPU power consumption under full load.
 
Old 06-14-2013, 02:13 AM   #4
Manas-Linux
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Smile

Quote:
Originally Posted by dbrazeau View Post
Does anyone know where I can find a PowerPC CPU stress test? I have came across many Linux CPU stress test but none of them seem to support PowerPC.

If you would like to stress your CPU with a heavy load , my below script would do more than you want.

excute the below script on your power pc system:

# cat cpu-online-offline.sh
#!/bin/bash
LIMIT=7
RANGE=7
randnum=0 #initialize random number

function cpuhotplug {
N=$1
result=`cat /sys/devices/system/cpu/cpu${N}/online`
if [ $result -eq 0 ]; then
echo 1 > /sys/devices/system/cpu/cpu$N/online
fi

while : #do cpu online offline infinitely
do
echo 0 > /sys/devices/system/cpu/cpu$N/online # online cpu
sleep 5
echo 1 > /sys/devices/system/cpu/cpu$N/online # offline cpu
done
}

while [ $randnum -le $LIMIT ]
do
randnum=$RANDOM # Generate random number
let "randnum %= $RANGE" # Scales $randnum down within $RANGE.
x=1

cpuhotplug $randnum &

done


NOTE: This script will generate heavy load on cpu and memory too ...script is a fork bomb so oom is expected.
But it can hit real kernel issue.With my script cpusets (and sched domains) are updated asynchronously during hotplug via worker threads.
And it does by asynchronously , where you have plenty of pending hotplug operations on each cpu, at almost any given point in time.


Thanks...
Manas
 
Old 06-14-2013, 02:58 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
This may compile on PPC, possibly:
http://www.mersenne.org/freesoft/#source
I don't have PPC, so I don't know.
 
Old 06-14-2013, 02:37 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Some info here. Dunno if this would compile on PPC also.

http://lbs.sourceforge.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stress Test In Linux? carlosinfl Linux - Hardware 9 08-16-2012 08:56 PM
Stress test for four-core CPU Mr. Alex Linux - Software 1 12-14-2010 11:19 AM
Looking for Stress Test Software MQMan Linux - Software 3 09-12-2007 07:45 PM
CPU/Memory stress test twantrd Programming 2 11-12-2005 08:49 PM
CPU stress test CTRLBREAK Linux - Hardware 2 02-24-2005 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration