why does my program runs in conflicting mode?


 
Thread Tools Search this Thread
Operating Systems HP-UX why does my program runs in conflicting mode?
# 1  
Old 07-17-2006
why does my program runs in conflicting mode?

my pragram runs with 3 threads, 2 work threads, one main thread. the 2 work threads run with the same mode and the same code. but now, one of the work thread can't work, and it uses the cpu more than 80%, sometimes uses 100% cpu resource. the another work thread work well.

when I viewed the HP perf agent log, it displays that my program's InterestReason is C, the StopReason is SLEEP or SYSTM, the CPU % is 100.53, the RealTm CPU % is 100.04 ,the other CPU % is nearly 0

RealTm CPU % is 100.04 , that's say, my program use the CPU crueltly, but the the StopReason is SLEEP or SYSTM, it seemed that my program is calling sleep or locked by the mutex, I was puzzled with the conflicting information, can you help me?
# 2  
Old 07-17-2006
this is the log:

Logfile: /var/opt/perf/datafiles/ SCOPE/UX C.03.72.00 KUF2AP01
Code:
                Sec     Alive                Process            User              Interest      Stop            SysCall Normal   Nice   RealTm  CSwtch  Intrpt   Logl   Logl   Phys  FileIO   VM   System  IO Byte    Res    Virtual  Thread  Pri   DskSubsys  Sem    LAN   Memory  
  Date   Time  /Intvl   Intvl     PID          Name             Name       Pri     Reason      Reason    CPU %   CPU %   CPU %   CPU %   CPU %   CPU %   CPU %  Rd Rt  Wr Rt  IO Rt   Rate  IO Rt  IO Rt    Rate      Mem     Memory  Count  Wait %  Wait %   Wait % Wait % Wait %  
.......
07/12/06 15:01     60     60.29     5532 dt_du_notifier   innopath         65520   C               SLEEP  100.53    0.00    0.00    0.00  100.04    0.01    0.48      0      0    0.4    0.4    0.0    0.0       4.2     5600     9064      3   0.00      0.00   0.00   0.00    0.00 
07/12/06 15:02     60     60.01    19480 java             innopath          168     M             SLEEP    0.04    0.00    0.00    0.00    0.00    0.01    0.03     95      0    2.4    1.4    0.0    1.0      14.1   198656   797696    101   0.03      0.00   0.00   0.00    0.00 
07/12/06 15:02     60     60.01    24363 java             innopath          168   C M             SLEEP   11.65    2.00    9.00    0.00    0.00    0.06    0.58    560      0    0.1    0.1    0.0    0.0       1.6   311296   761856     60   0.12      0.00   0.00   0.00    0.00 
07/12/06 15:02     60     60.01    24747 java             navis             154     M             OTHER    0.01    0.00    0.00    0.00    0.00    0.00    0.01      0      1    0.3    0.3    0.0    0.0       2.9    82944   704512     43   0.01      0.00   0.00   0.00    0.00 
07/12/06 15:02     60     60.01     5532 dt_du_notifier   innopath         65520   C               SLEEP   99.63    0.00    0.00    0.00   98.98    0.01    0.64      0      0    0.3    0.3    0.0    0.0       3.2     5600     9064      3   0.00      0.00   0.00   0.00    0.00 
07/12/06 15:03     60     60.11       35 vxfsd            root              138    D              SYSTM    0.00    0.00    0.00    0.00    0.00    0.00    0.00      0      0    6.8    0.0    0.0    6.8      25.1     6432     6432     32   0.00      0.01   0.00   0.00    0.00 
07/12/06 15:03     60     60.11    19480 java             innopath          168     M             SLEEP    0.04    0.00    0.00    0.00    0.00    0.01    0.03     95      0    1.8    1.4    0.0    0.4      13.3   198656   797696    101   0.01      0.00   0.00   0.00    0.00 
07/12/06 15:03     60     60.11    24363 java             innopath          168   C M             SLEEP    7.42    1.00    6.00    0.00    0.00    0.01    0.41    459      0    0.3    0.3    0.0    0.0       3.4   311296   761856     60   0.07      0.00   0.00   0.00    0.00 
07/12/06 15:03     60     60.11    24747 java             navis             168     M             SLEEP    0.02    0.00    0.00    0.00    0.00    0.01    0.01      0      1    0.3    0.3    0.0    0.0       3.4    82944   704512     41   0.01      0.00   0.00   0.00    0.00 
07/12/06 15:03     60     60.11     5532 dt_du_notifier   innopath         65520   C               SLEEP  100.15    0.00    0.00    0.00   99.66    0.01    0.48      0      0    0.4    0.4    0.0    0.0       3.9     5600     9064      3   0.00      0.00   0.00   0.00    0.00


