Re: pte-highmem-5

Hugh Dickins (hugh@veritas.com)
Thu, 17 Jan 2002 16:08:15 +0000 (GMT)


On Thu, 17 Jan 2002, Andrea Arcangeli wrote:
> On Thu, Jan 17, 2002 at 12:14:13PM +0000, Hugh Dickins wrote:
> >
> > But people should realize that moving page tables and other such
> > structures into not-always-mapped highmem will make them harder to
> > access with kernel debuggers - I think those will want some changes.
>
> the debugging prospective is probably the one I care less (you can
> always drop a __GFP_HIGHMEM into the right alloc_pages to get the memory
> direct mapped) that's most of the time a one liner in just one place.

I was thinking there of peering at a crashed kernel with some debugger,
trying to see the page tables (or whatever). In most cases, if they're
relevant to the problem, they will already be kmapped (or perhaps the
problem would just be that they're not). The maintainers of debuggers
will probably need to add something to help find the right mapping.

But you're right, Linux is not primarily designed as a platform for
kernel debuggers, and that should not stop progress: sooner or later
we have to extend use of highmem, you've found good reason to extend
it to page tables (and Christoph's shmem index is a very similar case).

Hugh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/