double fault

Mathieu Desnoyers compudj@krystal.dyndns.org
Wed Nov 23 18:09:00 GMT 2005


* Martin Hunt (hunt@redhat.com) wrote:
> > Did you try : 
> > 
> > - allocating the memory with kmalloc instead of vmalloc ?
> 
> Why would I do that?  What would I look for?  vmalloc already works.
> 

Memory allocated by vmalloc will generate a minor page fault when accessed from
kernel space on behalf of a different process. The page fault handler will
simply update the process'page table in that case. If the page fault handler is
instrumented for a minor fault and the logging code generates a page fault, it
clearly causes a double fault.

But as you only instrument sys_open, this case does not apply.

Mathieu

OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68 



More information about the Systemtap mailing list