Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Log Buffer

21 views
Skip to first unread message

Colin Dawson

unread,
Jan 9, 2008, 6:29:26 AM1/9/08
to inform...@iiug.org

This has been asked before on CDI but no real explanation was given.


I have the following in the online.log:-

Checkpoint log record may not fit into the logical log buffer.
Recommended minimum value for LOGBUFF is 34.

So.... Can someone explain why and when this message is issued. In the past I've increased the value but I still receive a message to say the "Recommended minimum value" is two bytes greater than the LOGBUFF.


Regards

Colin


There are 10 types of people in the world, those that understand binary and those that don't


_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox.
http://www.searchgamesbox.com

Gustavo Castro

unread,
Jan 9, 2008, 10:00:09 AM1/9/08
to Colin Dawson, inform...@iiug.org
The checkpoint logical log record contains information about every
active transaction in the system at checkpoint time. The more active txs
you have the bigger the ckpt record

If the log record does not fit the log buffer, IDS cannot write it to
disk and an error and crash will happen to protect the integrity.

The warning is showed when the number of userthreads grows to the
dangerous limit (The fact that you have 1000 users does not necesarily
mean you will have 1000 active transaction, however the potential danger
exists).

To get rid of the problem your log buffer should be sized properly, the
proper size probably changes from version to version but a rough good
value should be:

40 + 24x[Max Number of userthreads]

this amount is in bytes.

For log buff of 32 KB this should give a max of 1300 userthreads...
what is your number of threads and log buf size?

Anyway I guess a log buffer of 32 KB for a 1500 user instance is too small.

Gustavo

> _______________________________________________
> Informix-list mailing list
> Inform...@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list
>
>

Colin Dawson

unread,
Jan 10, 2008, 8:30:28 AM1/10/08
to gcas...@bellsouth.net, inform...@iiug.org

I had the error with a 32Kb buffer so I doubled it to 64Kb and still got the error.

I regularly have 2400-2500 sessions connected to the DB so based on the formula you give the log buffer needs to be 40+24*2500/1024=58.6328125. Theoretically a 64Kb buffer should be ok.

Regards

Colin


There are 10 types of people in the world, those that understand binary and those that don't

> Date: Wed, 9 Jan 2008 10:00:09 -0500
> From: gcas...@bellsouth.net
> To: cjd_...@hotmail.com
> CC: inform...@iiug.org
> Subject: Re: Log Buffer

Gustavo Castro

unread,
Jan 10, 2008, 11:17:17 AM1/10/08
to Colin Dawson, inform...@iiug.org
The formula is just an approximation, you are very close of the edge,
maybe you had a connection spike.
0 new messages