Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: syslog perf...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 12 Topic 4158 of 4355
Post > Topic >>

Re: syslog performance when logging big statements

by achill@[EMAIL PROTECTED] (Achilleas Mantzios) Jul 8, 2008 at 06:21 PM

=CE=A3=CF=84=CE=B9=CF=82 Tuesday 08 July 2008 17:35:16 =CE=BF/=CE=B7 Tom
La=
ne =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5:
> Achilleas Mantzios <achill@[EMAIL PROTECTED]
> writes:
> > In this case, the INSERT *needs* 20 minutes to return. This is because
=
the logging through syslog seems to severely slow the system.
> > If instead, i use stderr, even with logging_collector=3Don, the same
st=
atement needs 15 seconds to return.
>=20
> Hmm.  There's a function in elog.c that breaks log messages into chunks
> for syslog.  I don't think anyone's ever looked hard at its performance
> --- maybe there's an O(N^2) behavior?
>=20
> 			regards, tom lane
>=20

Thanx,
i changed PG_SYSLOG_LIMIT in elog.c:1269 from 128 to 1048576
#ifndef PG_SYSLOG_LIMIT
/* #define PG_SYSLOG_LIMIT 128 */
#define PG_SYSLOG_LIMIT 1048576
#endif

and i got super fast stderr performance. :)

However, i noticed a certain amount of data in the log is lost.
Didnt dig much to the details tho.

--=20
Achilleas Mantzios

--=20
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 12 Posts in Topic:
syslog performance when logging big statements
achill@[EMAIL PROTECTED]   2008-07-08 15:24:46 
Re: syslog performance when logging big statements
tgl@[EMAIL PROTECTED] (T  2008-07-08 10:35:16 
Re: syslog performance when logging big statements
achill@[EMAIL PROTECTED]   2008-07-08 18:21:57 
Re: syslog performance when logging big statements
tgl@[EMAIL PROTECTED] (T  2008-07-08 14:34:01 
Re: syslog performance when logging big statements
achill@[EMAIL PROTECTED]   2008-07-09 15:31:05 
Re: syslog performance when logging big statements
threshar@[EMAIL PROTECTED  2008-07-08 15:00:06 
Re: syslog performance when logging big statements
tgl@[EMAIL PROTECTED] (T  2008-07-08 17:39:17 
Re: syslog performance when logging big statements
david@[EMAIL PROTECTED]   2008-07-08 17:47:34 
Re: syslog performance when logging big statements
achill@[EMAIL PROTECTED]   2008-07-09 15:37:26 
Re: syslog performance when logging big statements
achill@[EMAIL PROTECTED]   2008-07-09 15:51:30 
Re: syslog performance when logging big statements
ishii@[EMAIL PROTECTED]   2008-07-09 10:31:34 
Re: syslog performance when logging big statements
tgl@[EMAIL PROTECTED] (T  2008-07-08 22:08:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 3:57:18 CDT 2008.