Re: Why kernel_task consumes so high CPU usage on MacBook AIR?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xWMF4wftupdTIqK3EHAieRh8XxNrdMzREfImQbvx388=; b=TUM8TukR83KlLSZx+dHN63gnDxQRDoZOVIlv7aIILs3s5+8Y7v3BTvjhDHOF0b1/oK 76/tVGHKgOLMSsCT1FqPPCYkyhB+lLp9OgI5SREGedTkcUyLmGS0y4whZRG/DDX5XUH4 HS8NPUcEv8+cVyZhcPydQJxVukQd0j3Pg4N6I= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NdLBli3QyiCaR9Mx6O0PRdCjXRrVISVSpeN00aq2CKZ7po0t3GKiCm1HHGcMoYHrtx vkEdCh7i2f37bLwfZ0HhNOSQ4FuYS+rT0H37C/K3ZZfZFJHZX7QyBJ6cAlUghqg3livC SbxI9ZVNWhYwlS5zCdwCDAK/lJuDRWc7vwHiU= The problem is that the MacBook Air gets too hot. I've never used one - do they have cooling fans? My MacBook Pro can get quite hot, but it has a cooling fan beneath each of the two speaker grills. If the MacBook Air requires passive cooling, the only alternative would be to throttle the CPU, which indirectly makes kernel_task appear to take a lot of time. An alternative might be to make your code more efficient, so that it can get the job done without heating the CPU up as much. That may not be possible, but work with a profiler may yield some insight. Besides Apple's CHUD tools that come with Xcode, I believe Intel's VTune Performance Analyzer may yield insight that Apple's tools won't. I used it once, and found it to be the best thing since sliced bread. If you can isolate some performance-critical code in your app, it might help to rewrite it in assembly code. In general the idea is to get your work done in fewer work cycles, so the CPU has more idle cycles during which it can lower its own supply voltage and cool down a little bit before taking up the next bit of payload work. Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Crawford