페이지

2013년 1월 29일 화요일

iPhone Watchdog

아이폰에 집보는 개가 있었다.



잠깐 구글링해보니 Watchdog 이라는 것은 임베디드나 Unix 쪽 시스템에서 프로세스 감시를 위해 있는 것 같다. 메모리에 프로세스가 올라오고부터 그 프로세스가 제대로 응답하고 있는지 지켜보다가 응답이 없으면 일단 죽였다가 재시작 시키나보다.


Auxo 를 설치하고 나서부터 음악이나 팟캐스트를 듣고 있다가 리스프링되는 경우가 너무 자주 발생했다. CrashReport 를 보니

Hardware Model:      iPhone4,1
OS Version:          iPhone OS 5.1.1 (9B206)
Kernel version:      Darwin Kernel Version 11.0.0: Sun Apr  8 21:51:47 PDT 2012; root:xnu-1878.11.10~1/RELEASE_ARM_S5L8940X
Date:                2013-01-29 12:53:52 +0900
Exception Code:      0xfaded321
Reason:              Watchdog timeout: 120.017281s since last successful ping: 2696pe0000320 2693pe0000300 2693r1533000 2693m0 2693u0 2593m0 2593u0 2493m0 2493u0 2462pe0000270 2462pe0000280 2462s1533000 2398pe0000320 2395pe0000300 2395r1533000 2395m0 2395u0 2295m0 2295u0 2195m0 2195u0 ...

Thermal Level:       0
Thermal Sensors:    2933 2760 5189 2945 2972


Frontmost process PID:    1656
Frontmost process PID:    33
Jetsam Level:             30
Free Pages:             9082
Active Pages:           9496
Inactive Pages:         5790
Purgeable Pages:        2706
Wired Pages:           20457
Speculative Pages:     10725
Throttled Pages:       73358
Busy Buffer Count:         0

Process 0 info:
 resident memory bytes:  52240384
 page faults:               5586
 page-ins:                     0
 copy-on-write faults:         0
 user   time in task: 64364.297490 seconds
 system time in task:     0.000000 seconds

저딴식으로 나온다. 하도 뭔가를 많이 설치해서 메모리가 모자를 수도 있겠지만서도 저딴 알아듣지도 못할 로그를 토해내다니..
게다가 시스템로그엔 이런 문장도 보인다.

defaults write com.apple.mobilewatchdog WatchdogEnabled -bool no

맥에서는 defaults 가 먹힐지 몰라도 iOS에는 없다.
구글링해보니

/System/Library/LaunchDaemons/com.apple.MobileWatchdog.plist

가 있다느니 /System/Library/SystemConfiguration 에

MemoryMonitor.bundle/
mobilewatchdog.bundle/

이 있다느니 하던데 내 아이폰에는 없다. 대신 /System/Library/Watchdog/ 밑에

MemoryMonitor.bundle/
ThermalMonitor.bundle/

두개가 있다. 일단 MemoryMonitor.bundle 을 없애보았다. 재시작하니 달라진 것은 Xcode 에서 개발용으로 사용할 수 없다고 한다. 또 어디가 문제가 생길지는 모르나 일단 지켜보기로 한다.

댓글 없음:

댓글 쓰기