Mikhail Teterin wrote:
> Hello!
>
> My program reads input files via mmap "transparently", which works alright.
>
> I'd now like to learn about each pagefault it incurs -- when the area of the
> mmap-ed file is not already in RAM memory. Is there a way to do it?
>
> I tried catching SIGSEGV, but that does not have any effect... Thanks!
>
> -mi


I don't think you can get this with any of the standard APIs. However,
most recent versions of Unix and Linux have a proc file system, and
there may be a way to get at the information through that. Note that
this is highly system specific, and probably not that easy to do.