Re: [GENERAL] medical image on postgreSQL?

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] medical image on postgreSQL?
Date: 2003-04-11 23:06:03
Message-ID: 87wui0prc4.fsf@stark.dyndns.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


Sean Chittenden <sean(at)chittenden(dot)org> writes:

> Other zero copy socket operations are mmap() + write(), but last I heard,
> that was a FreeBSD only thing... for now. man 2 sendfile

There's a lot of resistance to the optimizating mmap+write in the linux camp.
It isn't just a matter of time, the developers there actively think this is a
bad idea. In fact the code has been written several times and is never
accepted. They think developers should be encouraged to use sendfile and the
common code path for write shouldn't be wasting cycles checking for special
cases in the page table.

Note that there are some protocol requirements for sendfile to be feasible.
There has to be zero alterations made to the data in flight. No escaping,
decompression, etc. And there has to be no cases when the program would want
to stop transmitting partway through. I think you can send a portion of a file
but you would have to know the size of the chunk up front and the best
performance would be if the chunk is very large.

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2003-04-11 23:29:01 Re: Batch replication ordering (was Re: [GENERAL] 32/64-bit
Previous Message P G 2003-04-11 22:57:44 Re: Has anyone seen this error? I cannot login into my database.

Browse pgsql-hackers by date

  From Date Subject
Next Message David Blasby 2003-04-11 23:20:59 backend dies when C function calls C++ library that throws an exception
Previous Message Stu Krone 2003-04-11 22:12:25 Re: How do you execute a postgresql function from perl?