Patch Name: PHCO_22733

Patch Description: s700_800 11.00 sar(1) cumulative patch

Creation Date: 00/12/01

Post Date: 00/12/06

Hardware Platforms - OS Releases:
	s700: 11.00
	s800: 11.00

Products: N/A

Filesets:
	OS-Core.ADMN-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP

Automatic Reboot?: No

Status: General Release

Critical: No

Category Tags:
	hardware_enablement general_release

Path Name: /hp-ux_patches/s700_800/11.X/PHCO_22733

Symptoms:
	PHCO_22733:
	1. sar(1) from PHCO_21893 can coredump when
	   encountering RESTART record.

	2. sar(1) used to kill some unintended processes
	   on failure to create child processes.

	3. sar(1) used to kill some unintended processes
	   when a signal is sent to it.

	4. sar does not report bread/bwrite information correctly
	   on multiprocessor systems.

	PHCO_21893:
	In a multi processor system, if any processor other
	than the last processor is deallocated, sar(1) shows
	incorrect run queue length, cpu usage, average run
	queue length and average cpu usage information.

	PHCO_15220:
	Year displayed in three digits

Defect Description:
	PHCO_22733:
	1. On encountering a RESTART record, sar(1) coredumps.
	   This was due to improper memory management.

	Resolution:
	   Now sar(1) takes care to handle RESTART records
	   appropriately.

	2. When sar(1) fails to create child processes, it
	   killed unrelated processes due to incorrect handling
	   of signals.

	Resolution:
	   Now sar(1) handles signals correctly.

	3. On receiving a signal, sar(1) used to send the signal
	   to all processes in its process group, thus killing
	   them.

	Resolution:
	   Now sar(1) takes care not to send the signals to all
	   processes in its process group.

	4. sar is not calculating buffer cache read/writes
	   correctly for multiprocessor systems. It just uses the
	   statistics from the last CPU, instead of using the
	   info from all the CPUs.

	Resolution:
	   Now sar(1) is made to store statistics of all the
	   processors, Uses the statistics while calculating the
	   buffer cache read/writes.

	PHCO_21893:
	In a multiprocessor system of say, n processors,
	when a processor other than processor "n" is
	deallocated, sar(1) skips the information of
	processor "n" instead of the deallocated processor.
	While calculating the averages, sar(1) takes the
	deallocated processor into consideration instead
	of processor "n".

	Resolution:
	Now, mpctl(2) call is used in sar(1) to find the allocated
	processors' numbers and sar(1) is made to display and
	calculate information only for the allocated processors.

	PHCO_15220:
	Year displayed in three digits

SR:
	8606167692 8606155322 8606151981 8606108312 8606142600
	4701391466

Patch Files:
	
	OS-Core.ADMN-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,
		v=HP:
	/usr/share/man/man1m.Z/sar.1m

	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	/usr/lib/nls/msg/C/sar.cat
	/usr/lbin/sa/sadc
	/usr/sbin/sar

what(1) Output:
	
	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	/usr/lib/nls/msg/C/sar.cat:
		None

	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	/usr/lbin/sa/sadc:
		sadc.c $Revision: 80.1.1.5 $
		PATCH_11_00: sadc.o 00/12/01

	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	/usr/sbin/sar:
		$Revision: 82.1.1.12 $
		PATCH_11_00: sar.o 00/12/01

	OS-Core.ADMN-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,
		v=HP:
	/usr/share/man/man1m.Z/sar.1m:
		None

cksum(1) Output:
	
	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	384279235 553 /usr/lib/nls/msg/C/sar.cat

	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	4174750479 20480 /usr/lbin/sa/sadc

	OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	2428400554 40960 /usr/sbin/sar

	OS-Core.ADMN-ENG-A-MAN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,
		v=HP:
	1624229436 4712 /usr/share/man/man1m.Z/sar.1m

Patch Conflicts: None

Patch Dependencies: None

Hardware Dependencies: None

Other Dependencies: None

Supersedes:
	PHCO_15220 PHCO_21893

Equivalent Patches: None

Patch Package Size: 100 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_22733

	5. Run swinstall to install the patch:

		swinstall -x autoreboot=true -x patch_match_target=true \
			  -s /tmp/PHCO_22733.depot

	By default swinstall will archive the original software in 
	/var/adm/sw/save/PHCO_22733.  If you do not wish to retain a
	copy of the original software, use the patch_save_files option:

		swinstall -x autoreboot=true -x patch_match_target=true \
			  -x patch_save_files=false -s /tmp/PHCO_22733.depot

	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_22733.text file is 
	available in the product readme:

		swlist -l product -a readme -d @ /tmp/PHCO_22733.depot

	To put this patch on a magnetic tape and install from the
	tape drive, use the command:

		dd if=/tmp/PHCO_22733.depot of=/dev/rmt/0m bs=2k

Special Installation Instructions: None

