Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 14:59:03 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Swapfile problem in 6?
Message-ID:  <200511151359.jAFDx3kx081672@lurza.secnetix.de>
In-Reply-To: <20051115063859.48741.qmail@web36205.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Rob <spamrefuse@yahoo.com> wrote:
 > Kris Kennaway <kris@obsecurity.org> wrote:
 > > Since you can compile a kernel without it, add DDB,
 > > WITNESS and INVARIANTS support, then trigger the
 > > deadlock with the swapfile, break to DDB and
 > > examine the state of the machine.  See the chapter
 > > on kernel debugging in the developers handbook for
 > > more instructions.
 > 
 > Thanks, but for now, I cannot compile a new kernel,
 > because the kernel compilation terminates with
 > insufficient swap space error. Apparently 32 MB is
 > not enough for a new kernel compilation.

Remove the "-pipe" option from CFLAGS and COPTFLAGS in your
/etc/make.conf file.  That will serialize compiler stages
that normally run in parallel, so it'll require less memory.
Also make sure that no processes run that you don't need,
i.e. kill cron, usbd, sendmail, ntpd and whatever else you
don't absolutely need.

I don't know if those measures will enable you to compile
the kernel with 32 Mbytes, but it's worth a try.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"C is quirky, flawed, and an enormous success."
        -- Dennis M. Ritchie.



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