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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux