Bug 78041

Summary: [patch] docs for md(4) need further explanation of type swap
Product: Documentation Reporter: Lars Kristiansen <lars+lister.freebsd>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me CC: lars+lister.freebsd
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Lars Kristiansen 2005-02-24 22:20:21 UTC
Documentation describes memory disks of type swap as allocated from swap
space which leads to believe they are diskbound.

This description in a mail from Scott Long to freebsd-fs explains otherwise:
 ( http://docs.freebsd.org/cgi/mid.cgi?41E01905.3040200 )
"With the swap option, pages are allocated from the buffer/cache and
held there.  They are only swapped to disk when the system is under
memory pressure, otherwise they stay in RAM."

or this one in a mail from Poul-Henning Kamp:
 ( http://docs.freebsd.org/cgi/mid.cgi?45044.1105365790 )
"Swap-backing is very different from RAM disks in that things get
pushed out of RAM if better use can be made of the pages."

Fix: ############### suggested patch from Lowell Gilbert: ###############


Note:
Documents which could use corresponding changes includes
 the manpages for md, mdconfig and mdmfs,
and also in this chapter of the handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html#DISKS-MD-FREEBSD5--NMLUhNZvr592tkWV7dzvxnszHq08CvpSLrVmuxmMbLFGeCyk
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- src/share/man/man4/md.4.ORIG   Thu Feb 24 11:51:37 2005
+++ src/share/man/man4/md.4        Thu Feb 24 11:51:51 2005
@@ -50,7 +50,7 @@
 This allows for mounting ISO images without the tedious
 detour over actual physical media.
 .It Cm swap
-Backing store is allocated from swap space.
+Backing store is allocated from virtual memory space.
 .El
 .Pp
 For more information, please see
############### end of patch ###############
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2007-05-12 15:33:44 UTC
State Changed
From-To: open->closed

Extended text committed, thank you!
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-05-12 16:33:25 UTC
pav         2007-05-12 15:33:19 UTC

  FreeBSD src repository (doc,ports committer)

  Modified files:
    share/man/man4       md.4 
  Log:
  Talk more about swap backing
  
  PR:             docs/78041 (inspired by)
  Submitted by:   Lars Kristiansen <lars+lister.freebsd@adventuras.no>
  MFC after:      1 week
  
  Revision  Changes    Path
  1.13      +8 -1      src/share/man/man4/md.4
_______________________________________________
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"