top shows '<swapped>'
Oliver Fromme
olli at lurza.secnetix.de
Wed May 9 16:16:52 UTC 2007
Ken Chen <ken73.chen at gmail.com> wrote:
> When I use 'top' command to check my system, some processes are shown like
> '<php>'. The manual told these processes are swapped out.
Actually it means that they're not mapped into RAM, but in
practice that should be the same.
Just out of cusiosity I grepped the kernel sources for the
PS_INMEM flag and found just two places where it could
possibly be cleared for a process: during creation of a
child process within the fork() system call, and when a
process is being swapped out.
> But my problem is .. I don't have swapping device (swapoff -a). Where are
> they swapped to ?
If you don't plan to configure any swap at all, I recommend
you build a kernel with "options NO_SWAPPING". It removes
the code for swapping processes from the kernel.
(By the way, I recommend you always configure some swap, even
if you don't intend to use it under normal circumstances,
except maybe on diskless machines.)
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
"If you think C++ is not overly complicated, just what is a protected
abstract virtual base pure virtual private destructor, and when was the
last time you needed one?"
-- Tom Cargil, C++ Journal
More information about the freebsd-stable
mailing list