On 13-09-2016 13:54, Luiz Henrique wrote:
> Pessoal,
>
> Estou vendo muitas mensagens (logo abaixo) no log PostgreSQL. Sei que é
> utilização do disco ao invés da memória. É muito constante, praticamente
> direto a cada minuto!
>
> Vocês poderiam me ajudar a diagnosticar ?
> Como reduzir ?
> O que fazer para melhorar ?
> O que seria um número aceitável ?
>
> Segue abaixo alguns parametros no postgresql.conf. Obrigado pelas dicas!
>
> Dados do S.O.
>
> Linux CentOS
> Postgresql 9.1
>
> Dados da Lâmina :
>
> SUN MICROSYSTEMS SUN BLADE X6270 M2 SERVER
> Intel(R) Xeon(R) CPU E5620 2.40GHz
> RAM 70 GB
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda2 9.8G 1.3G 8.1G 14% /
> tmpfs36G 0 36G 0% /dev/shm
> /dev/sda1 488M 67M 396M 15% /boot
> /dev/sda5 256G 5.8G 237G 3% /var
> /dev/sdd1 493G 312G 156G 67% /var/lib/pgsql
> /dev/sde1 985G 650G 285G 70% /var/backups
>
> Postgresql.conf
>
> shared_buffers = 32GB
> temp_buffers = 48MB
> work_mem = 16MB
> maintenance_work_mem = 512MB
> effective_cache_size = 45GB
>
> Trecho do log :
>
> 2016-09-13 13:23:02 BRT [18063]: [33-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.15", size 10019576
> 2016-09-13 13:23:03 BRT [18063]: [35-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.16", size 10443496
> 2016-09-13 13:23:04 BRT [18063]: [37-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.17", size 10019576
> 2016-09-13 13:23:05 BRT [18063]: [39-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.18", size 10443496
> 2016-09-13 13:23:06 BRT [18063]: [41-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.19", size 10019576
> 2016-09-13 13:23:07 BRT [18063]: [43-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.20", size 10443496
> 2016-09-13 13:23:07 BRT [18063]: [45-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.21", size 10019576
> 2016-09-13 13:23:08 BRT [18063]: [47-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.22", size 10443496
> 2016-09-13 13:23:09 BRT [18063]: [49-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.23", size 10019576
> 2016-09-13 13:23:32 BRT [18063]: [51-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.24", size 10443496
> 2016-09-13 13:23:32 BRT [18063]: [53-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp18063.25", size 10019576
> 2016-09-13 13:25:19 BRT [17440]: [28-1] user=xyz,db=xyz,client=a.b.c.d
> LOG: temporary file: path "base/pgsql_tmp/pgsql_tmp17440.10", size 53116928
>
Considere aumentar o seu "work_mem" e verifique novamente. Não precisa
de "restart", basta um "reload" para efetivar a alteração.
Att,
--
Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
___
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral