mmap and raw disk devices...
Hello list,
I tried to mmap a disk partition raw device which failed. Can anyone tell me the reason mmap does not support such a device?
I would have thought a mmap/raw-device combination to be ideal as a basis for a high performance database system.
I know there is the option of managing memory<->disk movements oneself, but my understanding is that handling page-faults via signal trap handling is *very* expensive. Far better to leave such matters in the hands of the OS.
I suspect there is some fundamental reason for not mmap'ing raw devices that is patently obvious to everyone but me!
Thanks,
Chris Quinn
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Quoted 8 lines · Christopher Quinn
Hello list,
I tried to mmap a disk partition raw device which failed. Can anyone tell me the reason mmap does not support such a device?
I would have thought a mmap/raw-device combination to be ideal as a basis for a high performance database system.
Quoted 7 lines
I know there is the option of managing memory<->disk movements oneself, but my understanding is that handling page-faults via signal trap handling is *very* expensive. Far better to leave such matters in the hands of the OS.
I suspect there is some fundamental reason for not mmap'ing raw devices that is patently obvious to everyone but me!
mmap goes through the page cache. It should work in 2.4.10+ though someone might not have enabled it.
Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/