{"action":"created","issue":{"url":"https://api.github.com/repos/klauspost/cpuid/issues/8","labels_url":"https://api.github.com/repos/klauspost/cpuid/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/klauspost/cpuid/issues/8/comments","events_url":"https://api.github.com/repos/klauspost/cpuid/issues/8/events","html_url":"https://github.com/klauspost/cpuid/issues/8","id":121905329,"number":8,"title":"Incorrect detection of ThreadsPerCore","user":{"login":"max2k1","id":15736137,"avatar_url":"https://avatars.githubusercontent.com/u/15736137?v=3","gravatar_id":"","url":"https://api.github.com/users/max2k1","html_url":"https://github.com/max2k1","followers_url":"https://api.github.com/users/max2k1/followers","following_url":"https://api.github.com/users/max2k1/following{/other_user}","gists_url":"https://api.github.com/users/max2k1/gists{/gist_id}","starred_url":"https://api.github.com/users/max2k1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max2k1/subscriptions","organizations_url":"https://api.github.com/users/max2k1/orgs","repos_url":"https://api.github.com/users/max2k1/repos","events_url":"https://api.github.com/users/max2k1/events{/privacy}","received_events_url":"https://api.github.com/users/max2k1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-13T07:39:20Z","updated_at":"2015-12-13T09:44:58Z","closed_at":null,"body":"Library incorrectly detects ThreadsPerCore count, so PhysicalCore value is also wrong:\r\n\r\nName: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz\r\nPhysicalCores: 1\r\nThreadsPerCore: 16\r\nLogicalCores: 16\r\nFamily 6 Model: 45"},"comment":{"url":"https://api.github.com/repos/klauspost/cpuid/issues/comments/164242435","html_url":"https://github.com/klauspost/cpuid/issues/8#issuecomment-164242435","issue_url":"https://api.github.com/repos/klauspost/cpuid/issues/8","id":164242435,"user":{"login":"max2k1","id":15736137,"avatar_url":"https://avatars.githubusercontent.com/u/15736137?v=3","gravatar_id":"","url":"https://api.github.com/users/max2k1","html_url":"https://github.com/max2k1","followers_url":"https://api.github.com/users/max2k1/followers","following_url":"https://api.github.com/users/max2k1/following{/other_user}","gists_url":"https://api.github.com/users/max2k1/gists{/gist_id}","starred_url":"https://api.github.com/users/max2k1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max2k1/subscriptions","organizations_url":"https://api.github.com/users/max2k1/orgs","repos_url":"https://api.github.com/users/max2k1/repos","events_url":"https://api.github.com/users/max2k1/events{/privacy}","received_events_url":"https://api.github.com/users/max2k1/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T09:44:58Z","updated_at":"2015-12-13T09:44:58Z","body":":) Results are.. unstable\r\n$ go test -v -test.run=TestCPUID\r\n=== RUN   TestCPUID\r\n--- PASS: TestCPUID (0.00s)\r\n  cpuid_test.go:14: Max Function:0xd\r\n  cpuid_test.go:16: Max Extended Function:0x80000008\r\n  cpuid_test.go:17: Name: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz\r\n  cpuid_test.go:18: PhysicalCores: 8\r\n  cpuid_test.go:19: ThreadsPerCore: 2\r\n  cpuid_test.go:20: LogicalCores: 16\r\n  cpuid_test.go:21: Family 6 Model: 45\r\n  cpuid_test.go:22: Features: CMOV,NX,MMX,MMXEXT,SSE,SSE2,SSE3,SSSE3,SSE4.1,SSE4.2,AVX,POPCNT,AESNI,CLMUL,HTT,RDTSCP,CX16\r\n  cpuid_test.go:23: Cacheline bytes: 64\r\n  cpuid_test.go:24: L1 Instruction Cache: 32768 bytes\r\n  cpuid_test.go:25: L1 Data Cache: 32768 bytes\r\n  cpuid_test.go:26: L2 Cache: 262144 bytes\r\n  cpuid_test.go:27: L3 Cache: 20971520 bytes\r\n  cpuid_test.go:30: Yay - we have SSE 2\r\nPASS\r\nok    _/home/max2k1/test/src/github.com/klauspost/cpuid  0.003s\r\n\r\n$ go test -v -test.run=TestCPUID\r\n=== RUN   TestCPUID\r\n--- PASS: TestCPUID (0.00s)\r\n  cpuid_test.go:14: Max Function:0xd\r\n  cpuid_test.go:16: Max Extended Function:0x80000008\r\n  cpuid_test.go:17: Name: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz\r\n  cpuid_test.go:18: PhysicalCores: 1\r\n  cpuid_test.go:19: ThreadsPerCore: 16\r\n  cpuid_test.go:20: LogicalCores: 16\r\n  cpuid_test.go:21: Family 6 Model: 45\r\n  cpuid_test.go:22: Features: CMOV,NX,MMX,MMXEXT,SSE,SSE2,SSE3,SSSE3,SSE4.1,SSE4.2,AVX,POPCNT,AESNI,CLMUL,HTT,RDTSCP,CX16\r\n  cpuid_test.go:23: Cacheline bytes: 64\r\n  cpuid_test.go:24: L1 Instruction Cache: 32768 bytes\r\n  cpuid_test.go:25: L1 Data Cache: 32768 bytes\r\n  cpuid_test.go:26: L2 Cache: 262144 bytes\r\n  cpuid_test.go:27: L3 Cache: 20971520 bytes\r\n  cpuid_test.go:30: Yay - we have SSE 2\r\nPASS"}}