Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:20 PM
Ernst Einstein
 
Posts: n/a
Default Poor performance on HP Package Cluster

Hi!

I've set up a Package Cluster ( Fail-Over Cluster ) on our two HP DL380
G4 with MSA Storrage G2.( Xeon 3,4Ghz, 6GB Ram, 2x 36GB@15rpm- Raid1)
The system is running under Suse Linux Enterprise Server.

My problem is, that the performance is very low. On our old Server
( Celeron 2Ghz with 2 GB of Ram ) an import of our Data takes about 10
minutes. ( 1,1GB data )
One of the DL380 it takes more than 90 minutes...
Selects response time have also been increased. Celeron 3 sec, Xeon
30-40sec.

I'm trying to fix the problem for two day's now, googled a lot, but i
don't know what to do.

Top says, my CPU spends ~50% time with wait io.

top - 14:07:34 up 22 min, 3 users, load average: 1.09, 1.04, 0.78
Tasks: 74 total, 3 running, 71 sleeping, 0 stopped, 0 zombie
Cpu(s): 50.0% us, 5.0% sy, 0.0% ni, 0.0% id, 45.0% wa, 0.0% hi,
0.0% si
Mem: 6050356k total, 982004k used, 5068352k free, 60300k buffers
Swap: 2097136k total, 0k used, 2097136k free, 786200k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
9939 postgres 18 0 254m 143m 140m R 49.3 2.4 8:35.43 postgres:
postgres plate [local] INSERT
9938 postgres 16 0 13720 1440 1120 S 4.9 0.0 0:59.08 psql -d
plate -f dump.sql
10738 root 15 0 3988 1120 840 R 4.9 0.0 0:00.05 top -d
0.2
1 root 16 0 640 264 216 S 0.0 0.0 0:05.03 init
[3]
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00
[ksoftirqd/0]

vmstat 1:

ClusterNode2 root $ vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system--
----cpu----
r b swpd free buff cache si so bi bo in cs us sy
id wa
1 0 0 5032012 60888 821008 0 0 216 6938 1952 5049 40
8 15 37
0 1 0 5031392 60892 821632 0 0 0 8152 2126 5725 45
6 0 49
0 1 0 5030896 60900 822144 0 0 0 8124 2052 5731 46
6 0 47
0 1 0 5030400 60908 822768 0 0 0 8144 2124 5717 44
7 0 50
1 0 0 5029904 60924 823272 0 0 0 8304 2062 5763 43
7 0 49

I've read (2004), that Xeon may have problems with content switching -
is the problem still existing? Can I do something to minimize the
problem?


postgresql.conf:

shared_buffers = 28672
effective_cache_size = 400000
random_page_cost = 2


shmall & shmmax are set to 268435456

hdparm:

ClusterNode2 root $ hdparm -tT /dev/cciss/c0d0p1

/dev/cciss/c0d0p1:
Timing buffer-cache reads: 3772 MB in 2.00 seconds = 1885.34 MB/sec
Timing buffered disk reads: 150 MB in 2.06 seconds = 72.72 MB/sec

greetings Ernst





---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:20 PM
Ron
 
Posts: n/a
Default Re: Poor performance on HP Package Cluster

Your HD raw IO rate seems fine, so the problem is not likely to be
with the HDs.

That consistent ~10x increase in how long it takes to do an import or
a select is noteworthy.

This "smells" like an interconnect problem. Was the Celeron locally
connected to the HDs while the new Xeons are network
connected? Getting 10's or even 100's of MBps throughput out of
local storage is much easier than it is to do over a network. 1GbE
is required if you want HDs to push 72.72MBps over a network, and not
even one 10GbE line will allow you to match local buffered IO of
1885.34MBps. What size are those network connects (Server A <->
storage, Server B <-> storage, Server A <-> Server B)?

Ron Peacetree


At 10:16 AM 9/1/2005, Ernst Einstein wrote:

