Re: autovacuum daemon stops doing work after about an hour - Mailing list pgsql-performance

From Vivek Khera
Subject Re: autovacuum daemon stops doing work after about an hour
Date
Msg-id x71xrkjs95.fsf@yertle.int.kciLink.com
Whole thread Raw
In response to autovacuum daemon stops doing work after about an hour  (Vivek Khera <khera@kcilink.com>)
List pgsql-performance
>>>>> "MTO" == Matthew T O'Connor <matthew@zeut.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@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: tuning questions
Next
From: Vivek Khera
Date:
Subject: Re: autovacuum daemon stops doing work after about an hour