AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Bug with ps aux

    Posted Thu February 15, 2007 07:38 AM

    Originally posted by: SystemAdmin


    I have a problem with the CPU used output when I execute ps aux in a AIX SERVER with AIX5.3 and maintenance level 3.

    ps aux | head -1; ps aux | sort -rn +2 | head -10
    USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
    orapfs 458918 15389.6 0.0 54472 24252 - A Jan 31 26155975:05 oraclePFS (DESC
    root 1130608 13287.1 0.0 1892 1852 - A Jan 29 26155549:06 /usr/sbin/rsct/
    orapfs 589870 11150.5 1.0 91200 62548 - A Jan 26 26156075:35 oraclePFS (DESC
    orapfs 585766 11150.3 0.0 52504 24028 - A Jan 26 26155701:52 oraclePFS (DESC
    pfsadm 1265896 7.7 0.0 50396 43796 - A 10:27:54 97:29 dw.sapPFS_DVEBM
    root 53274 3.1 0.0 40 36 - A Jan 26 7276:22 wait
    root 16678 3.1 0.0 40 36 - A Jan 26 7365:01 wait
    root 20776 3.0 0.0 40 36 - A Jan 26 6939:31 wait
    root 57372 2.9 0.0 40 36 - A Jan 26 6873:21 wait
    root 286 2.3 0.0 40 36 - A Jan 26 5404:46 wait

    The processes with highest time in the machine have a impossible used %CPU value higher than 100.

    I have been looking for a bug of the fileset that contain the command ps, and there isn´t bugs for this error.

    lslpp -w /usr/bin/ps
    File Fileset Type

    /usr/bin/ps bos.rte.control File
    lslpp -l|grep bos.rte.control
    bos.rte.control 5.3.0.31 APPLIED System Control Commands
    bos.rte.control 5.3.0.10 COMMITTED System Control Commands

    The latest fix is bos.rte.control 5.3.0.50, but it doesn´t appear in the info fix a comment about a bug in the command ps.

    ***************************************************
    MEMO TO USERS = NONE
    ENDSET
    APARTXT IY79863 = New function
    new function
    APARTXT IY80049 = ps malloc: Not enough space
    ps fails with \'out of memory\' error, when there are huge
    number of processes.
    APARTXT IY80257 = ps command output format greater than 2048 character
    s per line
    In its current implementation, ps can not display more than
    2048 characters per output line when the output is
    redirected or piped (i.e. output is not sent to tty).
    Also, using the \'-o\' option, user can not use a format
    specifier longer than 2048 characters.
    APARTXT IY80367 = halt completed message no need of translation
    shutdown -F was displaying improper \"Halt Completed\" message
    in Japanese locale.
    APARTXT IY83800 = problems with configuring system hang daemon
    shdaemon core dumps with stack trace revealing that the core
    dump occured when the stack size was being expanded.
    APARTXT IY83844 = ps -F \"dpgsz spgsz tpgsz\" doesn\'t display the out
    put
    ps -F doesn\'t work for \'dpgsz\', \'spgsz\' and \'tpgsz\'
    APARTXT IY83871 = wlmstat -M does not show correct MB usage
    wlmstat reports virtual memory size in wrong units.
    APARTXT IY84503 = error in /etc/rc.d/rc script
    If we want to start up some application with a script in the
    /etc/rc.d/rc*.d directory and create a script say S1,This
    script would run, but any script after S1 (say S2, S3, etc)
    would not run if any of the scripts S2,S3 etc.. clear the
    stdin.
    ENDSET
    COMPID FOR PTF U498467 = 5765G0300,530
    PRODID FOR PTF U498467 = 5765G03,System Control Comma
    PREREQ FOR U498467 = NONE
    ENDSET
    COREQ FOR U498467 = NONE
    ENDSET
    SUP FOR U498467 = NONE
    ENDSET
    IFREQ FOR U498467 = U478155.5765G0300 U487041.5765G0300
    U497391.5765G0300 U497392.5765G0300
    U497413.5765G0300 U499552.5765G0300
    U801824.5765G0300 U801831.5765G0300
    ENDSET
    LABELTXT
    Selective Fix Package
    For use on AIX V5.3 only
    ENDSET
    #AIX-Forum


  • 2.  Re: Bug with ps aux

    Posted Thu February 15, 2007 08:07 PM

    Originally posted by: dukessd


    What is the platform / hardware?
    If it is not this APAR:
    http://www-1.ibm.com/support/docview.wss?uid=isg1IY77690
    I raised a pmr recently for a similar problem on power4 7040 (seems it only affects this platform, or possibly all power4 machines)
    It was a known bug and the APAR / fix is due in TL6, there is no workaround but there is also no impact, ignore it until TL6 is available or raise a PMR and ask for an ifix (also not available at this time).
    #AIX-Forum


  • 3.  Re: Bug with ps aux

    Posted Fri February 16, 2007 01:51 PM

    Originally posted by: SystemAdmin


    This isn't a bug. The processes you're seeing with the high CPU values are the wait processes that get dispatched whenever there's no work to do, 1 for each CPU.

    HTH

    Jim Lane
    #AIX-Forum


  • 4.  Re: Bug with ps aux

    Posted Mon February 19, 2007 03:51 AM

    Originally posted by: SystemAdmin


    It's a bug:
    http://www-1.ibm.com/support/docview.wss?uid=isg1IY77690

    But, anybody knows if its needed to reboot after install the patch?

    Thanks
    #AIX-Forum