>I've set up a Package Cluster ( Fail-Over Cluster ) on our two HP
>DL380 G4 with MSA Storage G2.( Xeon 3,4Ghz, 6GB Ram, 2x 36GB@15rpm-
>Raid1). The system is running under Suse Linux Enterprise Server.
>
>My problem is, that the performance is very low. On our old Server (
>Celeron 2Ghz with 2 GB of Ram ) an import of our Data takes about 10
>minutes. ( 1,1GB data ). One of the DL380 it takes more than 90 minutes...
>Selects response time have also been increased. Celeron 3 sec, Xeon 30-40sec.
>
>I'm trying to fix the problem for two day's now, googled a lot, but
>i don't know what to do.
>
>Top says, my CPU spends ~50% time with wait io.
>
>top - 14:07:34 up 22 min, 3 users, load average: 1.09, 1.04, 0.78
>Tasks: 74 total, 3 running, 71 sleeping, 0 stopped, 0 zombie
>Cpu(s): 50.0% us, 5.0% sy, 0.0% ni, 0.0% id, 45.0% wa, 0.0% hi, 0.0% si
>Mem: 6050356k total, 982004k used, 5068352k free, 60300k buffers
>Swap: 2097136k total, 0k used, 2097136k free, 786200k cached
>
> PID USER PR NI VIRT RES SHR S %CPU
> %MEM TIME+COMMAND
> 9939 postgres 18 0 254m 143m 140m
> R 49.3 2.4 8:35.43 postgresostgres plate [local]
> INSERT
> 9938 postgres 16 0 13720 1440 1120
> S 4.9 0.0 0:59.08 psql -d plate -f
> dump.sql
>10738 root 15 0 3988 1120 840
>R 4.9 0.0 0:00.05 top -d
>0.2
> 1 root 16 0 640 264 216
> S 0.0 0.0 0:05.03
> init[3]
> 2 root 34 19 0 0 0
> S 0.0 0.0 0:00.00 [ksoftirqd/0]
>
>vmstat 1:
>
>ClusterNode2 root $ vmstat 1
>procs -----------memory---------- ---swap-- -----io---- --system------cpu----
> r b swpd free buff cache si so bi bo
> in cs us sy id wa
> 1 0 0 5032012 60888 821008 0 0 216 6938 1952 5049
> 40 8 15 37
> 0 1 0 5031392 60892 821632 0 0 0 8152
> 2126 5725 45 6 0 49
> 0 1 0 5030896 60900 822144 0 0 0 8124
> 2052 5731 46 6 0 47
> 0 1 0 5030400 60908 822768 0 0 0 8144
> 2124 5717 44 7 0 50
> 1 0 0 5029904 60924 823272 0 0 0 8304
> 2062 5763 43 7 0 49
>
>I've read (2004), that Xeon may have problems with content switching
>- is the problem still existing? Can I do something to minimize the
>problem?
>
>
>postgresql.conf:
>
>shared_buffers = 28672
>effective_cache_size = 400000
>random_page_cost = 2
>
>
>shmall & shmmax are set to 268435456
>
>hdparm:
>
>ClusterNode2 root $ hdparm -tT /dev/cciss/c0d0p1
>
>/dev/cciss/c0d0p1:
>Timing buffer-cache reads: 3772 MB in 2.00 seconds = 1885.34 MB/sec
>Timing buffered disk reads: 150 MB in 2.06 seconds = 72.72 MB/sec





---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 12:21 PM
Luke Lonergan
 
Posts: n/a
Default Re: Poor performance on HP Package Cluster

Are you using the built-in HP SmartArray RAID/SCSI controllers? If so, that
could be your problem, they are known to have terrible and variable
performance with Linux.

The only good fix is to add a simple SCSI controller to your system (HP
sells them) and stay away from hardware RAID.

- Luke


On 9/1/05 7:16 AM, "Ernst Einstein" <Crusader@gmx.ch> wrote:

