Losing pages from a mmap in threaded app vs. non-threaded

Jeff Roberson jroberson at chesapeake.net
Wed Nov 19 13:54:06 PST 2003


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 at freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> > > To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
> > >
> >
>



More information about the freebsd-threads mailing list