X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 95F74310B7F for ; Tue, 1 Jul 2003 08:08:11 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 98290-09 for ; Tue, 1 Jul 2003 05:08:00 -0300 (ADT) Received: from ns1.pe-muc.de (unknown [193.98.167.13]) by svr1.postgresql.org (Postfix) with ESMTP id 1E978310B20 for ; Tue, 1 Jul 2003 05:08:00 -0300 (ADT) Received: from pe-muc.de (tofana.pe-muc.de [193.98.167.253]) by ns1.pe-muc.de (PE Postfix Mail Server (Linux 7.3 i386)) with ESMTP id B6445F3882; Tue, 1 Jul 2003 10:07:59 +0200 (CEST) Message-ID: <3F0141E0.50703@pe-muc.de> Date: Tue, 01 Jul 2003 10:10:08 +0200 From: Juraj Porada User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: de-de, de MIME-Version: 1.0 To: Shridhar Daithankar Cc: pgsql-performance@postgresql.org Subject: Re: slower with the time References: <3F013C85.2060202@pe-muc.de> <200307011318.00824.shridhar_daithankar@nospam.persistent.co.in> Content-Type: multipart/alternative; boundary="------------010106020508050605040009" X-Archive-Number: 200307/4 X-Sequence-Number: 2297 --------------010106020508050605040009 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit shared_buffers = 32 I don't have much experience in tuning the database, but I think there is a problem with a fragmentation of memory or so. I don't known backgrounds. Juraj Shridhar Daithankar schrieb: >On Tuesday 01 July 2003 13:17, Juraj Porada wrote: > > >>I insert data every second in my table. Every minute I delete from the >>table some row to keep max 10000 rows in the table. >>At the beginning deletes consume about 20% CPU time. After 24 houts >>every delete needs up tu 100% CPU time (updates too). >>Vacuuming doesn't help. >>After I restart postmaster, it works again very quick. >>Any ideas? >> >> > >Postmaster does not consume CPU for simple things like this unless it does not >have enough shared buffers. > >What is your shared buffer setting? Can you tune it according to available >RAM, dataset size and type of workload? > > Shridhar > > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > > --------------010106020508050605040009 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit shared_buffers = 32

I don't have much experience in tuning the database, but I think there is a problem with a fragmentation of memory or so.
I don't known backgrounds.

Juraj

Shridhar Daithankar schrieb:
On Tuesday 01 July 2003 13:17, Juraj Porada wrote:
  
I insert data every second in my table. Every minute I delete from the
table some row to keep max 10000 rows in the table.
At the beginning deletes consume about 20% CPU time. After 24 houts
every delete needs up tu 100% CPU time (updates too).
Vacuuming doesn't help.
After I restart postmaster, it works again very quick.
Any ideas?
    

Postmaster does not consume CPU for simple things like this unless it does not 
have enough shared buffers. 

What is your shared buffer setting? Can you tune it according to available 
RAM, dataset size and type of workload?

 Shridhar


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

  

--------------010106020508050605040009--