Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJZ1C-0006Sv-HK for pgsql-admin@arkaria.postgresql.org; Wed, 21 Dec 2016 05:00:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJZ1C-0006uh-2c for pgsql-admin@arkaria.postgresql.org; Wed, 21 Dec 2016 05:00:46 +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 1cJZ1B-0006uJ-AD for pgsql-admin@postgresql.org; Wed, 21 Dec 2016 05:00:45 +0000 Received: from forward17m.cmail.yandex.net ([2a02:6b8:b030::9e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cJZ17-0004Qr-2J for pgsql-admin@postgresql.org; Wed, 21 Dec 2016 05:00:44 +0000 Received: from mxback3m.mail.yandex.net (mxback3m.mail.yandex.net [37.140.138.63]) by forward17m.cmail.yandex.net (Yandex) with ESMTP id 41ECF21ED0 for ; Wed, 21 Dec 2016 08:00:38 +0300 (MSK) Received: from web16m.yandex.ru (web16m.yandex.ru [37.140.138.107]) by mxback3m.mail.yandex.net (nwsmtp/Yandex) with ESMTP id A7sL1KK9ZN-0b18MhWh; Wed, 21 Dec 2016 08:00:37 +0300 Received: by web16m.yandex.ru with HTTP; Wed, 21 Dec 2016 08:00:37 +0300 From: neos@olansoft.com To: pgsql-admin@postgresql.org Subject: Too long startup time after crash. MIME-Version: 1.0 Message-Id: <4504221482296437@web16m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Wed, 21 Dec 2016 10:00:37 +0500 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi. After the upgrade postgresql had a strange behavior. After the crash, server launch was take a long time, up to 30-40 minutes sometimes. When connecting to the server (as well as in the log), the message - "the database system is starting up". Startup process consumes 0.4 - 1% CPU. Tried different version 9.5.[2,3,4], 9.6.1 (9.4 works fine). On the Internet this problem is not met, perhaps the problem lies in a combination of different factors (configuration database, the Linux kernel), may be my config is wrong? Technical details: Gentoo Linux 4.4.2-hardened current pg version 9.6.1 ## pg config: listen_addresses = '*' port = 5432 max_connections = 500 shared_buffers = 2048MB temp_buffers = 16MB work_mem = 64MB maintenance_work_mem = 512MB max_stack_depth = 4MB dynamic_shared_memory_type = posix wal_level = replica wal_buffers = 8MB checkpoint_completion_target = 0.85 archive_mode = on archive_command = 'gzip < %p > /home/pgbasebackup/xlogs/%f.gz' max_wal_senders = 3 effective_cache_size = 9GB log_min_duration_statement = 1500 log_timezone = 'Asia/Yekaterinburg' datestyle = 'iso, dmy' timezone = 'Asia/Yekaterinburg' lc_messages = 'ru_RU.UTF-8' lc_monetary = 'ru_RU.UTF-8' lc_numeric = 'ru_RU.UTF-8' lc_time = 'ru_RU.UTF-8' default_text_search_config = 'pg_catalog.russian' plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";' ## end of config --  Thanks, Vitaliy -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin