Bug #18805
closed
- Status changed from New to In Progress
- Subject changed from remove unnecessary C from our codebase to make it easy to compile our go binaries statically
LGTM.
For posterity, we determined C.sysconf(C._SC_CLK_TCK) always returns 100. The reason USER_HZ exists in the first place is to scale measurements based on the kernel-configurable HZ value to the units expected by lots of existing userland code that assumed HZ was always 100. IOW, USER_HZ is non-configurable constant by design. It is 100 on all platforms except alpha and ia64, i.e., on all platforms that have Go runtimes. Another data point: there's a Go sysconf library (https://github.com/tklauser/go-sysconf) whose _SC_CLK_TCK func just returns 100 instead of doing a syscall.
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Also available in: Atom
PDF