Lines Matching +full:memory +full:- +full:to +full:- +full:memory
5 .\" Poul-Henning Kamp All rights reserved.
7 .\" This code is derived from software contributed to Berkeley by
20 .\" may be used to endorse or promote products derived from this software
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
41 .Nd create and control memory disks
79 Options indicate an action to be performed:
80 .Bl -tag -width indent
82 Attach a memory disk.
83 This will configure and attach a memory disk with the
84 parameters specified and attach it to the system.
89 Detach a memory disk from the system and release all resources.
91 Resize a memory disk.
93 Select the type of the memory disk.
94 .Bl -tag -width "malloc"
96 Storage for this type of memory disk is allocated with
98 This limits the size to the malloc bucket limit in the kernel.
102 malloc-backed memory disk is a very easy way to
107 becomes the backing store for this memory disk.
109 Storage for this type of memory disk is allocated from buffer
110 memory.
111 Pages get pushed out to swap when the system is under memory
112 pressure, otherwise they stay in the operating memory.
122 Filename to use for the vnode type memory disk.
156 Size of the memory disk.
172 Sectorsize to use for the memory disk, in bytes.
186 options can be used to specify a synthetic geometry.
187 This is useful for constructing bootable images for later download to
190 Associate a label (arbitrary string) with the new memory disk.
192 .Bd -literal -offset indent
197 .Bl -tag -width indent
209 The default is to not cache.
211 Accesses via the device are converted to accesses via the vnode.
213 This is normally to cache.
223 The result is that with normal (non-zfs) caching,
229 option tends to waste memory by giving unwanted double caching,
230 but it saves time if there is memory to spare.
234 Enable/disable compression features to reduce memory usage.
236 Disable/enable extra sanity checks to prevent the user from doing something
240 flag to forcibly destroy an
246 backed devices: detect whether hole-punching is supported by the underlying file
248 If the file system supports hole-punching, then to handle a
252 Any parts which are not turned into holes are zero-filled in
255 hole-punching,
257 requests to the device are not handled and will fail with
266 request, if the file system supports hole-punching, some or all of the request's
268 Any parts which are not turned into holes are zero-filled in the file.
269 If the file system of the vnode type memory disk does not support hole-punching,
270 the request's operation range is zero-filled in the file.
305 .Bd -literal -offset indent
309 Create a 1 gigabyte swap backed memory disk named
311 .Bd -literal -offset indent
312 mdconfig -s 1g -u md3
317 .Bd -literal -offset indent
318 mdconfig -du md3
321 Show detailed information on current memory disks:
322 .Bd -literal -offset indent
323 mdconfig -lv
328 memory disk to 2 gigabytes:
329 .Bd -literal -offset indent
330 mdconfig -rs 2g -u md3
337 .Bd -literal -offset indent
338 mdconfig -s 1g -u md10
339 newfs -U /dev/md10
344 Create a memory disk out of an ISO 9660 CD image file,
348 .Bd -literal -offset indent
349 mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
352 Create a file-backed device from a hard disk image that begins
355 is used to skip over the header information, positioning
358 .Bd -literal -offset indent
359 mdconfig -u md1 -f diskimage.img
360 gnop create -o 512K md1
384 .An Poul-Henning Kamp Aq Mt phk@FreeBSD.org .