Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 1998 17:56:06 -0800 (PST)
From:      John Dyson <dyson@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/i386/i386 pmap.c src/sys/kern vfs_bio.c vfs_cluster.c vfs_subr.c src/sys/sys buf.h vnode.h src/sys/ufs/ffs ffs_inode.c src/sys/vm vm_object.c vm_page.c vm_pageout.c vm_pager.c vnode_pager.c
Message-ID:  <199803160156.RAA28044@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
dyson       1998/03/15 17:56:06 PST

  Modified files:
    sys/i386/i386        pmap.c 
    sys/kern             vfs_bio.c vfs_cluster.c vfs_subr.c 
    sys/sys              buf.h vnode.h 
    sys/ufs/ffs          ffs_inode.c 
    sys/vm               vm_object.c vm_page.c vm_pageout.c 
                         vm_pager.c vnode_pager.c 
  Log:
  Some VM improvements, including elimination of alot of Sig-11
  problems.  Tor Egge and others have helped with various VM bugs
  lately, but don't blame him -- blame me!!!
  
  pmap.c:
  1)	Create an object for kernel page table allocations.  This
  	fixes a bogus allocation method previously used for such, by
  	grabbing pages from the kernel object, using bogus pindexes.
  	(This was a code cleanup, and perhaps a minor system stability
  	 issue.)
  
  pmap.c:
  2)	Pre-set the modify and accessed bits when prudent.  This will
  	decrease bus traffic under certain circumstances.
  
  vfs_bio.c, vfs_cluster.c:
  3)	Rather than calculating the beginning virtual byte offset
  	multiple times, stick the offset into the buffer header, so
  	that the calculated offset can be reused.  (Long long multiplies
  	are often expensive, and this is a probably unmeasurable performance
  	improvement, and code cleanup.)
  
  vfs_bio.c:
  4)	Handle write recursion more intelligently (but not perfectly) so
  	that it is less likely to cause a system panic, and is also
  	much more robust.
  
  vfs_bio.c:
  5)	getblk incorrectly wrote out blocks that are incorrectly sized.
  	The problem is fixed, and writes blocks out ONLY when B_DELWRI
  	is true.
  
  vfs_bio.c:
  6)	Check that already constituted buffers have fully valid pages.  If
  	not, then make sure that the B_CACHE bit is not set. (This was
  	a major source of Sig-11 type problems.)
  
  vfs_bio.c:
  7)	Fix a potential system deadlock due to an incorrectly specified
  	sleep priority while waiting for a buffer write operation.  The
  	change that I made opens the system up to serious problems, and
  	we need to examine the issue of process sleep priorities.
  
  vfs_cluster.c, vfs_bio.c:
  8)	Make clustered reads work more correctly (and more completely)
  	when buffers are already constituted, but not fully valid.
  	(This was another system reliability issue.)
  
  vfs_subr.c, ffs_inode.c:
  9)	Create a vtruncbuf function, which is used by filesystems that
  	can truncate files.  The vinvalbuf forced a file sync type operation,
  	while vtruncbuf only invalidates the buffers past the new end of file,
  	and also invalidates the appropriate pages.  (This was a system reliabiliy
  	and performance issue.)
  
  10)	Modify FFS to use vtruncbuf.
  
  vm_object.c:
  11)	Make the object rundown mechanism for OBJT_VNODE type objects work
  	more correctly.  Included in that fix, create pager entries for
  	the OBJT_DEAD pager type, so that paging requests that might slip
  	in during race conditions are properly handled.  (This was a system
  	reliability issue.)
  
  vm_page.c:
  12)	Make some of the page validation routines be a little less picky
  	about arguments passed to them.  Also, support page invalidation
  	change the object generation count so that we handle generation
  	counts a little more robustly.
  
  vm_pageout.c:
  13)	Further reduce pageout daemon activity when the system doesn't
  	need help from it.  There should be no additional performance
  	decrease even when the pageout daemon is running.  (This was
  	a significant performance issue.)
  
  vnode_pager.c:
  14)	Teach the vnode pager to handle race conditions during vnode
  	deallocations.
  
  Revision  Changes    Path
  1.190     +25 -14    src/sys/i386/i386/pmap.c
  1.156     +86 -63    src/sys/kern/vfs_bio.c
  1.58      +25 -16    src/sys/kern/vfs_cluster.c
  1.141     +88 -1     src/sys/kern/vfs_subr.c
  1.48      +2 -1      src/sys/sys/buf.h
  1.69      +4 -1      src/sys/sys/vnode.h
  1.37      +3 -13     src/sys/ufs/ffs/ffs_inode.c
  1.119     +12 -10    src/sys/vm/vm_object.c
  1.97      +7 -1      src/sys/vm/vm_page.c
  1.120     +11 -20    src/sys/vm/vm_pageout.c
  1.37      +75 -1     src/sys/vm/vm_pager.c
  1.91      +3 -1      src/sys/vm/vnode_pager.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803160156.RAA28044>