postgresql/src/backend/storage
Tom Lane 40d35036bb Avoid floating-point underflow while tracking buffer allocation rate.
When the system is idle for awhile after activity, the "smoothed_alloc"
state variable in BgBufferSync converges slowly to zero.  With standard
IEEE float arithmetic this results in several iterations with denormalized
values, which causes kernel traps and annoying log messages on some
poorly-designed platforms.  There's no real need to track such small values
of smoothed_alloc, so we can prevent the kernel traps by forcing it to zero
as soon as it's too small to be interesting for our purposes.  This issue
is purely cosmetic, since the iterations don't happen fast enough for the
kernel traps to pose any meaningful performance problem, but still it seems
worth shutting up the log messages.

The kernel log messages were previously reported by a number of people,
but kudos to Greg Matthews for tracking down exactly where they were coming
from.
2011-11-19 00:35:29 -05:00
..
buffer Avoid floating-point underflow while tracking buffer allocation rate. 2011-11-19 00:35:29 -05:00
file Change debug message from ereport to elog 2011-07-19 07:50:10 +03:00
freespace Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
ipc Derive oldestActiveXid at correct time for Hot Standby. 2011-11-02 08:54:56 +00:00
large_object Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
lmgr Revert removal of trace_userlocks, because userlocks aren't gone. 2011-11-10 17:54:27 -05:00
page Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
smgr Split work of bgwriter between 2 processes: bgwriter and checkpointer. 2011-11-01 17:14:47 +00:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00