Re: a question about Direct I/O and double buffering
От | Erik Jones |
---|---|
Тема | Re: a question about Direct I/O and double buffering |
Дата | |
Msg-id | 54F6CC69-51C5-4BA1-AC08-916279684C7D@myemma.com обсуждение исходный текст |
Ответ на | Re: a question about Direct I/O and double buffering (david@lang.hm) |
Ответы |
Re: a question about Direct I/O and double buffering
|
Список | pgsql-performance |
On Apr 5, 2007, at 3:33 PM, david@lang.hm wrote:
On Thu, 5 Apr 2007, Xiaoning Ding wrote:To the best of my knowledge, Postgres itself does not have a direct IOoption (although it would be a good addition). So, in order to use directIO with postgres you'll need to consult your filesystem docs for how toset the forcedirectio mount option. I believe it can be set dynamically,but if you want it to be permanent you'll to add it to your fstab/vfstabfile.I use Linux. It supports direct I/O on a per-file basis only. To bypass OS buffer cache,files should be opened with O_DIRECT option. I afraid that I have to modify PG.as someone who has been reading the linux-kernel mailing list for 10 years, let me comment on this a bit.linux does have a direct i/o option,
but it has significant limits on when and how you cna use it (buffers must be 512byte aligned and multiples of 512 bytes, things like that).
Also, in many cases testing has shon that there is a fairly significant performance hit for this, not a perfomance gain.
erik jones <erik@myemma.com>
software developer
615-296-0838
emma(r)
В списке pgsql-performance по дате отправления: