Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2Ehj-0007gL-O7 for pgsql-admin@arkaria.postgresql.org; Tue, 09 Jun 2015 08:16:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z2Ehi-0003HI-Ej for pgsql-admin@arkaria.postgresql.org; Tue, 09 Jun 2015 08:16:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z2Ehh-0003HC-In for pgsql-admin@postgresql.org; Tue, 09 Jun 2015 08:16:13 +0000 Received: from mout.web.de ([212.227.17.12]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Z2EhZ-0005rO-K6 for pgsql-admin@postgresql.org; Tue, 09 Jun 2015 08:16:12 +0000 Received: from vm-mailsrv.lan.net ([87.155.107.154]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0Mb8wp-1YmdtR3Zr1-00KiXw; Tue, 09 Jun 2015 10:16:03 +0200 Received: from localhost (localhost [127.0.0.1]) by vm-mailsrv.lan.net (Postfix) with ESMTP id 4B79F18802; Tue, 9 Jun 2015 10:16:01 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -2.898 X-Spam-Level: X-Spam-Status: No, score=-2.898 tagged_above=-99.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, FREEMAIL_FROM=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from vm-mailsrv.lan.net ([127.0.0.1]) by localhost (vm-mailsrv.lan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 493bnJLTdR5d; Tue, 9 Jun 2015 10:15:57 +0200 (CEST) Received: from [10.94.76.50] (ipad.lan.net [10.94.76.50]) by vm-mailsrv.lan.net (Postfix) with ESMTP id AC6ED18800; Tue, 9 Jun 2015 10:15:57 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: cache Memory of server From: Jan Lentfer X-Mailer: iPad Mail (12D508) In-Reply-To: <24F2E095E199B041912675E4E3BBA011B097AA27@WEXCPPA018.fhhnet.stadt.hamburg.de> Date: Tue, 9 Jun 2015 10:15:57 +0200 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: <24F2E095E199B041912675E4E3BBA011B097A39C@WEXCPPA018.fhhnet.stadt.hamburg.de> <1de8696a86fac881688f0d463506f41a@imap.lan.net> <24F2E095E199B041912675E4E3BBA011B097AA27@WEXCPPA018.fhhnet.stadt.hamburg.de> To: "AL-Temimi, Muthana" X-Provags-ID: V03:K0:Ce67vzjcnu4iUKOeqt2wgxYxOHgjZtHCSBuyDyjRXZZpAT9C2de Zpe73WeGNW0hRXYBfmoA0WuInEtD21dlmI4kuG0px6s42SOHr3OknVeF5E739gkPJy6Xwlq mlkpNbadnmHFb1ecD/VuwC3MDMbcM82ZBtbzzVtNntagAfDwjgk4FWwTRbCcOGu0pt9vrsL +aTcJvhCWefmz5WNb42jg== X-UI-Out-Filterresults: notjunk:1;V01:K0:7JtJNZLlq9o=:2IgSaOHaWYN0uVuMZ1JgBp dPagmriHgGOQRYmI7xspv/5ef9TjxyxEuA3f3NdORrnw08rkS4IHWXQrPKNQNeHZZZxGIMLx7 d8scOZw4gtjCOZu1s5/ERiFoXlQeoQtwm9fxAzseZPZwjmKvQuehVZW/AF3jWpeTzd+VImhqo UTCSY3ikWOKbx732Estg4i//3FiaGcLWXQIg88j5ynvF2szo49xFKvQmF9e6ISyeVBjQMq5zn vcu3oBYAZNnlJU7Cv7h44fAGifCftFptbZ+C68FTzq9BPq2Dq9FZtW/PpECo7OBCDfZyuiXho 3hFIj4k3uEU85pmEzrJ8dnNxT7rMCuCL/RDIZAoymZceOvTNtW4jn7DBFe5W29aGstKtIcx+e YhV+zWBYCr6qvyLA7MFBLB9I26eF9/Wx4UPSWiE6bWxs6obAlZXiSlY2Tre0PGg/+OnKl8eob kAokZweFdgXsk+mCZrRH8nVPoZ3KgCZ96sb8VlvSbt8xukACEnNYCIbl+A5ifP083YdBnDlXf r3SNDOuQ/P8sP8v7yRuevfSct7eUynGcW58lCTwfuVcT412miD4IhfzqmhVtB5Tt66Z2Cz6/9 lBfMuYHZZpigZ6rx+LJji59ZcZ69crl4Zkk5TdEkqz6STpo/+FJqk6/VvnE+0JSLtDMwZ0R1C cQoSLzNlrpnMFWIDQI7cb0MZO75AL2wcGfs2FeKIjLAZ5k3x+00SLR2L0mUZUaZjapWY= X-Pg-Spam-Score: -1.9 (-) 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 Shared buffers seem too low to me, usually you go for 20 - 25% of RAM for a= dedicated DB server. work_mem also seems low, but that depends on your act= ual queries. You should at least log the usage of temp files and maybe look= into pgbadger to analyze your logs. Max_connections is way too high - espcially when you use a pooler. I get al= ong using ca. 100 connections serving several hundreds of users using jdbc = pooling. You might want to take a look at pgtune. Von meinem iPad gesendet > Am 09.06.2015 um 10:07 schrieb AL-Temimi, Muthana : >=20 > Hello Jan, >=20 > The shared_buffers ist 1024MB of the postgresql database and the kernel.s= hmmax=3D2147483648 (2GB) of linux OS. >=20 > And here is the some postgresql configurations: >=20 > work_mem=3D4MB > max_connections=3D2800 > shared_buffers=3D1024MB >=20 > and the configuration of pgpool=20 > init_childern=3D350 > max_pool=3D4 >=20 > Regards > Muthana >=20 > -----Urspr=C3=BCngliche Nachricht----- > Von: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresq= l.org] Im Auftrag von Jan Lentfer > Gesendet: Montag, 8. Juni 2015 16:23 > An: pgsql-admin@postgresql.org > Betreff: Re: [ADMIN] cache Memory of server >=20 > Am 2015-06-08 15:53, schrieb AL-Temimi, Muthana: >> See the free command: >>=20 >> am 08.06.2015 um 15:13 Uhr: --active connection: 305 >>=20 >> srvpgsql1:/opt/pgsql_data # free >>=20 >> total used free shared buffers cached >>=20 >> Mem: 12199684 8758400 3441284 1269784 231324 7139400 >>=20 >> -/+ buffers/cache: 1387676 10812008 >>=20 >> Swap: 6289404 0 6289404 >>=20 >>=20 >> ---------------------------------------------------------------------- >>=20 >>=20 >> am 08.06.2015 um 15:53 Uhr: --active connection: 278 >>=20 >> srvpgsql1:/opt/pgsql_data # free >>=20 >> total used free shared buffers cached >>=20 >> Mem: 12199684 8686228 3513456 1269784 232164 7164288 >>=20 >> -/+ buffers/cache: 1289776 10909908 >>=20 >> Swap: 6289404 0 6289404 >>=20 >=20 >=20 > That is basically what Scott said: you are watching the Kernel FS cache. = It may only be a coincidence that it increased together with the postgres s= essions. A high number here is usually somehting good, because a lot of you= r filesystems reads will be served from RAM. Looking at your numbers, I wou= ld say you are "all good" (except as Scott said, mabye try to reduce number= of parallel sessions) - big fs cache and still free RAM. > What are your settings for shared buffers btw? >=20 > Jan >=20 >=20 > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make ch= anges to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin