I have some doubt regarding mmap function... As it is a known fact that when a file is mmap'd at that time no physical memory is allocated and when the process tries to accesses the data of mmap'd file at that time "page fault" occurs and then the data is brought from disk to RAM. This is what is called as demand
Could you please provide me reference where you read that mmap() implements on demand memory allocation? thanks, Rick -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/