LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Stress Testing my CPU (https://www.linuxquestions.org/questions/slackware-14/stress-testing-my-cpu-237025/)

drisay 09-30-2004 06:23 AM

Stress Testing my CPU
 
Hi all,

I'm currently having an issue with my CPU (I believe anyways) that it locks up after approx. an hour of use. No matter the OS that I'm running. I was wondering if anyone knew any good stress testing utilities I could use to test it to make sure that I am on the right track. I found a memory testing software which I'll give a try, but I've switched around memory sticks already so unless I had more than one faulty mem stick, it should be the CPU.

Thanks,
drisay.

jimdaworm 09-30-2004 07:00 AM

Hey drisay first of all, have you looked in your bios to see if your cpu is overheating?? Maby there is a problem with the fan/headsink/paste inbetween)

I found this page with google, looks good.
http://www-106.ibm.com/developerworks/library/l-hw1/

Also if you want to try a windows app apparently sandra is pretty good.

Also memtest86 is a free app that tests ram its pretty good and I used it once to find my ram was fried.

Good luck:)

Shade 09-30-2004 10:33 AM

They say a kernel compile is one of the best stress tests you can do. It affects about every core piece of hardware there is.

...What you're describing does sound like CPU overheating, though. Double check all the fans, the heatsink, and make sure the power cables are seated correctly.

If it was a bit more random, I'd be inclined to say that it might have something to do with a failing hard drive. I've seen some odd behavior prior to losing all my data, as well.

;)

Good luck!

--Shade

jimdaworm 10-01-2004 04:02 AM

Hey Shade just to quote from my link ;) I guess its good we at least we both think the same... that means either we are both wrong or both right :D


Quote:

You may be surprised to hear that one of the best tests of CPU stability is built in to Linux -- the kernel compile. The gcc compiler is a great tool for testing general CPU stability, and a kernel build uses gcc a whole lot. By creating and running the following script from your /usr/src/linux directory, you can give your machine an industrial-strength kernel compile stress test:


The cpubuild script
#!/bin/bash
make dep
while [ "foo" = "foo" ]
do
make clean
make -j2 bzImage
if [ $? -ne 0 ]
then
echo OUCH OUCH OUCH OUCH
exit 1
fi
done

You'll notice that this script repeatedly compiles the kernel. The reason for this is simple -- some CPUs have intermittent glitches, allowing them to compile the kernel perfectly 95% of the time, but causing the kernel compile to bomb out every now and then. Normally, this is because it may take five or more kernel compiles before the processor heats up to the point where it becomes unstable

xushi 10-01-2004 04:45 AM

Heh, nice code there... Does anyone know how to add a line where everytime it successfully goes through the compile, it adds +1 to a counting file, so if and when the compile fails, i can know how many times it successfully compiled? =)))


All times are GMT -5. The time now is 12:33 AM.