Re: swapon vs savecore dilemma

From: Poul-Henning Kamp <>
Date: Tue, 02 Sep 2003 07:36:04 +0200
In message <>, "Aaron Wohl" writes:
>I usualy have a number of swap partitions since the max size of  a swap
>partition is kind of limited.  I was thinking of changing it to do swapon
>twice.  The first time early in the boot would skip mounting any swap
>areas that had kernel core dumps.  Then after the savecore it could do
>swapon again to mount the rest of the swap areas.   Either that or have
>swaping start to allocate space at the oposite end of the swap space than
>savecore uses.  

Hmm, that was an unfortunate side effect.

The writing is only needed for marking the dump as "read", the same
effect could be had much cleaner by writing the signature of the dump
to a file in /var/ somewhere and not reading dumps already in that

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Mon Sep 01 2003 - 20:36:13 UTC

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