Tagged Questions
3
votes
0answers
94 views
Can I get WCHAN from ps on Mac OS X 10.7.4?
From the manual it seems that ps -AO wchan should tell me what everything is sleeping on, but everything comes up as -. (And nwchan as 0). Did they do away with the old sleep()/tsleep() interface in ...
9
votes
3answers
225 views
Where to find explanation of kernel processes?
I want to know about kernel processes, like [migration], [kswapd], etc. Where are kernel processes like these documented?
3
votes
2answers
272 views
How can you determine which process scheduler is being used?
I.e. is it the O(1) scheduler, the CFS scheduler, or an older one?
2
votes
1answer
246 views
How often is PSS value updated for a given process in /proc/pid/smaps
So if n processes are sharing a library L with size M then the contribution to their PSS is M/n.
Now imagine one of the process terminates. So the contribution would be M/(n-1).
Q1: My question is ...
4
votes
2answers
447 views
Are kernel threads really kernel processes?
I've read in many places that Linux creates a kernel thread for each user thread in a Java VM. (I see the term "kernel thread" used in two different ways:
a thread created to do core OS work and
a ...
4
votes
1answer
90 views
Is it the process that cleans itself on termination or the kernel?
Recently I found this in a powerpoint presentation:
When a program is compiled and linked, the linker inserts some extra code in the program. It is this code that calls the main function about the ...
3
votes
1answer
539 views
Will process ids be recycled? What if you reach the maximal id?
Process IDs are strictly increasing, but if your system runs long enough and there is a lot of processes terminating and starting, you could at some point reach the limit of the underlying integral ...
3
votes
1answer
236 views
What is the need of the struct thread_info in locating struct task_struct?
While reading through the Linux Device Drivers, I could understand that the Process Descriptor (of type struct task_struct) has all the info regarding a particular task. The process descriptors are ...
2
votes
1answer
328 views
Need for thread_info structure in Linux 2.6 Kernel
Prior to the Linux 2.6 kernel, struct task_struct was present at the end of the kernel stack of each process. There was no thread_info struct concept. But in Linux 2.6 kernel, instead of task_struct ...
1
vote
1answer
259 views
What is the size of the TaskList?
While reading through the Linux Kernel Development by Robert Love, I went through the following line :
The kernel stores the list of processes in a circular doubly linked list called the task ...
3
votes
2answers
587 views
Questions on Linux kernel internals
I was reading "Linux device drivers, 3rd edition" and faced a few kernel items I don't quite understand. Hope gurus on this forum will help me out.
Does the Linux kernel internally operate with ...
38
votes
3answers
16k views
How do I read from /proc/$pid/mem under Linux?
The Linux proc(5) man page tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me
$ cat /proc/$$/mem ...