From owner-freebsd-questions Sat Jan 12 10: 4:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-201-166.mmcable.com [65.31.201.166]) by hub.freebsd.org (Postfix) with SMTP id 979BF37B402 for ; Sat, 12 Jan 2002 10:04:53 -0800 (PST) Received: (qmail 66837 invoked by uid 100); 12 Jan 2002 18:04:47 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15424.31423.195391.368504@guru.mired.org> Date: Sat, 12 Jan 2002 12:04:47 -0600 To: Chris Fedde Cc: questions@freebsd.org Subject: Re: cmp: Cannot allocate memory In-Reply-To: <88415365@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.43 (Python 2.2; freebsd-4.4-STABLE-i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chris Fedde types: > On Wed, 9 Jan 2002 21:01:00 -0800 James Long wrote: > It seems silly to me that the utility would be written this way. > I'd have expected that it would be written in terms of read(2) > rather than mmap(2). Still you may be able to fix this by bumping the value > of vm.max_proc_mmap with sysctl. mmap is much faster than read - why copy all that data through the kernel if you don't have to? However, it ought to switch to read if the mmap fails. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message