> Hi!
>
> I've set up a Package Cluster ( Fail-Over Cluster ) on our two HP DL380
> G4 with MSA Storrage G2.( Xeon 3,4Ghz, 6GB Ram, 2x 36GB@15rpm- Raid1)
> The system is running under Suse Linux Enterprise Server.
>
> My problem is, that the performance is very low. On our old Server
> ( Celeron 2Ghz with 2 GB of Ram ) an import of our Data takes about 10
> minutes. ( 1,1GB data )
> One of the DL380 it takes more than 90 minutes...
> Selects response time have also been increased. Celeron 3 sec, Xeon
> 30-40sec.
>
> I'm trying to fix the problem for two day's now, googled a lot, but i
> don't know what to do.
>
> Top says, my CPU spends ~50% time with wait io.
>
> top - 14:07:34 up 22 min, 3 users, load average: 1.09, 1.04, 0.78
> Tasks: 74 total, 3 running, 71 sleeping, 0 stopped, 0 zombie
> Cpu(s): 50.0% us, 5.0% sy, 0.0% ni, 0.0% id, 45.0% wa, 0.0% hi,
> 0.0% si
> Mem: 6050356k total, 982004k used, 5068352k free, 60300k buffers
> Swap: 2097136k total, 0k used, 2097136k free, 786200k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
> COMMAND
> 9939 postgres 18 0 254m 143m 140m R 49.3 2.4 8:35.43 postgres:
> postgres plate [local] INSERT
> 9938 postgres 16 0 13720 1440 1120 S 4.9 0.0 0:59.08 psql -d
> plate -f dump.sql
> 10738 root 15 0 3988 1120 840 R 4.9 0.0 0:00.05 top -d
> 0.2
> 1 root 16 0 640 264 216 S 0.0 0.0 0:05.03 init
> [3]
> 2 root 34 19 0 0 0 S 0.0 0.0 0:00.00
> [ksoftirqd/0]
>
> vmstat 1:
>
> ClusterNode2 root $ vmstat 1
> procs -----------memory---------- ---swap-- -----io---- --system--
> ----cpu----
> r b swpd free buff cache si so bi bo in cs us sy
> id wa
> 1 0 0 5032012 60888 821008 0 0 216 6938 1952 5049 40
> 8 15 37
> 0 1 0 5031392 60892 821632 0 0 0 8152 2126 5725 45
> 6 0 49
> 0 1 0 5030896 60900 822144 0 0 0 8124 2052 5731 46
> 6 0 47
> 0 1 0 5030400 60908 822768 0 0 0 8144 2124 5717 44
> 7 0 50
> 1 0 0 5029904 60924 823272 0 0 0 8304 2062 5763 43
> 7 0 49
>
> I've read (2004), that Xeon may have problems with content switching -
> is the problem still existing? Can I do something to minimize the
> problem?
>
>
> postgresql.conf:
>
> shared_buffers = 28672
> effective_cache_size = 400000
> random_page_cost = 2
>
>
> shmall & shmmax are set to 268435456
>
> hdparm:
>
> ClusterNode2 root $ hdparm -tT /dev/cciss/c0d0p1
>
> /dev/cciss/c0d0p1:
> Timing buffer-cache reads: 3772 MB in 2.00 seconds = 1885.34 MB/sec
> Timing buffered disk reads: 150 MB in 2.06 seconds = 72.72 MB/sec
>
> greetings Ernst
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>




---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 12:21 PM
Dan Harris
 
Posts: n/a
Default Re: Poor performance on HP Package Cluster

Do you have any sources for that information? I am running dual
SmartArray 6402's in my DL585 and haven't noticed anything poor about
their performance.

On Sep 1, 2005, at 2:24 PM, Luke Lonergan wrote:

> Are you using the built-in HP SmartArray RAID/SCSI controllers? If
> so, that
> could be your problem, they are known to have terrible and variable
> performance with Linux.


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-18-2008, 12:21 PM
Luke Lonergan
 
Posts: n/a
Default Re: Poor performance on HP Package Cluster

Dan,

On 9/1/05 4:02 PM, "Dan Harris" <fbsd@drivefaster.net> wrote:

> Do you have any sources for that information? I am running dual
> SmartArray 6402's in my DL585 and haven't noticed anything poor about
> their performance.


