Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2007 14:32:22 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        alc@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   "Out of swap" process killer endless loop
Message-ID:  <20070419183222.GA80973@xor.obsecurity.org>

next in thread | raw e-mail | index | archive | help

--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

One of my machines ran out of swap and tried to kill off a process.
Unfortunately the process it picked was swapped out and seems to be
unkillable:

swap_pager_getswapspace(16): failed
pid 55455 (mtree), uid 0, was killed: out of swap space
pid 55455 (mtree), uid 0, was killed: out of swap space
pid 55455 (mtree), uid 0, was killed: out of swap space
pid 55455 (mtree), uid 0, was killed: out of swap space
pid 55455 (mtree), uid 0, was killed: out of swap space
pid 55455 (mtree), uid 0, was killed: out of swap space
KDB: enter: Break sequence on console
[thread pid 16 tid 100008 ]
Stopped at      kdb_enter+0x31: leave
db> wh 55455
Tracing pid 55455 tid 100190 td 0xffffff0089aea000
sched_switch() at sched_switch+0x130
mi_switch() at mi_switch+0x28e
sleepq_switch() at sleepq_switch+0x106
sleepq_wait() at sleepq_wait+0x67
_sleep() at _sleep+0x2db
vm_waitpfault() at vm_waitpfault+0x65
vm_fault() at vm_fault+0x148
trap_pfault() at trap_pfault+0x130
trap() at trap+0x287
calltrap() at calltrap+0x8
--- trap 0xc, rip = 0x80076a3cc, rsp = 0x7fffffff65d8, rbp = 0x780 ---

55455     1 22461     0  SLJ     pfault   0xffffffff805fba98 mtree

Actually they are all swapped out (I guess the rest of swap is in use
by a swap-backed md, although I don't know how it managed to fill up).
Is there anything that can be done in this situation?

kris


--wac7ysb48OaltWcw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGJ7W2Wry0BWjoQKURArCmAJ9EXqZQweiI7Gpg827cmOozWXaqJwCeLjOT
86BXis/NQ+k6Q6jJFfBAeQA=
=672l
-----END PGP SIGNATURE-----

--wac7ysb48OaltWcw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070419183222.GA80973>