From owner-freebsd-alpha@FreeBSD.ORG Sat Apr 24 04:24:12 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0576416A4CE for ; Sat, 24 Apr 2004 04:24:12 -0700 (PDT) Received: from mail.dt.e-technik.uni-dortmund.de (mail.dt.e-technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5309C43D58 for ; Sat, 24 Apr 2004 04:24:11 -0700 (PDT) (envelope-from matthias.andree@gmx.de) Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])52A95291C7 for ; Sat, 24 Apr 2004 13:24:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id EB638B6E7E for ; Sat, 24 Apr 2004 13:24:08 +0200 (CEST) Received: from merlin.emma.line.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30520-03 for ; Sat, 24 Apr 2004 13:24:07 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 5DBB891342; Sat, 24 Apr 2004 13:24:07 +0200 (CEST) Date: Sat, 24 Apr 2004 13:24:07 +0200 From: Matthias Andree To: freebsd-alpha@freebsd.org Message-ID: <20040424112407.GA7890@merlin.emma.line.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at m2a2.dyndns.org Subject: (fwd) mmap problem on OpenBSD(i386) and FreeBSD(Alpha) X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2004 11:24:12 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Please see the attached mail about a "mman" subsystem problem on FreeBSD-alpha. Please CC: me on all replies, I am not on the list. -- Matthias Andree --6c2NcOVqGQ03X4Wi Content-Type: message/rfc822 Content-Disposition: inline Return-Path: Delivered-To: GMX delivery to matthias.andree@gmx.de Received: (qmail 29784 invoked by uid 65534); 23 Apr 2004 12:29:12 -0000 Received: from mx1.fujixerox.co.jp (EHLO mx1.fujixerox.co.jp) (192.26.96.11) by mx0.gmx.net (mx016) with SMTP; 23 Apr 2004 14:29:12 +0200 Received: from isvw1.fujixerox.co.jp ([129.249.27.131]) by mx1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id i3NCSNP00925; Fri, 23 Apr 2004 21:28:23 +0900 (JST) Received: from ns1.fujixerox.co.jp (isvw1 [129.249.27.131]) by isvw1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id i3NCSML03690; Fri, 23 Apr 2004 21:28:22 +0900 (JST) Received: from mail.hama.sak.fujixerox.co.jp (mail.hama.sak.fujixerox.co.jp [143.94.16.240]) by ns1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id i3NCSMA23251; Fri, 23 Apr 2004 21:28:22 +0900 (JST) Received: from [143.94.16.19] (hama016019.hama.sak.fujixerox.co.jp [143.94.16.19])i3NCSLg01663; Fri, 23 Apr 2004 21:28:21 +0900 (JST) Date: Fri, 23 Apr 2004 21:27:47 +0900 From: Mikio Hirabayashi To: matthias.andree@gmx.de Subject: mmap problem on OpenBSD(i386) and FreeBSD(Alpha) Cc: kris@obsecurity.org, relson@osagesoftware.com, gyepi@praxis-sw.com, fuyuki@nigredo.org, sbellon@sbellon.de Message-Id: <20040423205111.7E50.MIKIO@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.05.10 Hi, (This mail is sent to qdbm-user ML also.) I tested QDBM on BSD platforms and found problems about using mmap. On OpenBSD(i386), the test suite failed by `no item' error. This problem is not caused if QDBM was built with `--enable-nommap'. When using `mmap', the system call `write' seems not to work right way. Though the return value is 0, nil codes are written instead of data of the parameter. On FreeBSD(Alpha), the test suite failed by `memory mapping' error. This problem is also not caused if QDBM was built with `--enable-nommap'. `msync' fails if the size of mapping region is larger than about 1.2MB (bnum is 16300). Does anyone know the reason for these problems? For the nonce, the next version will disable mmap features as for the two platforms. Regards. // Mikio Hirabayashi --6c2NcOVqGQ03X4Wi--