Skip to content

Instantly share code, notes, and snippets.

@ponkore
Last active March 15, 2017 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponkore/134ea348574b58f5e7baa6b0bd3d70d4 to your computer and use it in GitHub Desktop.
Save ponkore/134ea348574b58f5e7baa6b0bd3d70d4 to your computer and use it in GitHub Desktop.
Mac で CPU の情報を取得
bash$ system_profiler SPHardwareDataType
Hardware:
Hardware Overview:
Model Name: MacBook
Model Identifier: MacBook9,1
Processor Name: Intel Core m5
Processor Speed: 1.2 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 4 MB
Memory: 8 GB
Boot ROM Version: MB91.0154.B13
SMC Version (system): 2.35f104
Serial Number (system): C02RQ3LTH3QY
Hardware UUID: F9D3148D-AA8A-51FB-969D-9D7F551E25C3
bash$ sysctl machdep.cpu.brand_string
machdep.cpu.brand_string: Intel(R) Core(TM) m5-6Y54 CPU @ 1.10GHz
bash$
bash$ sysctl -a machdep.cpu
machdep.cpu.tsc_ccc.denominator: 2
machdep.cpu.tsc_ccc.numerator: 100
machdep.cpu.thread_count: 4
machdep.cpu.core_count: 2
machdep.cpu.address_bits.virtual: 48
machdep.cpu.address_bits.physical: 39
machdep.cpu.tlb.data.small_level1: 64
machdep.cpu.tlb.data.small: 64
machdep.cpu.tlb.inst.large: 8
machdep.cpu.cache.size: 256
machdep.cpu.cache.L2_associativity: 4
machdep.cpu.cache.linesize: 64
machdep.cpu.arch_perf.fixed_width: 48
machdep.cpu.arch_perf.fixed_number: 3
machdep.cpu.arch_perf.events: 0
machdep.cpu.arch_perf.events_number: 7
machdep.cpu.arch_perf.width: 48
machdep.cpu.arch_perf.number: 4
machdep.cpu.arch_perf.version: 4
machdep.cpu.xsave.extended_state1: 15 832 256 0
machdep.cpu.xsave.extended_state: 31 832 1088 0
machdep.cpu.thermal.energy_policy: 1
machdep.cpu.thermal.hardware_feedback: 0
machdep.cpu.thermal.package_thermal_intr: 1
machdep.cpu.thermal.fine_grain_clock_mod: 1
machdep.cpu.thermal.core_power_limits: 1
machdep.cpu.thermal.ACNT_MCNT: 1
machdep.cpu.thermal.thresholds: 2
machdep.cpu.thermal.invariant_APIC_timer: 1
machdep.cpu.thermal.dynamic_acceleration: 1
machdep.cpu.thermal.sensor: 1
machdep.cpu.mwait.sub_Cstates: 286531872
machdep.cpu.mwait.extensions: 3
machdep.cpu.mwait.linesize_max: 64
machdep.cpu.mwait.linesize_min: 64
machdep.cpu.processor_flag: 7
machdep.cpu.microcode_version: 160
machdep.cpu.cores_per_package: 8
machdep.cpu.logical_per_package: 16
machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT PREFETCHW RDTSCP TSCI
machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 AVX2 BMI2 INVPCID SMAP RDSEED ADX IPT SGX FPU_CSDS MPX CLFSOPT
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
machdep.cpu.brand: 0
machdep.cpu.signature: 263907
machdep.cpu.extfeature_bits: 1241984796928
machdep.cpu.leaf7_feature_bits: 43804591
machdep.cpu.feature_bits: 9221959987971750911
machdep.cpu.stepping: 3
machdep.cpu.extfamily: 0
machdep.cpu.extmodel: 4
machdep.cpu.model: 78
machdep.cpu.family: 6
machdep.cpu.brand_string: Intel(R) Core(TM) m5-6Y54 CPU @ 1.10GHz
machdep.cpu.vendor: GenuineIntel
machdep.cpu.max_ext: 2147483656
machdep.cpu.max_basic: 22
bash$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment