* mmap and raw disk devices...
@ 2001-10-18 15:59 Christopher Quinn
2001-10-19 14:46 ` Eric W. Biederman
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Quinn @ 2001-10-18 15:59 UTC (permalink / raw)
To: linux-mm
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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mmap and raw disk devices...
2001-10-18 15:59 mmap and raw disk devices Christopher Quinn
@ 2001-10-19 14:46 ` Eric W. Biederman
0 siblings, 0 replies; 2+ messages in thread
From: Eric W. Biederman @ 2001-10-19 14:46 UTC (permalink / raw)
To: Christopher Quinn; +Cc: linux-mm
Christopher Quinn <cq@htec.demon.co.uk> writes:
> 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!
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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-19 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-18 15:59 mmap and raw disk devices Christopher Quinn
2001-10-19 14:46 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox