Re: [PATCH] Revised fix for show_mem panic

From: John Marvin <>
Date: 2004-03-15 23:40:07
Oops. Usually I forget to include the patch. This time I sent the patch
without the intro text:

> Would it make sense to do only the first __get_user() _unless_ the
> "struct page" crosses a page?

Most likely. Although code that calls ia64_pfn_valid is going to be
dereferencing the page structure anyway, a page structure will always
cross a 1st level cache line, and will often cross a second level
cache line. The code may or may not touch both parts of the the
structure, so the test may prevent an unecessary cache line load,
and it won't take that many cycles to test for the case.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Mar 15 07:41:27 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST