![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Hi Dudes, Hi Piotr, That looks pretty good. You clearly have a lot of buffers configured. At least 3584 and have only managed to use that many once. 16 log writer threads may be a bit small for that number of buffers. It might be worthwhile trying to increase that value substantially given the number of times we see 'All logwriters busy'. You might like to check how many threads your allowed to start first. I'll take that back now. I just tried setting the number of log_writer_threads up substantially (to 150) on a Linux IngresII2.6 and promptlly put the server into a spin. 100% cpu! So if you do raise the number of threads - don't go crazy. |
#12
| |||
| |||
|
|
martin.bowes (AT) ctsu (DOT) ox.ac.uk> wrote in message news:mailman.1110103382.9699.info-ingres (AT) cariboulake (DOT) com... Hi Dudes, Hi Piotr, That looks pretty good. You clearly have a lot of buffers configured. At least 3584 and have only managed to use that many once. 16 log writer threads may be a bit small for that number of buffers. It might be worthwhile trying to increase that value substantially given the number of times we see 'All logwriters busy'. You might like to check how many threads your allowed to start first. I'll take that back now. I just tried setting the number of log_writer_threads up substantially (to 150) on a Linux IngresII2.6 and promptlly put the server into a spin. 100% cpu! So if you do raise the number of threads - don't go crazy. That may be more of a Linux problem than an Ingres limit. The "standard" Linux thread mechanism is notorious rubbish. Make sure you have a kernel that implements Posix threads (e.g. 2.6). |
#13
| |||
| |||
|
|
That's an awful lot of log buffers. I question whether that many buffers are doing you any good. (It's not impossible, if you have really large updating transactions, just unlikely.) Starting with 2.6 (I think), multiple rollbacks can proceed concurrently, and in any case I don't think that rollback would stall a commit. I suspect that you ran into either some sort of hardware hiccup, or a consistency-point wait (BCP wait) that took a really long time for some unknown reason. But I don't really know. Karl |
|
machine_name |machine_ip |date |log_read_ios |log_write_ios|log_writes |log_forces |log_split_wai|log_free_waits|log_bcp_waits|kbytes _written|write_complete|all_logwriters_busy|max_wr ite_queue_cnt| +---------------+---------------+-------------------------+-------------+-------------+-------------+-------------+-------------+--------------+-------------+--------------+--------------+-------------------+-------------------+ sun480 |10.66.134.69 |050303 21:16:20 | 752082| 747115| 9678627| 103909| 6742| 83| 41| 1096434| 747113| 93972| 82| sun480 |10.66.134.69 |050303 21:32:29 | 818072| 822283| 10164158| 105886| 10742| 115| 44| 1243593| 822279| 149460| 114| +---------------+---------------+-------------------------+-------------+-------------+-------------+-------------+-------------+--------------+-------------+--------------+--------------+-------------------+-------------------+ |
#14
| |||
| |||
|
|
That's an awful lot of log buffers. I question whether that many buffers are doing you any good. (It's not impossible, if you have really large updating transactions, just unlikely.) Starting with 2.6 (I think), multiple rollbacks can proceed concurrently, and in any case I don't think that rollback would stall a commit. I suspect that you ran into either some sort of hardware hiccup, or a consistency-point wait (BCP wait) that took a really long time for some unknown reason. But I don't really know. Karl |
#15
| |||
| |||
|
|
Those buffers are for: 4 primary dbms servers (16 log writers each), 2 secondary dbms servers (1 log writer each) Recovery server (16 log writers). Total: 80 log writers (125 buffers per thread). Mystery of long commit resolved: transaction log was under heavy load - |
|
see attachment for key values from logstat before, and after transaction. BTW unfortunately transaction log is sharing devices with other filesystems - configuring a server is always a compromise. |
#16
| |||
| |||
|
#17
| |||||
| |||||
|
|
Thats enough for now. I'm getting back to work. But if anyone can clear this up I'd be happy. Martin Bowes |
|
machine_name |date +---------------+------------------------- sun480 |050303 21:16:20 sun480 |050303 21:32:29 +---------------+---------------+------------------------- |
|
log_read_ios |log_write_ios|log_writes |log_forces +-------------+-------------+-------------+------------- 752082| 747115| 9678627| 103909 818072| 822283| 10164158| 105886 +-------------+-------------+-------------+------------- |
|
log_split_wai|log_free_waits|log_bcp_waits|kbytes_ written +-------------+--------------+-------------+-------------- 6742| 83| 41| 1096434 10742| 115| 44| 1243593 +-------------+--------------+-------------+-------------- |
|
write_complete|all_logwriters_busy|max_write_queue _cnt| +--------------+-------------------+-------------------+ 747113| 93972| 82| 822279| 149460| 114| +--------------+-------------------+-------------------+ |
![]() |
| Thread Tools | |
| Display Modes | |
| |