Re: Locking a file backed mdconfig into memory



On Thu, May 27, 2010 at 04:48:42PM -0700, Dave Hayes wrote:
On FreeBSD 7.3-STABLE I'm mounting a DVD and doing something like
this:

mdconfig -a -t vnode -o reserve -o readonly -f /dvd/file

so that /dvd/file becomes the backing storage for my memory
disk.

It sounds like what you really want is to load the contents of the
specified file as a memory system? That's not part of mdconfig's
repertoire, to the best of my recollection.

If that's what you want, you need to use a different tool; the purpose
of mdconfig is to provide scratch disk. The backing store is to
specify a region its contents can be swapped out to if the system is
under memory pressure (which certainly won't work with a DVD)

-- Clifton

--
Clifton Royston -- cliftonr@xxxxxxxxxxxxxxxxxx / cliftonr@xxxxxxxx
President - I and I Computing * http://www.iandicomputing.com/
Custom programming, network design, systems and network consulting services
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Programming in standard c
    ... read into memory* (and you have to specify text or binary mode). ... The size on disk ... intervening accesses from other programs. ...
    (comp.lang.c)
  • Proposed Assembler Commands
    ... ACM Automatically Clear Memory ... BKCRDR Backspace Card Reader ... BKSPD Backspace Disk ... EIAO Execute In Any Order ...
    (sci.electronics.design)
  • Re: Att. Alex Nichol -VM cont.
    ... I find documentation that says a 4kb page in memory is written to the hard ... manner that a 4kb memory page is equal to a 4kb cluster written on the disk". ... So where is the basis for saying since 4kb paging in memory that 4kb clusters ...
    (microsoft.public.windowsxp.general)
  • Re: Slow performance
    ... Leaving your computer on 24/7 means that if any programme has a memory ... The Disk Defragmenter report shows you have minimal free disk space. ... select Properties, General, Advanced and check the box before Compress ... Volume fragmentation ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: teaching a child - console or GUI
    ... I use a RDBMS to reuse existing code and optimizations. ... >>And loading them in a system under load (with constant disk io) is worse ... quality stuff), and quality power supply, quality memory etc. ... > lists of pointers on disk, extract files of frequent search fields in ...
    (comp.lang.pascal.delphi.misc)