I've previously posted comprehensive results using the 5i and 6xxx series
smart arrays using software RAID, HW RAID on 3 different kernels, alongside
LSI and Adaptec SCSI controllers, and an Adaptec 24xx HW RAID adapter.
Results with bonnie++ and simple sequential read/write with dd.

I'll post them again here for reference in the next message. Yes, the
performance of the SmartArray controllers under Linux was abysmal, even when
run by the labs at HP.

- Luke



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-18-2008, 12:22 PM
Ernst Einstein
 
Posts: n/a
Default Re: Poor performance on HP Package Cluster

Hi !

Sorry, for my late answer. I was unavailable for a few days...

Yes, I'm using the build-in HP Smart Array Controller. Both, the
internal disks, and the external storrage are using the controller.

Can you send me your test results? I'm interested in it.

I've done some testing now. I've imported the data again and tuned the
DB like I was told in some performance howtos. Now, the database has a
good performance - until it has to read from the disks.

Greetings Ernst


Am Donnerstag, den 01.09.2005, 21:54 -0700 schrieb Luke Lonergan:

> Dan,
>
> On 9/1/05 4:02 PM, "Dan Harris" <fbsd@drivefaster.net> wrote:
>
> > Do you have any sources for that information? I am running dual
> > SmartArray 6402's in my DL585 and haven't noticed anything poor about
> > their performance.

>
> I've previously posted comprehensive results using the 5i and 6xxx series
> smart arrays using software RAID, HW RAID on 3 different kernels, alongside
> LSI and Adaptec SCSI controllers, and an Adaptec 24xx HW RAID adapter.
> Results with bonnie++ and simple sequential read/write with dd.
>
> I'll post them again here for reference in the next message. Yes, the
> performance of the SmartArray controllers under Linux was abysmal, even when
> run by the labs at HP.
>
> - Luke
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


--
Ernst Einstein <Crusader@gmx.ch>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 12:22 PM
Luke Lonergan
 
Posts: n/a
Default Re: Poor performance on HP Package Cluster

Sure * I posted the excel spreadsheet to the list right after my message,
but I think it blocks attachments. Išll send it to you now privately.

I recommend switching to software RAID 10 or 5 using simple SCSI U320
adapter(s) from LSI or Adaptec, which you can buy from HP if you must.

Cheers,

- Luke


On 9/4/05 8:47 AM, "Ernst Einstein" <Crusader@gmx.ch> wrote:

> Hi !
>
> Sorry, for my late answer. I was unavailable for a few days...
>
> Yes, I'm using the build-in HP Smart Array Controller. Both, the internal
> disks, and the external storrage are using the controller.
>
> Can you send me your test results? I'm interested in it.
>
> I've done some testing now. I've imported the data again and tuned the DBlike
> I was told in some performance howtos. Now, the database has a good
> performance - until it has to read from the disks.
>
> Greetings Ernst
>
>
> Am Donnerstag, den 01.09.2005, 21:54 -0700 schrieb Luke Lonergan:
>>
>> Dan,
>>
>> On 9/1/05 4:02 PM, "Dan Harris" <fbsd@drivefaster.net> wrote:
>>
>>> > Do you have any sources for that information? I am running dual
>>> > SmartArray 6402's in my DL585 and haven't noticed anything poor about
>>> > their performance.

>>
>> I've previously posted comprehensive results using the 5i and 6xxx series
>> smart arrays using software RAID, HW RAID on 3 different kernels, alongside
>> LSI and Adaptec SCSI controllers, and an Adaptec 24xx HW RAID adapter.
>> Results with bonnie++ and simple sequential read/write with dd.
>>
>> I'll post them again here for reference in the next message. Yes, the
>> performance of the SmartArray controllers under Linux was abysmal, even when
>> run by the labs at HP.
>>
>> - Luke
>>
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 1: if posting/reading through Usenet, please send an appropriate
>> subscribe-nomail command to majordomo@postgresql.org so that your
>> message can get through to the mailing list cleanly




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 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 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709