Ecosyste.ms: Funds

An open API service for providing issue and pull request metadata for open source projects.

https://github.com/tklauser/numcpus

bsd cpu cputopology go golang linux numa offline online unix

Last synced: about 4 hours ago

Repository metadata:

Package numcpus provides information about the number of CPUs in the system.


Owner metadata:


Committers metadata

Last synced: about 7 hours ago

Total Commits: 190
Total Committers: 2
Avg Commits per committer: 95.0
Development Distribution Score (DDS): 0.305

Commits in past year: 44
Committers in past year: 2
Avg Commits per committer in past year: 22.0
Development Distribution Score (DDS) in past year: 0.455

Name Email Commits
Tobias Klauser t****r@d****h 132
dependabot[bot] 4****] 58

Issue and Pull Request metadata

Last synced: 1 day ago


Package metadata

go: github.com/tklauser/numcpus

Package numcpus provides information about the number of CPUs in the system. It gets the number of CPUs (online, offline, present, possible or kernel maximum) on Linux, Darwin, FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Solaris/Illumos or Windows systems. On Linux, the information is retrieved by reading the corresponding CPU topology files in /sys/devices/system/cpu. On BSD systems, the information is retrieved using the hw.ncpu and hw.ncpuonline sysctls, if supported. On Windows systems, the information is retrieved using the GetActiveProcessorCount and GetMaximumProcessorCount functions, respectively. Not all functions are supported on Darwin, FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Solaris/Illumos and Windows. ErrNotSupported is returned in case a function is not supported on a particular platform.

  • Homepage: https://github.com/tklauser/numcpus
  • Documentation: https://pkg.go.dev/github.com/tklauser/numcpus#section-documentation
  • Licenses: Apache-2.0
  • Latest release: v0.7.0 (published 12 months ago)
  • Last Synced: 2024-11-09T00:07:40.012Z (1 day ago)
  • Versions: 13
  • Dependent Packages: 7,242
  • Dependent Repositories: 15,502
  • Docker Downloads: 8,953,489,419
  • Rankings:
    • Dependent packages count: 0.026%
    • Docker downloads count: 0.041%
    • Dependent repos count: 0.058%
    • Average: 3.277%
    • Forks count: 7.427%
    • Stargazers count: 8.835%

Dependencies

go.mod go
  • golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
go.sum go
  • golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
.github/workflows/static-analysis.yml actions
  • actions/checkout ac593985615ec2ede58e132d2e21d2b1cbd6127c composite
  • actions/setup-go 6edd4406fa81c3da01a34fa6f6343087c207a568 composite
.github/workflows/test.yml actions
  • actions/checkout ac593985615ec2ede58e132d2e21d2b1cbd6127c composite
  • actions/setup-go 6edd4406fa81c3da01a34fa6f6343087c207a568 composite