Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5WCM-0002d8-67 for pgsql-bugs@arkaria.postgresql.org; Wed, 25 May 2016 10:37:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5WCL-0000UC-FV for pgsql-bugs@arkaria.postgresql.org; Wed, 25 May 2016 10:37:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5WCL-0000U5-0G for pgsql-bugs@postgresql.org; Wed, 25 May 2016 10:37:57 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b5WCH-0001aK-Ch for pgsql-bugs@postgresql.org; Wed, 25 May 2016 10:37:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=Content-Type:MIME-Version:Reply-To:Message-ID:Subject:To: Sender:From:Date:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7dtnLT7fScxlq9M4fGnkIT7ZZHl6EiyexuQVd57femQ=; b=DHd0girBzAwRqtsAjJeo99C6bf 4lmSGOFcBAKpTkP8bWSIZYOh+ATqG6Lutizp3e+Z3KWwuhvl9GKI/Ifqe2yvXM6t6GY2Gm/bC+frI PQlWx935j6gRnsMtXtEO0/Jme; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.87) (envelope-from ) id 1b5WCE-0004bE-PR for pgsql-bugs@postgresql.org; Wed, 25 May 2016 12:37:50 +0200 Date: Wed, 25 May 2016 12:37:50 +0200 From: hubert depesz lubaczewski To: Postgres Bugs List Subject: Too high rate of progress information from pg_basebackup Message-ID: <20160525103750.GA12835@depesz.com> Reply-To: depesz@depesz.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, it looks that pg_basebackup, when using --progress information, outputs so much information that it puts cpu pressure on terminal application I'm using - whether it's simple xterm/rxvt, "screen" or "tmux" terminal multiplexers. My specific usecase is setting multiple slave servers for multiple clusters in AWS, so the data transmission between servers is pretty fast, but the jump host, that I run all the pg_basebackup (via ssh) from, is not really beefy, and with 4 concurrent pg_basebackups, I've seen tmux use up to 80% of CPU of the jump host. I filled bug report for tmux too, but since the problem can be repeated in xterm, rxvt, and screen, I think that perhaps it should be handled in some way in pg_basebackup too? For completeness sake: we're using pg_basebackup from 9.3.11 on ubuntu trusty. In my quick sanity-check test, it looks that progress information in our case is outputted with the speed of ~ 320KB/s. Which seems excessive. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs