Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIw4A-0006sD-08 for pgsql-admin@arkaria.postgresql.org; Fri, 11 Oct 2019 14:38:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIw48-00055U-OC for pgsql-admin@arkaria.postgresql.org; Fri, 11 Oct 2019 14:38:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIw48-00055H-Ax for pgsql-admin@lists.postgresql.org; Fri, 11 Oct 2019 14:38:48 +0000 Received: from mx-p1.obspm.fr ([145.238.193.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iIw45-0004t2-6e for pgsql-admin@postgresql.org; Fri, 11 Oct 2019 14:38:46 +0000 Received: from io.chezmoi.fr (io-m.obspm.fr [145.238.184.193]) (authenticated bits=0) by mx-p1.obspm.fr (8.14.4/8.14.4/DIO Observatoire de Paris - 15/04/10) with ESMTP id x9BEcfLV129857 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 Oct 2019 16:38:42 +0200 Date: Fri, 11 Oct 2019 16:38:41 +0200 From: Albert Shih To: pgsql-admin@postgresql.org Subject: Strange behavior over WAN Message-ID: <20191011143841.GH14404@io.chezmoi.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (mx-p1.obspm.fr [145.238.193.20]); Fri, 11 Oct 2019 16:38:42 +0200 (CEST) X-Virus-Scanned: clamav-milter 0.101.4 at mx-p1.obspm.fr X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi We got a postgresql server with a very small database ( ~few Mo) and do a extract with a ruby (sequel) client. If I do the extract on the same server the speed is correct (10-30 sec) If I do the extract on the same LAN the speed is correct. (10-30 sec) If I do the extract from the wan the speed goes from slow to ultra-slow (reach the TTL and sometime the connection are close) (1 minutes -> 8 minutes) When this happen I try to see if they are some bandwith problem, and they don't have any bandwith problem ( ~10-20Mbytes/s 120-180Mbits/s), the size of the extraction (with tcpdump) are small (~2Mo). I also check the fragmentation of the tcp flow, when I'm on the wan they are x2 packets so I can understand they are slower than over the LAN but I can see how it's possible to go 50-60x slower. Any idea ? ....or solution ? Regards -- Albert SHIH Observatoire de Paris France xmpp: jas@obspm.fr Heure local/Local time: Fri 11 Oct 2019 04:27:48 PM CEST