Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2005 18:13:51 -0500
From:      Parv <parv@pair.com>
To:        Michal Mertl <mime@traveller.cz>
Cc:        delphij@delphij.net, Johan =?iso-8859-1?Q?Str=F6m?= <johan@stromnet.org>, pjd@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: Page fault, GEOM problem??
Message-ID:  <20051118231351.GA46946@holestein.holy.cow>
In-Reply-To: <1132353600.903.19.camel@genius1.i.cz>
References:  <991F35AA-151B-4AEA-82BD-5F4AEDF28424@stromnet.org> <a78074950511180117r6d64db25o4ae37c0c5998e002@mail.gmail.com> <74994962-5050-47BD-897B-DE3880B9EBD5@stromnet.org> <a78074950511180943r57fd9d03r64efcc705001bc35@mail.gmail.com> <A6F22EE2-B1E6-44B5-B4C2-E77E1A24FEBB@stromnet.org> <1132353600.903.19.camel@genius1.i.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <1132353600.903.19.camel@genius1.i.cz>, wrote Michal
Mertl thusly...
>
> Johan Ström wrote:
> > 
> > On 18 nov 2005, at 18.43, Xin LI wrote:
...
> > So, it seems it does run savecore after running dumpon and
> > mounting  disks etc... Is that wrong?
> 
> No, this is normal. When you run savecore you need to have mounted
> filesystems. In order to mount the filesystems they may have to be
> checked. The fsck program requires big amount of memory to check
> larger filesystems so the swap has to be enabled. Core dumps are
> written to the dump device (swap) from the end whereas the swap is
> normally used from the beginning (or the other way around).
> Therefore there's quite a big chance that, even when the swap has
> to be used for fsck, the core dump is intact and usable.

Is there any formula to calculate the size of swap to account for
fsck & core dump while assigning swap size (short of having two swap
partitions)?


> If the usage of the swap file by fsck corrupts the core dump you
> may start after next crash in single user mode and run the
> commands manually (without enabling swap).

Is that after kernel (re)boots?  And would the commands to be
executed be savecore followed by swapon?


  - Parv

-- 




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