[BETA7-panic] sodealloc(): so_count 1

Dan Nelson dnelson at allantgroup.com
Wed Oct 6 15:04:31 PDT 2004


In the last episode (Oct 06), Vlad said:
> > If you apply the crashdump_compress patch at
> > http://dan.allantgroup.com/FreeBSD/ , you can generate lzop or
> > gzip-compressed dumps.  lzop will let you dump 1GB of ram into 512MB of
> > swap, and gzip will do even better (but is much much slower).
> > 
> 
> I'll try that. One question: does that code has bounds checking
> mechanism, so there will be no data harmed (past swap partition) even
> if compressed dump will be bigger than swap partition?

Yes.  All of the functions that write data end up calling the
dump_write() function, which will fail if an attempt is made to write
outside the dump device. In addition, the code does a preliminary
compress to determine where it should start writing the dump.  If that
size is larger than your dumpdevice, it will print a "Dump failed.
Partition too small." error and won't write to disk at all.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-current mailing list