Last edited by reborg; 07-17-2006 at 11:41 PM.. Reason: add code tags
# 3  
Old 07-17-2006
because my program runs in the customer's machine, i can't access the machine and can't install any debuger in it.
i can't reproduce the this bug in my own machine
Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Egrep: conflicting matchers specified

This bit of code works fine: egrep -i '^rmcat' /etc/oratab |\ awk -F\: '{print $1}'|\ while read ORACLE_SID do But when I modified it, thus: egrep -v '^#' /etc/oratab |egrep -v '^$' | egrep -v '^listener' \ awk -F\: '{print $1}'|\ while read ORACLE_SID do (3 Replies)
Discussion started by: edstevens
3 Replies

2. UNIX for Beginners Questions & Answers

Where can I find the program that runs the -wc command?

Hey guys, I was wondering. When I enter a command in the terminal -wcl for a word count, where is that program located in the kernel? (7 Replies)
Discussion started by: Circuits
7 Replies

3. Shell Programming and Scripting

Parallel RM and FIND commands conflicting

Hi all. Long time!! Hope you're doing well.. I've stumbled on a peculiar siutaion here, and would expect help from this forum on a clean resolution. We are running an rm and find command simultaneously from two different Unix sessions of the same user(let's say USER01) and on the same... (3 Replies)
Discussion started by: kumarjt
3 Replies

4. Homework & Coursework Questions

create a program that runs two processes linked oven

I need help program in C... :create a program that runs two processes linked oven (1 Reply)
Discussion started by: gizmo16
1 Replies

5. Shell Programming and Scripting

crontab runs only one line in iterated program

I have a crontab as below: PATH=/usr/local/sbin:/bin/:..... etc etc 0 8 * * * /home/user/jobs/poll.sh 2>/dev/null 1>/dev/null Now the script poll.sh is called at correct time and executes. This is how poll.sh looks like #!/bin/bash... (2 Replies)
Discussion started by: chakrapani
2 Replies

6. Programming

getting Segmentation Fault (core dumped) error but Program runs fine.

i am executing following program int main() { char str; FILE * fp; int i=0; ... (4 Replies)
Discussion started by: bhavesh.sapra
4 Replies

7. UNIX for Advanced & Expert Users

Minutes a program runs.

I have a ksh script that executes a program with a predetermined timeout in minutes. If the program takes longer then the timeout then it still completes with a return code of 0. :confused: I would like to determine how long the program ran. Then if it takes longer than the timeout I would... (7 Replies)
Discussion started by: 2dumb
7 Replies

8. Shell Programming and Scripting

Check if a program runs on unix

Hi guys, I had a question last week where I asked how I check from a website hosted on windows if a process is running on on of our unix servers. Vino and Shell Life kindly replied with a perl script: if qm') -gt 0 ] ; then echo "Site is up" else echo "Site is down." # start the... (1 Reply)
Discussion started by: drchris
1 Replies

9. UNIX for Advanced & Expert Users

Can't use sendmail ( Program mode requires special privileges)

I just updated sendmail to the newest version and got into this trouble. Somehow only can root can use sendmail while the other users will simply get "SMTP went away" when using pine or "can not chdir(/var/spool/mqueue/): Permission denied Program mode requires special privileges, e.g., root... (1 Reply)
Discussion started by: Micz
1 Replies
Login or Register to Ask a Question