取消
顯示結果 
搜尋替代 
您的意思是: 

ps -ef 一直 run 不出來

ps -ef 一直 run 不出來

This is HP Tru64 5.1A.

我們執行 ps 馬上有結果, 但 ps -ef 就當在那裡, 一直都沒結果.....

==========

# vmstat 1

Virtual Memory Statistics: (pagesize = 8192)

procs memory pages intr cpu

r w u act free wire fault cow zero react pin pout in sy cs us sy id

3 414 39 23K 512 6276 330K 35K 99K 51911 73K 22K 82 447 821 2 3 95

3 414 39 23K 512 6276 9 27 18 0 26 0 18 233 661 1 1 98

3 414 39 23K 515 6276 3 0 0 0 1 0 11 176 439 0 0 100

3 414 39 23K 515 6276 0 0 0 0 0 0 3 237 371 0 0 100

3 414 39 23K 514 6276 1 0 0 0 0 0 7 158 445 0 0 100

3 414 39 23K 514 6276 0 0 1 0 0 0 10 125 421 0 0 100

=======================

CPU 幾乎都 idle

=======================

# swapon -s

Swap partition /dev/disk/dsk4b (default swap):

Allocated space: 625000 pages (4.77GB)

In-use space: 58823 pages ( 9%)

Free space: 566177 pages ( 90%)





Total swap allocation:

Allocated space: 625000 pages (4.77GB)

Reserved space: 101039 pages ( 16%)

In-use space: 58823 pages ( 9%)

Available space: 523961 pages ( 83%)

===================

memory 也沒問題....



What can I do ?

8 回覆

ps -ef 一直 run 不出來

先檢查是run 哪一個PATH下的ps

我之前有遇過PATH被改掉,所以系統跑去run別的ps

ps -ef 一直 run 不出來

# which ps

/sbin/ps

===============

這是一台 DS10 (RAM 256MB), 一直都是在 run 一套舊系統(只有一個 user 會使用), 過去都一直沒問題, 但自從我們搬 server 換 IP(這都是由 HP implement)之後, 我們和過去一樣開啟 AP service, 但就會發生 ps -ef run 不出來的問題(如果還沒開啟 AP service, ps -ef 很快就出來), 但從 CPU , memory 的使用情形來看, 都不至於會有問題, 連 ps aux 都無法 run, AP 也覺得慢到無法接受, 請問是否還有什麼該檢查的地方呢?



Thanks



Eric

ps -ef 一直 run 不出來

Hello all,



Please check the command "ps" is correct or not as Joey updated. As the following commands.



# which ps

# ls -l `which ps`

# file `which ps`

# /sbin/ps -ef

# /usr/bin/ps -ef

# file /sbin/ps /usr/bin/ps

# ls -l /sbin/ps /usr/bin/ps

# sum /sbin/ps /usr/bin/ps



If it's still failed to run via

"/sbin/ps -e" or "/usr/bin/ps -e". Please rebooting the problem system then using the "genvmunix" to boot again.

Because I'm afraid it has a bad kernel file "/vmunix" and need to do "doconfig -c HOSTNAME" for building a new /vmunix.



Best regards,

Richard.

ps -ef 一直 run 不出來

# which ps

/sbin/ps

# ls -l `which ps`

-rws--x--x 1 root bin 115168 Jan 16 2002 /sbin/ps

# file `which ps`

/sbin/ps: COFF format alpha dynamically linked, demand paged setuid execu

ps -ef 一直 run 不出來

只要停掉 AP 的其中一個 service, ps -ef 立刻就會有結果, 但啟動那個 service 之後, ps -ef 就 hang, 無論多久都無法執行出來, 但 Server resource ( CPU & memory ) 都沒問題

ps -ef 一直 run 不出來

Hi Eric,



What AP service for you.

Please take by youself if it is a binary AP files. Otherwise, please provide it to analyze in advance!



Best regards,

Richard.

ps -ef 一直 run 不出來

換個shell試看看,還會hang嗎

ps -ef 一直 run 不出來

Hello Eric,



I think it has a oldest OS patch kit V5.1A/PK3 on your hand.

Please upgrading the latest V5.1A/PK6 that is supported by HP as below description:



PROBLEM: (93325, 93329) (PATCH ID: TCR520-160)

********

The symptom of the first fix addressed by this patch is that one or more

user processes will be stuck in the "U" state (as shown by the ps command)

and an analysis of a dump shows that a thread is in the rdg_ctx_rcvq_cleanup

routine.



If it's still hang while running the "ps -ef" after PK6 upgrading. Please using "dumpsys" for forcing a SW crash dump and calling HP for outage escalation.



Best regards,

Richard.