Re: autovacuum daemon stops doing work after about an hour

From: Vivek Khera <khera(at)kcilink(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: autovacuum daemon stops doing work after about an hour
Date: 2003-12-04 19:29:58
Message-ID: x71xrkjs95.fsf@yertle.int.kciLink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

>>>>> "MTO" == Matthew T O'Connor <matthew(at)zeut(dot)net> writes:

>> I'm running Postgres 7.4 release on FreeBSD 4.9-RELEASE.

MTO> I don't run FreeBSD, so I haven't tested with FreeBSD. Recently Craig
MTO> Boston reported and submitted a patch for a crash on FreeBSD, but that
MTO> doesn't sound like your problem. Could be some other type of platform
MTO> dependent problem.

Oh lucky me.

I think I found it. I compiled with -g -O and ran it under gdb, so
the output is line buffered. The last thing it prints out now is
this:

[2003-12-04 02:11:17 PM] 3 All DBs checked in: -786419782 usec, will sleep for -1272 secs.

since sleep() takes an unsigned int as its parameter, we are actually
sleeping for 4294966024 seconds == 136 years.

I recall reading about the negative time to test the dbs
somewhere... I guess I'll get on debugging that. The time keeper in
this box is pretty darned accurate otherwise (using ntpd).

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera(at)kciLink(dot)com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2003-12-04 19:38:40 Re: rebuilding rpm for RH9 error
Previous Message Gaetano Mendola 2003-12-04 19:29:42 Re: rebuilding rpm for RH9 error

Browse pgsql-performance by date

  From Date Subject
Next Message Vivek Khera 2003-12-04 19:44:41 Re: autovacuum daemon stops doing work after about an hour
Previous Message Jeff 2003-12-04 19:23:20 Re: Slow UPADTE, compared to INSERT