From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 28 16:51:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D4A116A4CE for ; Sun, 28 Nov 2004 16:51:17 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id C11BE43D5C for ; Sun, 28 Nov 2004 16:51:15 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual.digiware.nl [212.61.27.71]) by freebee.digiware.nl (8.13.1/8.13.1) with ESMTP id iASGp0PF033657; Sun, 28 Nov 2004 17:51:10 +0100 (CET) (envelope-from wjw@withagen.nl) Message-ID: <41AA01F3.20007@withagen.nl> Date: Sun, 28 Nov 2004 17:50:59 +0100 From: Willem Jan Withagen User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Gilbert References: <16807.43982.791254.46022@canoe.dclg.ca> In-Reply-To: <16807.43982.791254.46022@canoe.dclg.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Dumps with more than 4gig. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 16:51:17 -0000 David Gilbert wrote: > Did someone submit a patch that fixes dumps in excess of 4 Gig on > arches like amd64? About half a year ago I had some discussion on am64 when I was not able to dump th kernel when having 2GB of memory... That got fixed, and after some talks a different solution was chosen because that would be more universal. From your question I conclude that it did not solve the whole problem.... I I remember correctly I suggested taking a size_t len for the action to write the core. But it was fixed in one layer up by writing multiple blocks and calling the routine more times. Now if I could only remember where that was.... But I started searching from amd64/amd64/dump_machdep.c I guess that you'd have to start there also, after which you'll end up with the disk io-specific module dumpers: ---- cam/scsi/scsi_da.c:static dumper_t dadump; dev/aac/aac_disk.c:static dumper_t aac_disk_dump; dev/amr/amr_disk.c: sc->amrd_disk->d_dump = (dumper_t *)amrd_dump; dev/ata/ata-disk.c:static dumper_t addump; dev/ata/ata-raid.c:static dumper_t ardump; dev/ida/ida_disk.c:static dumper_t idad_dump; dev/null/null.c: return (set_dumper(NULL)); dev/twe/twe_freebsd.c: sc->twed_disk->d_dump = (dumper_t *)twed_dump; ---- For the specific details. I perhaps it even depends on what kind of storage you're using --WjW