From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5301 invoked from network); 16 Mar 1999 13:18:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Mar 1999 13:18:57 -0000 Received: from ares.cs.Virginia.EDU (ares.cs.Virginia.EDU [128.143.136.41] (may be forged)) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA15955 for ; Tue, 16 Mar 1999 08:09:24 -0500 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.9.2/8.9.2/UVACS-1999030200) with ESMTP id IAA05738 for ; Tue, 16 Mar 1999 08:09:23 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.8.5/8.8.5) id IAA04803 for axp-list@redhat.com; Tue, 16 Mar 1999 08:09:23 -0500 (EST) Message-Id: <199903161309.IAA04803@adder.cs.Virginia.EDU> Subject: Re: > 1GB on alpha. Patch to 1TB? To: axp-list@redhat.com Date: Tue, 16 Mar 1999 08:09:22 -0500 (EST) In-Reply-To: <199903160512.AAA03495@alpha1.estabrook.org> from "Jay.Estabrook@digital.com" at Mar 16, 99 00:12:19 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > In a machine which has more > than 16Mb of memory, a device driver could allocate a buffer in the low 16Mb > of the address space, do the device DMA to that buffer, and then copy the > data out of that buffer to a memory location above 16Mb, hence the name > "bounce buffer". This is not how the current SCSI system does it (linux/drivers/scsi/sd.c). For writes from an un-DMAable buffer, it allocates in low memory, copies, and then writes. If I'm reading the code correctly, for reads, the code simply allocates a buffer in DMAable memory. No copy, no use of high memory. This has the bad side-effect of limiting your disk buffers to that area in memory, and increases pressure on that memory. But it doesn't waste any time copying. It would be fairly simple to extend this code to use a bounce buffer if the system was running low on DMAable memory. -- g