Main index | Section 8 | Options |
Caching can be configured using two different methods: "manual" or "automatic". When using the "manual" method, no metadata are stored on the devices, so the cached device has to be configured by hand every time it is needed. The "automatic" method uses on-disk metadata to detect devices. Once devices are labeled, they will be automatically detected and configured.
The first argument to gcache indicates an action to be performed:
create | Cache the given devices with specified name. This is the "manual" method. The kernel module geom_cache.ko will be loaded if it is not loaded already. |
label | Cache the given devices with the specified name. This is the "automatic" method, where metadata are stored in every device's last sector. The kernel module geom_cache.ko will be loaded if it is not loaded already. |
stop | Turn off existing cache device by its name. This command does not touch on-disk metadata! |
destroy | |
Same as stop. | |
clear | Clear metadata on the given devices. |
dump | Dump metadata stored on the given devices. |
list | See geom(8). |
status | See geom(8). |
load | See geom(8). |
unload | See geom(8). |
Additional options:
| |
Force the removal of the specified cache device. | |
| |
Be more verbose. | |
kern.geom.cache.used_hi: 20
kern.geom.cache.used_lo: 5 kern.geom.cache.idletime: 5 kern.geom.cache.timeout: 10 kern.geom.cache.enable: 1 kern.geom.cache.debug: 0 | |
Debug level of the CACHE GEOM class. This can be set to a number between 0 and 3 inclusive. If set to 0 minimal debug information is printed, and if set to 3 the maximum amount of debug information is printed. | |
GCACHE (8) | January 3, 2010 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | One of the advantages of using UNIX to teach an operating systems course is the sources and documentation will easily fit into a student's briefcase. | ” |
— John Lions |