>
> > autovacuum=> on
> > autovacuum_analyze_scale_factor=> 0.1
> > autovacuum_analyze_threshold =>50
> > autovacuum_freeze_max_age=>200000000
> > autovacuum_max_workers=>10
> > autovacuum_naptime => 60
> > autovacuum_vacuum_cost_delay => 20
> > autovacuum_vacuum_cost_limit =>-1
> > autovacuum_vacuum_scale_factor=>0.2
> > autovacuum_vacuum_threshold=>50
> > log_autovacuum_min_duration=>-1
> >
> >
> > Aumentamos o autovacuum_max_workers para 10 e mesmo assim todos eles
> > ficam alocados o tempo todo.O que pode estar acontecendo?
>
> Qual a versão do PostgreSQL?
>


> PostgreSQL 9.1.2 on amd64-portbld-freebsd8.2, compiled by cc (GCC) 4.2.1
> 20070719  [FreeBSD], 64-bit
>


> Comece colocando log_autovacuum_min_duration = 0 para saber todas as
> reais execuções em log. Fica mais fácil de fazer tuning com mais
> informações.
>


> 2012-06-13 15:20:26.410 BRT,,,2277,,4fd8d5be.8e5,3,,2012-06-13 15:02:38
>> BRT,30/6932,0,LOG,00000,"automatic vacuum of table
>> ""corepj.pg_catalog.pg_index"": index scans: 1
>
> 2012-06-13 15:20:45.512 BRT,,,52422,,4fd8d892.ccc6,1,,2012-06-13 15:14:42
>> BRT,11/22129,0,LOG,00000,"automatic vacuum of table
>> ""corepj.pg_catalog.pg_class"": index scans: 1
>
> 2012-06-13 15:20:51.579 BRT,,,79911,,4fd8d9fa.13827,1,,2012-06-13 15:20:42
>> BRT,12/12215,0,LOG,00000,"automatic vacuum of table
>> ""corepj.farm.pgfn_cnpj"": index scans: 1
>
> 2012-06-13 15:20:51.716 BRT,,,79911,,4fd8d9fa.13827,2,,2012-06-13 15:20:42
>> BRT,12/12216,888231654,LOG,00000,"automatic analyze of table
>> ""corepj.farm.pgfn_cnpj"" system usage: CPU 0.00s/0.00u sec elapsed 0.13
>> sec",,,,,,,,,""
>
> 2012-06-13 15:20:53.800 BRT,,,79911,,4fd8d9fa.13827,3,,2012-06-13 15:20:42
>> BRT,12/12218,0,LOG,00000,"automatic vacuum of table
>> ""corepj.farm.simples"": index scans: 1
>
> 2012-06-13 15:20:53.870 BRT,,,79911,,4fd8d9fa.13827,4,,2012-06-13 15:20:42
>> BRT,12/12219,888231793,LOG,00000,"automatic analyze of table
>> ""corepj.farm.simples"" system usage: CPU 0.00s/0.00u sec elapsed 0.07
>> sec",,,,,,,,,""
>
> 2012-06-13 15:21:00.598 BRT,,,2277,,4fd8d5be.8e5,4,,2012-06-13 15:02:38
>> BRT,30/6933,888232331,LOG,00000,"automatic analyze of table
>> ""corepj.pg_catalog.pg_index"" system usage: CPU 0.04s/0.02u sec elapsed
>> 34.18 sec",,,,,,,,,""
>
>
>

> Você pode alterar os parâmetros de autovacuum individualmente, por
> tabela, mas a forma de fazer isso varia entre as versões mais antigas e
> mais novas do PostgreSQL.
>
> Tentamos fazer isto para pg_catalog.pg_attribute mas a operação não nos
 foi permitida.Não é possivel alterar tabelas do pg_catalog.


> Autovacuum teve muitas melhorias e bugs resolvidos, por isso sem saber a
> versão exata é impossível te dizer o que pode estar havendo.
>
> []s
>
> Flavio Henrique A. Gurgel
> Consultor e Instrutor 4Linux
> Tel: +55-11-2125-4747
> www.4linux.com.br
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a