RE: Which process is associated with process ID 0 (swapper)

From: Hua Zhong
Date: Thu Apr 20 2006 - 18:15:14 EST


> >Linux really has swapper process ;)
> >
> To be precise, it has more than one.
>
> When you hit an OOPS, the trace [1] might show:
> "Pid: 0, comm: swapper Not tainted 2.6.11.6"
>
> Plus you see one of these per CPU [ps aufwwx]:
> root 106 0.0 0.0 0 0 ? S Apr20
> 0:04 [kswapd0]
>
> So, a question to the public: what swapper swaps, and what's
> swapper(as in pid 0) in oops, if there's no PID 0?

Swapper is the idle process, which swaps nothing. Its name is historic and it doesn't appear in /proc because for_each_process()
skips it.

Kswapd is totally different.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/