Macworld Forums: Mac OS X Hints Weblog: Drive CPU utilization to 100 percent - Macworld Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Mac OS X Hints Weblog: Drive CPU utilization to 100 percent

#1 User is offline   Macworld.com Icon

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,900
  • Joined: 06-February 04

Posted 15 December 2006 - 10:10 AM

Ever had the need to drive your CPUs to 100-percent utilization? Probably not, but in case you ever do, here's one way to do it. [more]
0

#2 User is offline   Nobody Icon

  • Power User
  • PipPipPipPip
  • Group: Members
  • Posts: 58,347
  • Joined: 18-October 07

Posted 15 December 2006 - 02:46 PM

Why not boot in single user mode? That sends the fans to top speed AFAIK!
0

#3 User is offline   griffman Icon

  • Advanced Member
  • Icon
  • Group: Moderators
  • Posts: 8,605
  • Joined: 09-January 01

Posted 15 December 2006 - 02:49 PM

Sometimes you want to be able to do other things as well /forums/ubbthreads/images/graemlins/smile.gif.
-rob.

#4 User is offline   Gravitas Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 31-October 05

Posted 15 December 2006 - 04:16 PM

Neat article....i just tried it using a iBook G4 at 1.42 GHz and it returned 1662976 lines in .564 seconds resulting in 2,948,539 lines per second. How could be more than twice as fast as your PowerBook G4 running at 1.25? (about 1.3 million lines) I wouldn't think there would be that big of a jump?
0

#5 User is offline   megagram Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 01-May 06

Posted 15 December 2006 - 04:21 PM

Why not just type the command "yes" and not send it to /dev/null. On a multi-processor system, this will drive CPU usage to 100% on both processors. The yes command will display tons of y's causing Terminal to consume tons of processor time displaying these lines. I'm not sure what happens when we get into more than 2 cores or processors. But since terminal is a multi-threaded, multi-processor aware application, it's usage won't be capped to just 100%. On my machine, it used roughly 150% and yes used roughly 50% maxing out both my processors. This will save time and require less open windows.
0

#6 User is offline   elCapiton Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 20-November 04

Posted 15 December 2006 - 04:51 PM

Of course outputting it to a text file might not use 100% CPU because then you're I/O bound by the hard drive speed and not the CPU speed. Good tip though to drain your recalled Powerbook battery before sending it back to Apple.
When I drained my dad's Powerbook with RC5, the CPU was pegged at 100% for a full 50 mins or so from a full charge before it died. Yes it only lasted 50 mins at 100% CPU usage.
0

#7 User is offline   ampm99 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 15-December 06

Posted 15 December 2006 - 10:12 PM

Ok I may be slow but the reason to max the cpu at 100percent is to diagnose any problems that may occur that don't show up at other times? Am I missing something?
0

#8 User is offline   jhmaughan Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 175
  • Joined: 23-September 04

Posted 15 December 2006 - 11:04 PM

Well, at least in this case he just wanted to demonstrate the fan was bad, like maybe a bearing issue. So it required he crank up the CPU to get the fan running to demonstrate the problem.
0

#9 User is offline   jhmaughan Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 175
  • Joined: 23-September 04

Posted 15 December 2006 - 11:14 PM

So you know how they've been touting the quality of Intel chips and how they run cooler? Well, i think that fact, plus apple design, is pretty impressive. I ran the four instances, drove the processors up to full blast, and it took about two minutes for the CPUs to go from their idle temperature of 40 degrees C to 55 degrees C, and when i cancelled all the instances, the temperatures dropped back down to 45 in about 6 seconds and down to 40 about 10 seconds later. The whole time, i didn't hear the fans crank beyond what they usually are. So i thought that was cool. i wonder what it will take to get them up to full speed /forums/ubbthreads/images/graemlins/smile.gif Leaving that running for an hour?
0

#10 User is offline   kyle988 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 568
  • Joined: 05-February 04

Posted 15 December 2006 - 11:43 PM

So they gave you a new MacBookPro just because the fan was faulty? I would have thought they would have just replaced the fan
0

#11 User is offline   maremare Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 23
  • Joined: 03-May 06

Posted 17 December 2006 - 08:26 PM

A much easier way to do this is to run some games, like PopCap's Bejeweled and many applications made in Macromedia Director. Instant 100% processor gratification.
0

#12 User is offline   griffman Icon

  • Advanced Member
  • Icon
  • Group: Moderators
  • Posts: 8,605
  • Joined: 09-January 01

Posted 17 December 2006 - 08:42 PM

From my experience, that's not true on the Intel boxes, especially across multiple cores. It's tough to find things that really peg both (or all four) CPU cores...that's not to say it's not possible, but even some of the more intense games will vary the load on the CPU depending on the scene being rendered.
-rob.

#13 User is offline   AppleTango Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 17-December 06

Posted 25 December 2006 - 06:40 PM

I don't get it. If you stress the processors, the fans are supposed to try to keep them cool. So what? Max out the processor and the fan will max out. What am I missing? Why did he get a new computer? Sorry, I am new to this..
0

#14 User is offline   griffman Icon

  • Advanced Member
  • Icon
  • Group: Moderators
  • Posts: 8,605
  • Joined: 09-January 01

Posted 25 December 2006 - 07:02 PM

Because when the fan was running, it sounded much like someone had poured a bunch of wet cement into the fan casing, and the fan was churning through it with a grinding, squeaking, terribly loud noise.
That's why I got a new computer /forums/ubbthreads/images/graemlins/smile.gif
-rob.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users