MacOS 下 launchd 平均每天磁盘写入都超过 10GB ,前 ubuntu 用户表示真的忍不了,经过分析写入文件位于 /var/log/com.apple.xpc.launchd/
的 log ,平均每分钟写入 10M 以上,全是用于启动 SpotLight 的操作
这个 mdworker 进程被频繁启动然后再被 kill ,不知道是哪个鬼才想出来的好主意,库克知道么?
2022-08-23 17:43:11.908127 <Notice>: Last log repeated 2 times
2022-08-23 17:43:11.907854 (system) <Warning>: failed lookup: name = com.apple.AppleLOM.Watchdog, flags = 0x1, requestor = watchdogd[301], error = 3: No such process
2022-08-23 17:43:27.284613 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000) <Notice>: internal event: WILL_SPAWN, code = 0
2022-08-23 17:43:27.284718 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000) <Notice>: service state: spawn scheduled
2022-08-23 17:43:27.284723 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000) <Notice>: service state: spawning
2022-08-23 17:43:27.285151 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000) <Notice>: launching: ipc (mach)
2022-08-23 17:43:27.286377 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: xpcproxy spawned with pid 55975
2022-08-23 17:43:27.286406 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: internal event: SPAWNED, code = 0
2022-08-23 17:43:27.286413 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: service state: xpcproxy
2022-08-23 17:43:27.286432 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: internal event: SOURCE_ATTACH, code = 0
2022-08-23 17:43:27.295285 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: service state: running
2022-08-23 17:43:27.295298 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: internal event: INIT, code = 0
2022-08-23 17:43:27.295308 (user/501/com.apple.mdworker.shared.0B000000-0300-0000-0000-000000000000 [55975]) <Notice>: Successfully spawned mdworker_shared[55975] because ipc (mach)
2022-08-23 17:43:41.908483 (system) <Warning>: failed lookup: name = com.apple.AppleLOM.Watchdog, flags = 0x1, requestor = watchdogd[301], error = 3: No such process
2022-08-23 17:43:59.239397 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000) <Notice>: internal event: WILL_SPAWN, code = 0
2022-08-23 17:43:59.239508 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000) <Notice>: service state: spawn scheduled
2022-08-23 17:43:59.239512 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000) <Notice>: service state: spawning
2022-08-23 17:43:59.239939 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000) <Notice>: launching: ipc (mach)
2022-08-23 17:43:59.241171 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: xpcproxy spawned with pid 55976
2022-08-23 17:43:59.241204 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: internal event: SPAWNED, code = 0
2022-08-23 17:43:59.241211 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: service state: xpcproxy
2022-08-23 17:43:59.241230 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: internal event: SOURCE_ATTACH, code = 0
2022-08-23 17:43:59.250474 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: service state: running
2022-08-23 17:43:59.250492 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: internal event: INIT, code = 0
2022-08-23 17:43:59.250505 (user/501/com.apple.mdworker.shared.0A000000-0300-0000-0000-000000000000 [55976]) <Notice>: Successfully spawned mdworker_shared[55976] because ipc (mach)
2022-08-23 17:44:09.824141 (gui/501 [100019]) <Warning>: failed lookup: name = com.apple.DFRSystemExtra.InputMenu.disableinput, flags = 0x1, requestor = TextInputMenuAg[724], error = 3: No such process
2022-08-23 17:44:11.909041 <Notice>: Last log repeated 1 times
2022-08-23 17:44:11.908979 (system) <Warning>: failed lookup: name = com.apple.AppleLOM.Watchdog, flags = 0x1, requestor = watchdogd[301], error = 3: No such process
2022-08-23 17:44:13.598349 (gui/501 [100019]) <Warning>: failed lookup: name = com.apple.DFRSystemExtra.InputMenu.disableinput, flags = 0x1, requestor = TextInputMenuAg[724], error = 3: No such process
2022-08-23 17:44:39.219725 <Notice>: Last log repeated 3 times
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.