From owner-freebsd-threads@FreeBSD.ORG Wed Nov 19 16:02:41 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10B2816A4CE for ; Wed, 19 Nov 2003 16:02:41 -0800 (PST) Received: from ms-smtp-01-eri0.socal.rr.com (ms-smtp-01-qfe0.socal.rr.com [66.75.162.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id E59A343FE3 for ; Wed, 19 Nov 2003 16:02:39 -0800 (PST) (envelope-from sean@mcneil.com) Received: from blue.mcneil.com (cpe-66-75-176-109.socal.rr.com [66.75.176.109])hAK02ZcX000581; Wed, 19 Nov 2003 16:02:36 -0800 (PST) Received: from [66.75.176.109] (mcneil.com [66.75.176.109]) by blue.mcneil.com (8.12.10/8.12.10) with ESMTP id hAK02OUe004970; Wed, 19 Nov 2003 16:02:24 -0800 (PST) (envelope-from sean@mcneil.com) From: Sean McNeil To: Jeff Roberson In-Reply-To: <20031119165234.D10222-100000@mail.chesapeake.net> References: <20031119165234.D10222-100000@mail.chesapeake.net> Content-Type: text/plain Organization: Sean McNeil Consulting Message-Id: <1069286544.4964.1.camel@blue.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 19 Nov 2003 16:02:24 -0800 Content-Transfer-Encoding: 7bit X-DCC-dmv.com-Metrics: blue.mcneil.com 1181; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-threads@freebsd.org Subject: Re: Losing pages from a mmap in threaded app vs. non-threaded X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2003 00:02:41 -0000 I think I know what the significance of the 8 pages is: I essentially write 8 pages at a time. So I think that those pages are getting moved from the proc vmspace map somehow after a thread writes to them. Where would the pages go? On Wed, 2003-11-19 at 13:54, Jeff Roberson wrote: > On Wed, 19 Nov 2003, Sean McNeil wrote: > > > Yes, I mentioned this in my original post. They all have the same > > problem. > > If you mount procfs you can look through the vm map for the process. You > want /proc//map I believe. Please note that the address returned by > your driver routine is a physical address that will be mapped by the > kernel at a new virtual address. User-space can pass you only the offset > into your memory range, and not a real address. > > Cheers, > Jeff > > > > > On Wed, 2003-11-19 at 13:38, Jeff Roberson wrote: > > > On Wed, 19 Nov 2003, Daniel Eischen wrote: > > > > > > > On Wed, 19 Nov 2003, Sean McNeil wrote: > > > > > > > > > OK, would this happen to be 8 pages typically? > > > > > > > > It depends; see the comment and ascii art in > > > > src/lib/libpthread/thread/thr_alloc.c. > > > > > > Have you tried with libc_r, libthr, and libkse? > > > > > > > > > > > -- > > > > Dan Eischen > > > > > > > > _______________________________________________ > > > > freebsd-threads@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > > > > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > > > > > > > > > >