Bug 83621

Summary: [patch]: Minor omissions in /usr/src/UPDATING
Product: Documentation Reporter: Scott Robbins <scottro>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Scott Robbins 2005-07-17 18:20:12 UTC
	/usr/src/UPDATING, although mentioning that disabling malloc debugging 
	flags will improve performance, doesn't give the method to do so.  
	Therefore, the question often comes up on the mailing lists.
	Additionally, UPDATING doesn't mention the relatively new 
	make cleanworld target.  (The handbook doesn't either.)

Fix: 

Err, google?--SH70jXfyqg2mvKHBgWN1AnqCx5zn4Rou2d6bGuRHP3ed6xp5
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- UPDATING	Sun Jul 17 12:49:19 2005
+++ UPDATING.new	Sun Jul 17 12:59:12 2005
@@ -19,7 +19,8 @@
 	related kernel options, INVARIANTS, malloc debugging flags
 	in userland, and various verbose features in the kernel.  Many
 	developers choose to disable these features on build machines
-	to maximize performance.
+	to maximize performance.  (To disable malloc debugging, 
+	ln -s aj /etc/malloc.conf)
 
 20050711:
 	RELENG_6 branched here.
@@ -227,6 +228,10 @@
 	prefix all make commands with 'env -i '.  See the env(1) manual
 	page for more details.
 
+	As of FreeBSD-5.x there is now a make cleanworld target.  This
+	This removes the cruft of previous builds from /usr/obj.
+
+
 	To build a kernel
 	-----------------
 	If you are updating from a prior version of FreeBSD (even one just
@@ -264,6 +269,7 @@
 	# is listed here if you are upgrading from a really old current.
 
 	<make sure you have good level 0 dumps>
+	make cleanworld
 	make buildworld
 	make kernel KERNCONF=YOUR_KERNEL_HERE
 							[1]
@@ -301,6 +307,7 @@
 	To upgrade in-place from 5.x-stable to current
 	----------------------------------------------
 	<make sure you have good level 0 dumps>
+	make cleanworld
 	make buildworld					[9]
 	make kernel KERNCONF=YOUR_KERNEL_HERE		[8]
 							[1]
Comment 1 dfilter service freebsd_committer freebsd_triage 2008-01-22 15:05:38 UTC
trhodes     2008-01-22 15:05:22 UTC

  FreeBSD src repository

  Modified files:
    .                    UPDATING 
  Log:
  Quick note on how to disable malloc debugging in the top entry in this file.
  
  PR:             83621
  Submitted by:   Scott Robbins <scottro@nyc.rr.com> (original version)
  Reviewed by:    imp
  
  Revision  Changes    Path
  1.515     +2 -1      src/UPDATING
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Tom Rhodes freebsd_committer freebsd_triage 2008-01-22 15:05:40 UTC
State Changed
From-To: open->closed

The comment about disabling malloc flags was merged into CURRENT; however, the 
cleanworld target did not get merged.  The cleandir target works fine and 
cleanworld is already documented in build.7.  As far as I know, it's not a 
required step.  Thanks for the submission! 


Comment 3 Tom Rhodes freebsd_committer freebsd_triage 2008-01-22 15:05:40 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me.