Wait process holding CPU


 
Thread Tools Search this Thread
Operating Systems AIX Wait process holding CPU
# 8  
Old 03-01-2013
Quote:
Originally Posted by MichaelFelt
another way to testif delays are caused bt name server lookups is to edit /etc/netsvc.conf.
add or edit a line so that it says,
hosts=local4

fyi my normal setting is: hosts=local4,bind4 as I am not using any IP6.
Correct. Sometimes it takes me a while to sift through what i have written, but here is the name resoution process in detail.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 9  
Old 03-02-2013
There are two ways to modify the default behavior of AIX name resolution - which is: bind4|6, nis, local4|6
because of the lookup to bind6 and local6 - and I am not using them - I specify
hosts=local4,bind4
in /etc/netsvc.conf

However, there is another way - that require no write access to /etc/netsvc.conf
$ export NSORDER="bind4,local4"
will do the same as what I do normally in /etc/netsvc.conf. So, e.g., to test if timeout is an issue you could also specify
$ export NSORDER=local
and neither bind nor nis will be queried, even if they are configured.

Other key environment variables (I have these defined system wide in /etc/environment)
Code:
RES_RETRY=2
RES_TIMEOUT=3

RES_RETRY sets resolve retry count (default=3); RES_TIMEOUT sets resolve timeout (default=30).
Code:
--- missing <HR> sniff :p ---

One more handy thing to know: The minimum contents of /etc/hosts should resolve localhost and the hostname (so do not delete localhost as I sometimes find! at sites complaining of a slooooow boot).
This User Gave Thanks to MichaelFelt For This Post:
# 10  
Old 03-06-2013
Thanks a lot guys.. The server is fine now... I have tried everything told here.... and it was really informative and i learnt a lot....

/etc/netsvc.conf was the culprit.... Thanks everyone for your help..
This User Gave Thanks to gopeezere For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to find process holding a semaphore?

Hello All, The system concerned has multiple processes communicating with each other using shared memory. These processes use semaphores to protect data being used amongst them. The "key" would uniquely identifies the particular semaphore corresponding to a resource for the various processes. ... (2 Replies)
Discussion started by: saptarshi
2 Replies

2. AIX

Wait time shows high CPU usage

Hi, I can't seem to make sense of this. My wait time is showing really high but vmstat's and topas are showing normal usage. ps aux USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 9961810 5680.7 0.0 448 384 - A Dec 16 6703072:12 wait ... (2 Replies)
Discussion started by: techy1
2 Replies

3. Solaris

Process holding /tmp space, need to know the process details

Hi , In a server /tmp has almost reached 75% and i can see the File system utilization is 48Mb only , so i believe some process is using the /tmp space. I would like to know which process is using /tmp space. # df -h /tmp Filesystem size used avail capacity Mounted on swap ... (9 Replies)
Discussion started by: chidori
9 Replies

4. Solaris

How to check which process is holding up the ilde port

HI All Am on Sun OS.While trying to start a process , we could see that the port is idle and we are not able to find the process holding that port. Below is the result we get after using netstat command. lsof command is not yet installed in our machine. netstat -a | grep "port no"... (5 Replies)
Discussion started by: Whiteboard
5 Replies

5. Shell Programming and Scripting

How to make the parent process to wait for the child process

Hi All, I have two ksh script. 1st script calls the 2nd script and the second script calls an 'C' program. I want 1st script to wait until the 'C' program completes. I cant able to get the process id for the 'C' program (child process) to make the 1st script to wait for the second... (7 Replies)
Discussion started by: sennidurai
7 Replies

6. AIX

%wait nmon CPU-UTILISATION

Hi, I collect statistics with nmon. I'm very suprised about % wait of processor. Number Of Processors: 4 Processor Clock Speed: 4204 MHz Do U have an idea about % wait ? │ 0----------25-----------50----------75----------100 ... (1 Reply)
Discussion started by: tagger
1 Replies

7. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

8. Shell Programming and Scripting

wait command - cat it wait for not-chile process?

Did not use 'wait' yet. How I understand by now the wait works only for child processes, started background. Is there any other way to watch completion of any, not related process (at least, a process, owned by the same user?) I need to start a background process, witch will be waiting... (2 Replies)
Discussion started by: alex_5161
2 Replies

9. UNIX for Advanced & Expert Users

86% CPU for wait

Hi, is-it normal to have 86% of CPU for wait commande : ps aux| head -20 UTIL PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 516 86,6 0,0 12 12 - A 02 nov 2088:03 wait oralfa01 54422 4,6 1,0 68044 39868 - A 09:20:06 2:27 oracleALFA01 If... (3 Replies)
Discussion started by: big123456
3 Replies

10. UNIX for Dummies Questions & Answers

Process Wait on DG UX

Does anyone know what the equivalent command to pwait on Solaris is on DG/UX. I need my script to kick off a process and wait till it is complete before continuing with the script. (4 Replies)
Discussion started by: fabbas
4 Replies
Login or Register to Ask a Question