pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karol Szkudlarek <karol@mikronika.com.pl>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: 500 times slower
Date: Wed, 09 Feb 2005 15:06:11 +0100
Message-ID: <420A18D3.8090107@mikronika.com.pl> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E45289FE@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E45289FE@ratbert.vale-housing.co.uk>

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




view thread (7+ messages)  latest in thread

Message-ID: <420A18D3.8090107@mikronika.com.pl>
Permalink:  ../420A18D3.8090107@mikronika.com.pl/
Also on:    postgresql.org/message-id/420A18D3.8090107@mikronika.com.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: karol@mikronika.com.pl, dpage@vale-housing.co.uk
  Subject: Re: 500 times slower
  In-Reply-To: <420A18D3.8090107@mikronika.com.pl>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E45289FE@ratbert.vale-housing.co.uk> <420A18D3.8090107@mikronika.com.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox