X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7A9C08B9F83 for ; Wed, 9 Feb 2005 14:06:22 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98520-09 for ; Wed, 9 Feb 2005 14:06:12 +0000 (GMT) Received: from ro.mikronika.com.pl (ni.mikronika.com.pl [213.17.224.83]) by svr1.postgresql.org (Postfix) with ESMTP id 421C28B9F88 for ; Wed, 9 Feb 2005 14:06:14 +0000 (GMT) Received: from [192.168.0.56] (karol.mikronika.com.pl [192.168.0.56]) (authenticated bits=0) by ro.mikronika.com.pl (8.12.9/8.12.9/Debian-1) with ESMTP id j19E6BhZ008380; Wed, 9 Feb 2005 15:06:12 +0100 Message-ID: <420A18D3.8090107@mikronika.com.pl> Date: Wed, 09 Feb 2005 15:06:11 +0100 From: Karol Szkudlarek User-Agent: Mozilla Thunderbird 1.0 (X11/20041222) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: pgsql-odbc@postgresql.org Subject: Re: 500 times slower References: In-Reply-To: X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.047 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/42 X-Sequence-Number: 4932 Dave Page wrote: > > > Err, no neither am I. Why do you think it's got something to do with > Nagle/delayed ACKs? > > The only thing that instantly rings bells for me is that the max size of > a text field is 8190 bytes at present (which really should be increased, > if not removed altogether), which won't fit in the default buffer. But > then, I wouldn't expect to see the performance drop you describe with a > 4096 byte buffer, only one much smaller. > > Anyone else got any ideas? > > Regards, Dave > Hi Dave! In my test case I read LOB of 10 megabytes size. So then in the function (with 4kB SOCK_BUFFER_SIZE): SOCK_get_next_byte(SocketClass *self) below line (socket.c): self->buffer_filled_in = recv(self->socket, (char *) self->buffer_in, self->buffer_size, 0); runs in the following schema: 0msec, 200msec, 0msec, 200msec... etc. So above times suggest delayed ACK timer (200msec). Regards, Karol