-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: What does syscall.Sysinfo_t.Procs mean? #23438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's the same as calling sysinfo in C. http://man7.org/linux/man-pages/man2/sysinfo.2.html EDIT: Forgot to add, on linux, every thread is considered a process so you can say sysinfo.procs is how many threads are running |
Hi, The Go project does not use its bug tracker for general discussion or asking questions about the language. The Github bug tracker is only used for tracking bugs and proposals going through the Proposal Process. Please see the Questions wiki page; it has a list of good places for asking questions. Thanks! |
@odeke-em , got that, thanks very much :). |
Thank you @k82cn! Actually your issue reminded me of #4318 -- an issue that's still open, focused on how under-documented the syscall package is. I believe that if we had documented it, you'd easily get the answer. If interested in helping to solve that issue, once you get some answers, please feel free to send some patches documenting syscall.SysInfo and the struct; it would be a great contribution for future self and to others, we'll be grateful. |
sure; I'd like to help it :). |
I'm a little confused about the output of following code, anyone can give a suggestion?
The output is:
What version of Go are you using (
go version
)?go version go1.9.2 linux/amd64
Does this issue reproduce with the latest release?
should be
What operating system and processor architecture are you using (
go env
)?xref kubernetes/kubernetes#57136
The text was updated successfully, but these errors were encountered: