- Notifications
You must be signed in to change notification settings - Fork5
Commit33aaa13
committed
Make the number of CLOG buffers adaptive, based on shared_buffers.
Previously, this was hardcoded: we always had 8. Performance testingshows that isn't enough, especially on big SMP systems, so we allow itto scale up as high as 32 when there's adequate memory. On the flipside, when shared_buffers is very small, drop the number of CLOG buffersdown to as little as 4, so that we can start the postmaster evenwhen very little shared memory is available.Per extensive discussion with Simon Riggs, Tom Lane, and others onpgsql-hackers.1 parent7a72efd commit33aaa13
3 files changed
+33
-7
lines changedLines changed: 31 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
409 | 410 |
| |
410 | 411 |
| |
411 | 412 |
| |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
412 | 441 |
| |
413 | 442 |
| |
414 | 443 |
| |
415 | 444 |
| |
416 | 445 |
| |
417 | 446 |
| |
418 | 447 |
| |
419 |
| - | |
| 448 | + | |
420 | 449 |
| |
421 | 450 |
| |
422 | 451 |
| |
423 | 452 |
| |
424 | 453 |
| |
425 | 454 |
| |
426 |
| - | |
| 455 | + | |
427 | 456 |
| |
428 | 457 |
| |
429 | 458 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 31 |
| |
36 | 32 |
| |
37 | 33 |
| |
38 | 34 |
| |
| 35 | + | |
39 | 36 |
| |
40 | 37 |
| |
41 | 38 |
| |
|
0 commit comments
Comments
(0)