Patch Name: PHCO_25979 Patch Description: s700_800 11.11 vmstat(1) cumulative patch Creation Date: 02/07/23 Post Date: 02/07/29 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair enhancement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_25979 Symptoms: PHCO_25979: ( SR:8606229310 CR:JAGad98363 ) vmstat(1) reports wrong value for average CPU idle time in the first line. PHCO_24479: ( SR:8606197716 CR:JAGad66907 ) This patch is a member of a set of patches needed to enable the HP-UX Processor Sets product (PROCSETS). When PROCSETS product is installed, it will install the full set of required patches for that product, including this patch. If the HP-UX Processor Sets product is not installed, this change will have no impact on your system. Defect Description: PHCO_25979: ( SR:8606229310 CR:JAGad98363 ) vmstat(1) is showing wrong value for average CPU idle time spent by all the active processors. The average cpu time spent in each state was calculated by storing the sum of cpu time spent in each state by all the active processors in a variable and dividing it with number of active processors. There was a overflow occurring while assigning the sum of cpu times spent by all the active processors. This problem can occur only on multi-processor systems, up for long time. Example: (NOTE: This can be reproducible on a MP system which is up for a long time) #vmstat 1 6 procs memory page faults cpu r b w avm free re at pi po fr de sr in sy cs us sy id 5 29 0 1999284 2270363 53 31 0 0 0 0 0 3688 18734 2590 47 31 9568007487488 5 29 0 1999284 2270363 502 129 0 0 0 0 0 19323 66617 9477 0 0 100 [....snip....] The value 9568007487488 is incorrect for CPU idle time. Resolution: The variable used for storing the sum, is changed to take care of large values. Now the overflow is not occurring and vmstat(1) is giving correct output. PHCO_24479: ( SR:8606197716 CR:JAGad66907 ) This patch contains minor enhancements required to support the HP-UX Processor Sets product. Resolution: Enhancements to vmstat(1) to utilize changes in mpctl(2) when Processor Sets product is enabled. SR: 8606197716 8606229310 Patch Files: OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/bin/vmstat OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/bin/vmstat what(1) Output: OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/bin/vmstat: vmstat.c $Date: 2002/07/18 02:51:30 $Revision: r11.1 1/3 PATCH_11.11 (PHCO_25979) $Revision: @(#) all CUP11.11_BL2002_0722_3 PATCH_11. 11 PHCO_25979 Tue Jul 23 03:38:10 PDT 2002 $ OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/bin/vmstat: vmstat.c $Date: 2002/07/18 02:51:30 $Revision: r11.1 1/3 PATCH_11.11 (PHCO_25979) $Revision: @(#) all CUP11.11_BL2002_0722_3 PATCH_11. 11 PHCO_25979 Tue Jul 23 03:38:10 PDT 2002 $ cksum(1) Output: OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: 4053511351 24576 /usr/bin/vmstat OS-Core.SYS-ADMIN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: 4053511351 24576 /usr/bin/vmstat Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_24479 Equivalent Patches: None Patch Package Size: 70 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_25979 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_25979.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_25979. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_25979.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_25979.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_25979.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None