links for 2009-09-10 links for 2009-09-11
Sep 12

[1] 모델별 64 bit kernel 부팅 여부

가장 먼저 말하고 싶은 것은 맥북은 64 bit kernel로 부팅될 수 없다.

아래 표와 같이 Snow Leopard는 애플의 X-Server를 제외하고는 디폴트로 32 bit 커널로 부팅된다.

64 bit 커널로 부팅 하기 위해서는 부팅 시 ‘6′과 ‘4′ 버튼을 동시에 꾹 누르고 있으면 됩니다.

맥북이 32 bit kernel로만 부팅이 되고 또한 애플의 정책이 Xserver를 제외하고는 default가 32 bit kernel 부팅이라는 것에 대해서 찝찝해할 필요는 없는 것 같다.

아래와 같이 32 bit kernel이라도 모든 64 bit application을 완벽하게 지원하며 64 bit kernel의 이점은 32GB 이상의 메모리를 효율적으로 사용할 수 있다는 것이다.

The 32-bit kernel fully supports 64-bit applications, all system libraries that 64-bit applications use are fully 64-bit, and 64-bit applications have a full 64-bit virtual address space of 16 exabytes available to them on Mac OS X. The primary benefit of a 64-bit kernel is to improve the efficiency of accessing over 32GB of RAM.

그리고 DVD player, Front Row, Grapher and iTunes 등은 아직도 32 bit에서만 수행될 수 있다.

맥북을 잘 끄지 않지만 그래도 귀찮은 일이다.

.

[2] 64 bit 커널 부팅 가능한지 확인

64 bit 커널로 부팅이 되기 위해서는 64-bit EFI (Extension Firmware Interface)를 가지고 있어야 한다. 이것은 다음과 같이 터미널에서 입력함으로써 알 수 있다.

EFI는 Operation System과 Firmware의 Software Interface를 정의하고 있는 Specification이다.

ioreg -l -p IODeviceTree | grep firmware-abi

아무튼 위 라인을 터미널에서 실행하면 아래와 같이 64-bit EFI를 가지고 있다고 나오면 된다.

alones:~ gidaeyeo$ ioreg -l -p IODeviceTree | grep firmware-abi
| |   “firmware-abi” = <”EFI64″>

.

[3] 64 bit 커널 부팅을 디폴트로 설정하기

[2-1] com.apple.Boot.plist 파일 수정하기

/Library/Preferences/SystemConfiguration/com.

apple.Boot.plist 파일의 아랫부분을

<key>

Kernel Flags</key>
<string></string>

아래와 같이 변경하면 된다.

<key>

Kernel Flags</key>
<string>arch=x86_64</string>

나의 맥북에서는 64 bit로 부팅해서 의미가 없지만 삽질 중 시도를 해보니 read-only 파일이어서 수정을 할 수 없었다. 이 경우 아래 명령어를 터미널에서 입력해도 된다.

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.Boot ‘Kernel Flags’ ‘arch=x86_64′

그리고 64 bit kernel로 성공적으로 부팅이 되고 나면 아래와 같이”64-bit Kernel and Extensions” (64비트 커널 및 확장 파일) 이 Yes로 표기된다.

.

[4] 32/64 bit Snow Leopard vs Leopard Geekbench 결과

32 bit / 64 bit Snow Leopard와 Leopard의 Geekbench 결과는 아래와 같다.

실험 맥북 프로

MacBook Pro (Late 2008)

  • Intel Core 2 Duo P8600 @ 2.40GHz
  • 2.00 GB 1067 MHz DDR3
  • Mac OS X 10.5.8 or
  • Mac OS X 10.6

Benchmark 결과

Snow Leopard 64-bit Snow Leopard 32-bit Leopard 32-bit
Overall 3725 3410 3310
Integer 3357 2768 2677
Floating Point 5199 4950 4773
Memory 2681 2594 2568

.

[5] 끝으로..

이 포스트를 쓰는 데는 시간이 좀 걸렸다. 쓰는 시간보다는 구글링과 테스트에 시간이 많이 소비되었다. -_-;; 맥북이 64bit kernel로 부팅이 안되는 것을 몰라서 헤매면서 찾을 자료들이 아까워 포스팅을 했다.

Snow Leopard가 파격적인 성능 향상보다는 이후 나올 64 bit application들이 Grand Central Dispatch나 OpenCL로 최고의 성능으로 수행될 수 있게 해주는 데 의미가 더 있을 것이다.


Ref 1. Snow Leopard Currently Restricts 64-Bit Booting to Newer Macs

Ref 2. Apple’s OS X 10.6 operating system Snow Leopard, released today, by default loads with a 32-bit kernel, despite running 64-bit applications.

Ref 3. 64-bit Snow Leopard defaults to 32-bit kernel

Ref 4. Snow Leopard 10.6 and 64-Bit What you Need to Know

Ref 5. Extensible Firmware Interface

Ref 6. Snow Leopard GM not booting into 64-bit mode automatically, fix here

Ref 7. Can I boot Snow Leopard in 64-bit mode?

Ref 8. Snow Leopard Performance

Ref 9. Will your Mac boot 64-bit Snow Leopard by default? Not unless it’s an Xserve

Related posts:

  1. [iPhone] 스노우 레오파드 !! Snow Leopard (Mac OS X 10.6) 간단 설치 후기 (Xcode, Spaces, Expose) 오늘 받은 Snow Leopard를 맥북에 설치했다 (정확히는 하면서 틈틈이 포스트를...
  2. [iPhone] 스노우 레오파드 (Snow Leopard)의 숨겨진 기능들~ Snow Leopard의 (찾기 힘든) 숨겨진 기능들에 대한 동영상입니다. 영어도 또렷하게...
  3. [iPhone] Snow Leopard Benchmarking 결과 입니다. 성능이 크게 향상된 부분은 없죠. 하지만 TUAW의 Chris Rawson 이 자신의 맥으로 Leopard (10.5.2, 10.5.8)와 Snow...
  4. [iPhone] Xcode 3.2 (Snow Leopard) 에서 SDK 3.0 이전 버전으로 셋팅하는 방법 Snow Leopard에서는 Xcode가 3.2이다.  문제는 업데이트 후 기존 프로젝트가 iPhone...
  5. [iPhone] 이 것 보다 더 깊게 Snow Leopard를 심층 분석한 자료는 없을 것 같습니다. 웹 페이지로 23페이지로 구성되어있으면, 단순한 사용자 측면의 리뷰가 아닌 기술적...

Related posts brought to you by Yet Another Related Posts Plugin.

blog comments powered by Disqus
preload preload preload