Which pids are reserved for the kernel?
Hi!
I remember that I saw somewhere a parameter to define the minimum PID value for user processes, which means any PID that is below that is a kernel process. The thing is, I don't remember where... was it in my kernel config? How to read and define this value? THANKS! |
I'm afraid I have never heard about reserved PIDs. see here: http://en.wikipedia.org/wiki/Process_identifier. Can you please explain what do you mean?
|
Quote:
Code:
ps auxm You can e.g. guess that if PID < 300, this is a kernel process, so you'd better not try to kill it! The thing is, this is not always 300 and this number can be configured (and read). I just don't remember where. |
I see. There is no limit, there is no such number, it always depend on the actual configuration. There is no general rule.
|
Quote:
Quote:
I'll move this thread out of the Linux Security forum to the Kernel forum as this in no way is related to Linux Security. Next time please give a wee bit more thought to where you post, TIA. |
Quote:
fine :) Sorry, I've never seen there was kernel section! |
No need to be sorry, just have fun.
|
PID #1 (init) is hard-coded. This process-table entry is constructed "by hand" during kernel initialization, and this very special process cannot die. (If it does, the kernel panics.)
Some operating systems have several such "hand built" entries, and the definition and purpose of these special processes vary from system to system. "Kernel threads" are parts of the operating system kernel that are need to operate in an asynchronous fashion. (For instance, kswapd needs to perform disk I/O and to wait for completion of those I/O operations.) They are nevertheless "fully part of the kernel" and as such they operate by special rules. They will typically have low-numbered PIDs although there are no fixed assignments. |
All times are GMT -5. The time now is 07:21 PM. |