Author Archives: Joe

MacBook Pro 高Kernel CPU占用解决办法 (含iOS Catalina)

MacBook Pro when suffering from water damage (spilled coffee, for example), usually displays two symptoms:

  1. High CPU consumption by system process “Kernel” – usually in the ball park of 200-300%
  2. Consistent top fan speed

The first, in particular, renders a MacBook unusable, as almost all computational power is consumed by the Kernel. The Kernel process was designed to prevent high resource consumption by individual applications – but the gut feeling shows that this is yet another built-in feature to force users to bring a nevertheless perfectly usable back to the so-called genius bar to be fixed for a price, or better yet, replaced with a new unit altogether.

While the conscientiousness of corporate Apple is open for discussion, there are in fact ways to informally prevent such behaviour and restore the machine to a use-able state. Many blog posts (e.g. the most concise one I’ve read can be found here) Here is how:

First, the machine needs to be rebooted into Recovery Mode, by restarting while holding down cmd + R before the loading screen (white apple) shows. In this view, launch the Terminal and run the following command to disable System Integrity Protection (SIP), which is a built in feature of the iOS to prevent undesirable modification of system files:

csrutil disable

Then the machine can be rebooted, either into full operating system or into the Single User mode (which is faster, and quieter) by holding down cmd + S.

Here is where the trick needs to be adapted to Catalina: in this latest version of the iOS, Apple has introduced yet another layer of protection for the system files – they are stored in a read-only section of the drive, which prevents the removal of the undesirable system file that causes the blown-out Kernel issue.

In the Single-User view (effectively terminal only view), or in the full OS view with a terminal launched, run the following command to enable read/write mode for system files:

 sudo mount -uw /

Followed by the following command which removes the package extension file IOPlatformFamilyPlugin.kext that causes high Kernel CPU usage

rm -rf /System/Library/Extension/IOPlatformFamilyPlugin.kext

This in turn followed by a restart, or if in Single User mode then

 shutdown -r now 

Do remember to boot into Recovery Mode using method mentioned above, and rearm the SIP protection by running the following in Terminal

csrutil disable

In the case of some users, the fan would go back to normal – but if not, as in my case, an app Macs Fan Control can be used to slow the fan down according to the actual machine. There are many websites that lists regular temperature of a working MacBook Pro for various models. These can be used as a reference for setting temperature dependent fan speed of the machine.

日记

太久不写东西的话人从表达能力到对身边事情感受的敏锐程度都出现了明显的退化。内心里对很多事情都变得比较麻木,对外在而言则是那种一度如影随形的不自在感在某个时刻开始消失了。

这是一个漫长的融入世界的过程,曾经以为十分深刻但并不持久的想法在和粗糙而并没有太多人情味的环境里,也慢慢消失了。与其说人在成长的过程中不断向身边的世界妥协,倒不如说我的个体逐渐在消失,而那些一度构成我的部分,和我之所以成为我的理由开始和周遭的一切自如的融合在一起,边界变得模糊不清,那些色彩在短暂的美丽旋转图案后,最终变成均匀、温和、黯淡以及停滞不再流动的灰色。

这个世界一点也不好。

慢慢的在回头看的时候视线变得越来越长,但是始终总是落在那几个柔软的地方:那些没能实现的、那些如果重来是否会不一样的、那些未曾经历而留下永远遗憾的。而现在的昨天的朝夕的硬邦邦的现实像是枷锁和沉重的负担。不知道西绪福斯在重复与巨石和山峰的战斗时,是不是会会想起曾经征服死亡。

何方

伦敦的冬天总是湿漉漉的,日和夜都沉甸甸,夜来得早,天好像总也亮不起来。橱窗里的灯总也不关,古旧建筑的砖同钢筋水泥同样冰冷,地上被冲刷的那么干净,连衣服上溅起的积水也留不下它的印子。高楼群里热岛效应圈出一块块低气压的和无处不在一场回旋大风的碎片,从所有的东南西北一起吹过来,凉透灵魂。(同样是高纬度城市,对向北五十英里剑桥却并没有这样的记忆。)

不知是第一百多少个这样的周末被推送了李志的《热河》,看到评论里提到《湖心亭看雪》,读到“客此”,涌上来的感受让人一时不知道如何是好。不知道是落寞也好、乡愁也罢,确实是很久没有这么强烈地感受到活着。

更新

一直只是保持这个网站在线,并没有写新的内容–直到上个月没有及时续费域名导致.tk这个网址直接被别人拿走,才意识到其实自己或许还是需要这个网页的,从中二的角度来说也是某种secret identity之类的吧。

总而言之,终于把这个域名拿回来了。

Cloudflare服务升级

最近Cloudflare给免费用户也提供了SSL服务,换而言之,往后cenci.tk应该也可以通过https的加密连接来访问。虽然迄今为止网站上并没有进行任何的eCommerce之类的活动,不过能够不需要太多麻烦就能获得更高的安全性,也是不错的。

另外最近网站访问掉线频繁,不知道是不是服务器方的原因,已经联系过,但未有答复。整个博客从搭建到现在一切服务都是免费的,所以也不好抱怨太多了。

可以预期在SSL升级的过程里,通过https的访问会有一些问题,具体的情况会再update一次。