Re: pte-highmem-5

Hugh Dickins
2002-01-17T16:07:00Z

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