Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2003 16:54:00 -0500 (EST)
From:      Jeff Roberson <jroberson@chesapeake.net>
To:        Sean McNeil <sean@mcneil.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Losing pages from a mmap in threaded app vs. non-threaded
Message-ID:  <20031119165234.D10222-100000@mail.chesapeake.net>
In-Reply-To: <1069278187.4118.0.camel@blue.mcneil.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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/<pid>/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"
> > >
> >
>



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