From owner-freebsd-questions Thu Dec 7 06:11:42 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA14256 for questions-outgoing; Thu, 7 Dec 1995 06:11:42 -0800 (PST) Received: from buffnet4.buffnet.net (root@buffnet4.buffnet.net [205.246.19.13]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA14243 Thu, 7 Dec 1995 06:11:38 -0800 (PST) Received: from buffnet1.buffnet.net (mmdf@buffnet1.buffnet.net [205.246.19.10]) by buffnet4.buffnet.net (8.6.9/8.6.9) with SMTP id JAA17721; Thu, 7 Dec 1995 09:13:43 -0500 Received: from buffnet1.buffnet.net by buffnet1.buffnet.net id aa29888; 7 Dec 95 9:13 EST Date: Thu, 7 Dec 1995 09:13:56 -0500 (EST) From: Steve Hovey To: Terry Lambert cc: Jukka Ukkonen , questions@freebsd.org, hackers@freebsd.org Subject: Re: Any operational code using mmap() on FreeBSD ? In-Reply-To: <199512061919.MAA01711@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Wed, 6 Dec 1995, Terry Lambert wrote: > > Does anyone have a working example of code that uses mmap(2) > > on FreeBSD? I have tried several examples that have been quite > > all right on ConvexOS (10.2 and 11.0) and SunOS (4.1.[34]), > > but failed quite miserably when tried on FreeBSD (2.0.5). > > > > As I am beginning to suspect that mmap() is somehow different > > on FreeBSD from what it is on Convex or Sun (or maybe it has > > never really worked on FreeBSD) I would like to see a working > > example, if there is any available. If there is none, I'd better > > let that mmap() thing alone, and try to do something more useful. > > I would (and I'm sure John and other who are actually working on this > would!) like to see some small test cases with assertions for correct > results for the test cases you are interested in. Would this be possible? > MMAP under freebsd 2.05-R is broken. I run an INN news server on 2.0.5R and if I compiled it using MMAP, the correct values were not maintained in the active file. This problems occurred when usage got to the size that virtual ram swapping came into play.