On 19/10/15 23:18  Christoph R. Murauer wrote:
> Hello !
> 
> I readed the FAQ 4.8 about partioning my drive but have a little problem
> of understanding.
> 
> The machine has 32 GB physical RAM, the disc is a 256 GB SSD (yes, I know,
> I should not use swap on a SSD) and, I installed the latest snapshot from
> yesterday. So far so good.
> 
> Disklabel likes to create in auto layout b: swap with 23,2 GB and e: /var
> with 30,2 GB.
> 
> If I follow the FAQ, then core dumps should not work. I could resize swap
> and /var to have the same (or bigger size) as the physical RAM which is
> also no problem. My question - or better the things I don't understand (I
> found no informations and also had no panic message till now) are, which
> size had a core dump and, will core dumps work, if swap (on /var is enough
> place to copy the core dump file from swap to /var/crash after a reboot)
> is smaller then the physical RAM ? My question is meaned, that swap is
> only used for core dumps - nothing more.

The dumps have the size of the physical memory, perhaps a wee bit smaller.

The save dir does not need to be on /var, you can replace /var/crash
with a symlink that points to, say, a dir in /home or on some other
partition.

In theory savecore can compress the dump, I've never tried it, and I don't
know how much it buys. Rtfm savecore(8).

If you want to test it, don't need to wait for a panic. Rtfm ddb(4) how
to trigger the kernel debugger, once there just type boot crash. And
wait, with that machine it will take a while, I guess.

oh, and:
http://marc.info/?l=openbsd-misc&m=135672896123632&w=2
Never worked for me though, it didn't recover the dumps.
One day I'll figure out why.


tilo

Reply via email to