[omniORB] Strange performance problems
Ole Dalgaard
josua@cs.auc.dk
Wed, 30 Jun 1999 19:02:39 +0200 (MET DST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-1804928587-930762159=:27092
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi!
I was about to do a simple performance test on omniORB 2.7.1 and
encountered a strange problem. I am sending an array as parameter.
When using array sizes below 3810 bytes making 1000 calls takes 1-1.3
seconds, but when using array sizes from 3810 and up, it takes 19-20
seconds. I am using linux, have tried kernels 2.2.5 and 2.2.10 on SMP
and non-SMP. Using array sizes from 3810 and up consumes almost no
CPU-time, while using smaller sizes takes almost all CPU.
Exactly the same happens on Sun Solaris, here the magick limit is
between 8137 and 8138. The test ran on a Ultra Enterprise 2.
I have attached the source.
Please help me! What am I doing wrong?
Regards
Ole Dalgaard
Computer Science student
---559023410-1804928587-930762159=:27092
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="dexec.idl"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.10.9906301902390.27092@atto.cs.auc.dk>
Content-Description:
Content-Disposition: attachment; filename="dexec.idl"
I2lmbmRlZiBfX0RFWEVDX0lETF9fDQojZGVmaW5lIF9fREVYRUNfSURMX18N
Cg0KbW9kdWxlIGRFeCB7DQoNCiAgdHlwZWRlZiBjaGFyIElbMzgxMF07DQoN
CiAgaW50ZXJmYWNlIGRFeGVjIHsNCiAgICB2b2lkIHB1dERhdGEoaW4gSSBk
YXRhKTsNCiAgfTsNCn07DQoNCiNlbmRpZiANCg==
---559023410-1804928587-930762159=:27092
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="dexec.cc"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.10.9906301902391.27092@atto.cs.auc.dk>
Content-Description:
Content-Disposition: attachment; filename="dexec.cc"
I2luY2x1ZGUgPGlvc3RyZWFtLmg+DQojaW5jbHVkZSA8c3RkaW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ogICAgICByZXR1cm4gQ09SQkE6Ok9iamVjdDo6X25pbCgpOw0K
ICAgIH0NCiAgY2F0Y2ggKENPUkJBOjpDT01NX0ZBSUxVUkUmIGV4KSB7DQog
ICAgY2VyciA8PCAiQ2F1Z2h0IHN5c3RlbSBleGNlcHRpb24gQ09NTV9GQUlM
VVJFLCB1bmFibGUgdG8gY29udGFjdCB0aGUgIg0KICAgICAgICAgPDwgIm5h
bWluZyBzZXJ2aWNlLiIgPDwgZW5kbDsNCiAgICByZXR1cm4gQ09SQkE6Ok9i
amVjdDo6X25pbCgpOw0KICB9DQogIGNhdGNoKG9tbmlPUkI6OmZhdGFsRXhj
ZXB0aW9uJiBleCkgew0KICAgIHRocm93Ow0KICB9DQogIGNhdGNoICguLi4p
IHsNCiAgICBjZXJyIDw8ICJDYXVnaHQgYSBzeXN0ZW0gZXhjZXB0aW9uIHdo
aWxlIHVzaW5nIHRoZSBuYW1pbmcgc2VydmljZS4iPDwgZW5kbDsNCiAgICBy
ZXR1cm4gQ09SQkE6Ok9iamVjdDo6X25pbCgpOw0KICB9DQogIHJldHVybiBv
Ymo7DQp9DQoNCg0KDQo=
---559023410-1804928587-930762159=:27092
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=Makefile
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.10.9906301902392.27092@atto.cs.auc.dk>
Content-Description:
Content-Disposition: attachment; filename=Makefile
Q1hYICAgICAgICAgICAgID0gZysrDQoNClRBUkdFVFMJCT0gZGV4ZWMNCg0K
U1JDUwkJPSBkZXhlY1NLLm8gZGV4ZWMubw0KSEVBREVSUwkJPSBkZXhlYy5p
ZGwNCg0KDQpDWFhGTEFHUwk9ICQoREVCVUcpIC1PMyAtV2FsbCAtV25vLXVu
dXNlZCAtRF9SRUVOVFJBTlQgLUkuIC1EX194ODZfXyAtRF9fbGludXhfXyAt
RF9fT1NWRVJTSU9OX189MiAtSS9wYWNrL29tbmlvcmIvaW5jbHVkZSANCkNQ
UEZMQUdTCT0gJChERUJVRykgLUkuIC1JL3BhY2svb21uaW9yYi9pbmNsdWRl
IA0KTERGTEFHUwkJPSAtcyAtV2wsLXJwYXRoLC9wYWNrL29tbmlvcmIvbGli
IC1ML3BhY2svb21uaW9yYi9saWIgLUwvcGFjay9lZ2NzL2xpYiAtV2wsLXJw
YXRoLC9wYWNrL2VnY3MvbGliIC1sb21uaU9SQjIgLWxvbW5pRHluYW1pYzIg
LWxvbW5pdGhyZWFkIC1scHRocmVhZCAtbHRjcHdyYXBHSw0KDQphbGw6CSQo
VEFSR0VUUykNCg0KJChUQVJHRVRTKTogJChTUkNTKQ0KCSQoQ1hYKSAkKFNS
Q1MpICQoTERGTEFHUykgLW8gJEAgDQoNCmRleGVjU0suY2M6CWRleGVjLmlk
bA0KCW9tbmlpZGwyICQ8DQoNCi5TVUZGSVhFUzoNCi5TVUZGSVhFUzogICAg
ICAuY2MgLm8NCg0KLmNjLm86CSQoSEVBREVSUykNCgkkKENYWCkgLWMgJChD
UFBGTEFHUykgJChDWFhGTEFHUykgJDwNCg0KY2xlYW46CQ0KCXJtIC1mICQo
U1JDUykgJChUQVJHRVRTKSAqfg0KDQoNCg0KDQoNCg0KDQo=
---559023410-1804928587-930762159=:27092--