Re: BUG: unable to handle kernel paging request at ffff8800cf669000

From: AmÃrico Wang
Date: Mon Jan 17 2011 - 01:58:10 EST


On Fri, Jan 14, 2011 at 04:30:51PM -0700, xing lin wrote:
>Hi,
>
>I wrote a kernel module to calculate the hash for each page frame, in
>order to see how many pages are duplicated. It works well in 32-bit
>Linux with 2GB physical memory. But when I tried to run this module in
>64-bit Linux(2.6.32-24-generic with NUMA enabled) with 12GB physical
>memory, it can calculates hashes for the first 63553 in-use pages but
>then reports a bug when the page frame number reaches 849513. This
>page frame should be in use since the count for the page instance is
>1. I do not know why sha_transform results in a page_fault(the data to
>be digested is the page which should be in memory). Would anyone give
>me some hints? Thanks.
>

Isn't this what KSM does? :) Check mm/ksm.c, it uses jhash2().

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