Re: swapon vs savecore dilemma

From: Doug Barton <DougB_at_FreeBSD.org>
Date: Tue, 2 Sep 2003 00:17:04 -0700 (PDT)
On Tue, 2 Sep 2003, Matthew D. Fuller wrote:

> On Tue, Sep 02, 2003 at 12:58:40AM -0600 I heard the voice of
> Scott Long, and lo! it spake thus:
> >
> > I still think that the real problem is in running swapon before
> > savecore.  In 99% of the cases out there, RAM scales with storage,
> > so I really can't imaging fsck needing to swap, and certainly not
> > in it's 'preen-before-background' mode.
>
> Note also that (last I heard, anyway) this is often "worked around", or
> non-issued, by us allocating swap from the "bottom" of the partition up,
> and coredumps happening from the "top" down.  So, if you've got 512 megs
> of swap, and 128 megs of ram, you'd need to use 384 megs of swap (+/-
> housekeeping) before you corrupted your core.

I agree that this _should_ be the case, but I've seen the advice of
putting in swap space equal to the amount of memory often enough to make
me nervous that this is a safe assumption.

Doug

-- 

    This .signature sanitized for your protection
Received on Mon Sep 01 2003 - 22:17:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC