Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:11 AM
Srebrenko Sehic
 
Posts: n/a
Default Slow amd64 performance on VMware emulated 64-bit machine

New VMware workstation 5.5 has the ability to emulate 64-bit machines.
I took a shoot and tried it with new 3.8-amd64 release. At the first
glance, everything seemed to work fine. However, after the initial
reboot, I noticed a rather sluggish performance. Doing a simple 'make'
for a given port, the system crawls to it's knees.

After some debugging, I noticed a rather high/unusual number of
software interrupts. With a completely idle system, the number of
software interrupts is steady around 100. Another amd64 (native)
machine I have, it's around 2-3 when the system is idle.

Another thing I noticed:

pci1 at ppb0 bus 1 "Intel 82371AB PIIX4 ISA" rev 0x08 at pci0 dev 7
function 0 not configured

If I install 3.8-i386 on the same emulated 64-bit hardware (dmesg.i386
below) everything works like a charm.

Any pointers?

Output of vmstat (-i, -s and -m) is below, including dmesg.amd64 output.

Here are some stats:

# uptime
6:39AM up 21 mins, 1 user, load averages: 0.17, 0.24, 0.30

# vmstat -s | grep software
138409 software interrupts

138409 / (21 minutes * 60) = 110 si/sec

# vmstat -i
interrupt total rate
irq14/pciide0 13452 10
irq11/em0 12159 9
irq1/pckbc0 6 0
irq0/clock 124241 100
irq8/rtc 159028 128
Total 308886 248

# vmstat -s
4096 bytes per page
61357 pages managed
48050 pages free
1884 pages active
1291 pages inactive
0 pages being paged out
111 pages wired
0 pages zeroed
4 pages reserved for pagedaemon
6 pages reserved for kernel
65519 swap pages
0 swap pages in use
122759 total anon's in system
121665 free anon's
340272 page faults
315319 traps
295373 interrupts
39422 cpu context switches
324 fpu context switches
138409 software interrupts
463363 syscalls
0 pagein operations
0 swap ins
0 swap outs
2305 forks
7 forks where vmspace is shared
0 number of times the pagedaemon woke up
0 revolutions of the clock hand
0 pages freed by pagedaemon
0 pages scanned by pagedaemon
0 pages reactivated by pagedaemon
0 busy pages found by pagedaemon
50061 total name lookups
cache hits (81% pos + 4% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%
0 select collisions

# vmstat -m

Memory statistics by bucket size
Size In Use Free Requests HighWater Couldfree
16 1088 1216 233913 1280 14
32 639 641 131247 640 43
64 201 1143 20739 320 759
128 630 74 11804 160 4
256 94 34 2666 80 0
512 169 15 1994 40 0
1024 507 9 12068 20 0
2048 27 9 617 10 0
4096 25 2 2211 5 0
8192 3 0 3 5 0
16384 8 0 8 5 0
32768 1 0 1 5 0
65536 1 0 1 5 0

Memory usage type by bucket size
Size Type(s)
16 devbuf, pcb, sysctl, UFS mount, dirhash, exec, xform_data, VM swap,
UVM amap, UVM aobj, temp
32 devbuf, pcb, routetbl, ifaddr, namecache, sem, dirhash, in_multi,
exec, xform_data, UVM amap, temp
64 devbuf, pcb, routetbl, ifaddr, vnodes, dirhash, proc, VFS cluster,
in_multi, ether_multi, exec, VM swap, UVM amap, NDP, temp
128 devbuf, pcb, routetbl, ifaddr, sem, dirhash, ttys, pfkey data,
UVM amap, NDP
256 devbuf, routetbl, ifaddr, sysctl, vnodes, shm, UVM amap
512 devbuf, ifaddr, ioctlops, vnodes, VM map, dirhash, proc, NFS srvsock,
NFS daemon, ttys, newblk, UVM amap, temp
1024 devbuf, pcb, ioctlops, mount, UFS mount, shm, ttys, exec, UVM amap,
crypto data, temp
2048 devbuf, ifaddr, ioctlops, namecache, UFS mount, proc, VM swap,
UVM amap, UVM aobj
4096 devbuf, UFS mount, pagedep, UVM amap, temp
8192 devbuf, MSDOSFS mount, VM swap
16384 devbuf, NFS node, namecache, UFS quota, UFS mount, ISOFS mount,
inodedep, VM swap
32768 devbuf
65536 namecache

Memory statistics by type Type Kern
Type InUse MemUse HighUse Limit Requests Limit Limit Size(s)
devbuf 797 454K 456K 39099K 8953 0 0
16,32,64,128,256,512,1024,2048,4096,8192,16384,327 68
pcb 16 5K 6K 39099K 65 0 0
16,32,64,128,1024
routetbl 63 7K 7K 39099K 85 0 0 32,64,128,256
ifaddr 43 13K 13K 39099K 43 0 0
32,64,128,256,512,2048
sysctl 2 1K 1K 39099K 2 0 0 16,256
ioctlops 0 0K 2K 39099K 24 0 0 512,1024,2048
mount 3 3K 4K 39099K 5 0 0 1024
NFS node 1 16K 16K 39099K 1 0 0 16384
vnodes 49 14K 88K 39099K 1267 0 0 64,256,512
namecache 4 83K 83K 39099K 4 0 0
32,2048,16384,65536
UFS quota 1 16K 16K 39099K 1 0 0 16384
UFS mount 13 38K 38K 39099K 13 0 0
16,1024,2048,4096,16384
shm 2 2K 2K 39099K 2 0 0 256,1024
VM map 3 2K 2K 39099K 3 0 0 512
sem 2 1K 1K 39099K 2 0 0 32,128
dirhash 24 5K 7K 39099K 69 0 0 16,32,64,128,512
proc 7 5K 5K 39099K 7 0 0 64,512,2048
VFS cluster 0 0K 1K 39099K 509 0 0 64
NFS srvsock 2 1K 1K 39099K 2 0 0 512
NFS daemon 1 1K 1K 39099K 1 0 0 512
in_multi 22 1K 1K 39099K 22 0 0 32,64
ether_multi 4 1K 1K 39099K 4 0 0 64
ISOFS mount 1 16K 16K 39099K 1 0 0 16384
MSDOSFS mount 1 8K 8K 39099K 1 0 0 8192
ttys 420 263K 263K 39099K 420 0 0 128,512,1024
exec 0 0K 3K 39099K 1743 0 0 16,32,64,1024
pfkey data 1 1K 1K 39099K 2 0 0 128
xform_data 0 0K 1K 39099K 83 0 0 16,32
pagedep 1 4K 4K 39099K 1 0 0 4096
inodedep 1 16K 16K 39099K 1 0 0 16384
newblk 1 1K 1K 39099K 1 0 0 512
VM swap 7 23K 23K 39099K 7 0 0
16,64,2048,8192,16384
UVM amap 1863 132K 220K 39099K 386101 0 0
16,32,64,128,256,512,1024,2048,4096
UVM aobj 2 3K 3K 39099K 2 0 0 16,2048
crypto data 1 1K 1K 39099K 1 0 0 1024
NDP 7 1K 1K 39099K 8 0 0 64,128
temp 34 5K 9K 39099K 17822 0 0
16,32,64,512,1024,4096

Memory Totals: In Use Free Requests
1130K 171K 417278
Memory resource pool statistics
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
extentpl 40 18 0 8 1 0 1 1 0 8 0
phpool 80 553 0 10 11 0 11 11 0 8 0
pcgpool 152 1 0 0 1 0 1 1 0 8 0
pmappl 224 2280 0 2265 2 0 2 2 0 8 1
pvpl 32 399987 0 395172 94 46 48 63 0 8 8
pdppl 4096 24 0 0 24 0 24 24 0 8 0
vmsppl 344 2280 0 2265 3 0 3 3 0 8 1
vmmpepl 144 216767 0 215810 207 165 42 66 0 8 6
vmmpekpl 144 5533 0 5529 1 0 1 1 0 8 0
aobjpl 88 1 0 0 1 0 1 1 0 8 0
amappl 56 127415 0 126795 18 0 18 18 0 8 8
bufpl 208 6 0 6 1 0 1 1 0 8 1
mbpl 256 22274 0 22013 29 10 19 19 1 8 2
mclpl 2048 8996 0 8740 138 0 138 138 4 3072 9
sockpl 360 112 0 89 3 0 3 3 0 8 0
procpl 544 2287 0 2265 5 0 5 5 0 8 1
zombiepl 144 2265 0 2265 1 0 1 1 0 8 1
ucredpl 80 59 0 51 1 0 1 1 0 8 0
pgrppl 40 46 0 32 1 0 1 1 0 8 0
sessionpl 64 20 0 7 1 0 1 1 0 8 0
pcredpl 32 2287 0 2265 1 0 1 1 0 8 0
lockfpl 88 6 0 4 1 0 1 1 0 8 0
filepl 80 10577 0 10519 2 0 2 2 0 8 0
fdescpl 424 2288 0 2265 4 0 4 4 0 8 1
pipepl 120 3266 0 3264 1 0 1 1 0 8 0
sigapl 472 2280 0 2265 3 0 3 3 0 8 1
wdcspl 176 13340 0 13340 1 0 1 1 0 8 1
scxspl 192 18 0 18 1 0 1 1 0 8 1
namei 1024 16637 0 16637 1 0 1 1 0 8 1
vnodes 272 2166 0 0 145 0 145 145 0 8 0
nchpl 112 1310 0 0 38 0 38 38 0 8 0
ffsino 336 4886 0 2724 181 0 181 181 0 8 0
dirhash 1024 78 0 49 10 0 10 10 0 8 2
rtentpl 208 29 0 0 2 0 2 2 0 8 0
tcpcbpl 552 22 0 9 3 0 3 3 0 8 1
tcpqepl 32 2 0 2 1 0 1 1 0 25 1
synpl 240 3 0 3 1 0 1 1 0 8 1
plimitpl 152 16 0 8 1 0 1 1 0 8 0
inpcbpl 328 56 0 40 2 0 2 2 0 8 0

In use 2564K, total allocated 2896K; utilization 88.5%


---- dmesg.amd64 ----

OpenBSD 3.8 (GENERIC) #247: Sat Sep 10 15:53:26 MDT 2005
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 266924032 (260668K)
avail mem = 218468352 (213348K)
using 6567 buffers containing 26898432 bytes (26268K) of memory
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3200+, 1994.76 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE 3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
"Intel 82371AB PIIX4 ISA" rev 0x08 at pci0 dev 7 function 0 not configured
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <VMware Virtual IDE Hard Drive>
wd0: 64-sector PIO, LBA, 4096MB, 8388608 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <NECVMWar, VMware IDE CDR10, 1.00> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
"Intel 82371AB Power" rev 0x08 at pci0 dev 7 function 3 not configured
vga1 at pci0 dev 15 function 0 "VMware Virtual SVGA II" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
mpt0 at pci0 dev 16 function 0 "Symbios Logic 53c1030" rev 0x01: irq 9
mpt0: IM support: 0
scsibus1 at mpt0: 16 targets
em0 at pci0 dev 17 function 0 "Intel PRO/1000MT (82545EM)" rev 0x01:
irq 11, address: 00:0c:29:02:db:f5
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

---- dmesg.i386 ----

OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3200+ ("AuthenticAMD" 686-class,
512KB L2 cache) 2 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE 3
cpu0: AMD Powernow: FID VID TTP TM STC
real mem = 267952128 (261672K)
avail mem = 237481984 (231916K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ff) BIOS, date 07/29/05, BIOS32 rev. 0 @ 0xfd880
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1000 0xdc000/0x4000! 0xe0000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x01
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <VMware Virtual IDE Hard Drive>
wd0: 64-sector PIO, LBA, 4096MB, 8388608 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <NECVMWar, VMware IDE CDR10, 1.00> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
"Intel 82371AB Power" rev 0x08 at pci0 dev 7 function 3 not configured
vga1 at pci0 dev 15 function 0 "VMware Virtual SVGA II" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
mpt0 at pci0 dev 16 function 0 "Symbios Logic 53c1030" rev 0x01: irq 9
mpt0: IM support: 0
scsibus1 at mpt0: 16 targets
em0 at pci0 dev 17 function 0 "Intel PRO/1000MT (82545EM)" rev 0x01:
irq 11, address: 00:0c:29:02:db:f5
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask e765 netmask ef65 ttymask ffe7
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

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 06:58 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 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039