467,209 Members | 1,296 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,209 developers. It's quick & easy.

Truss output - semget analysis


I'm trying to determine if the application is issuing semget() calls
and fails. Hence I issued the command
truss -d -o truss.log db2 "connect to dbname"

Inside the truss.log file, the following lines are listed
0.1427 access("/IBMdb2/home/db2rtcl/sqllib/profile.env", 0) Err#2
0.1430 open("/IBMdb2/home/db2rtcl/sqllib/profile.env", O_RDONLY) Err#2
0.1432 lstat("/IBMdb2/home/db2rtcl/sqllib/.ftok", 0xFFBEEF34) Err#2
0.1434 semget(-2, 1, 0) = 3473440
0.1436 semop(3473440, 0xFE3A5CE8, 1) = 0
0.1437 shmget(-2, 0, 0) = 1204957224
0.1438 shmat(1204957224, 0, SHM_RND) = 0xFD400000
0.1441 semop(3473440, 0xFE3A5CEE, 1) = 0

But I dont know whether semget has succeeded or failed. Your help is
greatly appreciated. (I have posted this in Solaris group however I
would like to post in main DB2 group as well)


Mar 30 '06 #1
  • viewed: 2318
3 Replies
I forgot to give the environment related info. I just have a db2
runtime client on a Solaris box

$ db2level
DB21085I Instance "db2rtcl" uses "32" bits and DB2 code release
with level identifier "03040106".
Informational tokens are "DB2 v8.1.0.96", "s050811", "U803921", and
Product is installed at "/opt/IBM/db2/V8.1".


Mar 30 '06 #2
I guess if the semget returns a number the semaphore is made and semop
is success when it returns a zero .
0.1434 semget(-2, 1, 0) = 3473440
0.1436 semop(3473440, 0xFE3A5CE8, 1) = 0
I am wondering in what context you need this information.

Mar 31 '06 #3
I got a poor performance from a DB2 Client which is on Solaris box.
When googled I found this technote
So I would like to check whether it is applicable in my case. And
apparently it worked in my case.


Mar 31 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by MatsL@newsgroups.nospam | last post: by
4 posts views Thread by =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post: by
2 posts views Thread by jdbartlett | last post: by
8 posts views Thread by Rami | last post: by
6 posts views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.