As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm browsing through the source code of the GNU/Linux program top. I am trying to understand how it calculates the CPU usage by each process, but I'm not having much luck.
The source code in question is over at GitHub.
Like everything else in the procps toolkit, the data comes from the /proc virtual filesystem, managed by the OS and the Linux kernel. There is no "calculation" involved at all.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Are there any code samples or papers on the subject? I have not been able to find any resources directly related to the question after a bit of research.
It appears it has. I found two papers here and here, and there are probably other. The second one was published at NAACL (a high-quality conference) and contains a bunch of relevant references.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I was wondering how someone would go about adding Capability-based security to Erlang without making it into a new language and preserving maximum backwards compatibility on the application side?
If you really are interested in this you should read the Master's thesis by Gustaf Naeser on Safe Erlang
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
If I ran this command
#fsck
without arguments or options. Will it delete everything?
Normally, fsck will not cause any harm, unless you try to run it over mounted filesystem.
fsck over mounted filesystem will ask you if you want to proceed. And if you force it to proceed, then it is most likely to be very destructive. I have seen other people to use fsck this way and completely thrash Linux to the point that reinstall was necessary.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Tell me please the distribution with the most clear from patches kernel. I wanna try myself in kernel-module writing, and i suppose that a heavily-patched kernel can interfere me. thanks
The most vanilla distribution that I know of is Slackware.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Hey I have been given an essay to write about Processes and threads in the 2.6 Linux Kernel but we are unable to talk about the general concepts of processes and thread management. I am kind of stuck for material as I have only wrote about the history of Linux, what the kernel is and what it does, can anyone direct me to good sites or topics I should look into I am having a hard time finding something worthwhile
hope these initial pointers help
http://www.ibm.com/developerworks/linux/library/l-scheduler/
http://www.ibm.com/developerworks/linux/library/l-completely-fair-scheduler/
http://www.informit.com/articles/article.aspx?p=370047
Threads vs Processes in Linux