Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2002 12:04:47 -0600
From:      "Mike Meyer" <mwm-dated-1011290687.f8dfa8@mired.org>
To:        Chris Fedde <chris@fedde.littleton.co.us>
Cc:        questions@freebsd.org
Subject:   Re: cmp: Cannot allocate memory 
Message-ID:  <15424.31423.195391.368504@guru.mired.org>
In-Reply-To: <88415365@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Fedde <chris@fedde.littleton.co.us> 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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15424.31423.195391.368504>