14
- Disk Setup
your partitions run out of space or when your disks fail. OpenBSD has a few options to increase the speed of your
disk operations.
●
Soft Updates
●
Size of the namei() cache
14.18.1 - Soft updates
An important tool that can be used to speed up your system is softupdates. One of the slowest operations in the
traditional BSD file system is updating metainfo (which happens, among other times,
when you create or delete
files and directories). Softupdates attempts to update metainfo in RAM instead of writing to the hard disk each
and every single metainfo update. Another effect of this is that the metainfo on disk should always be complete,
although not always up to date. You can read more about softupdates in the
Softupdates FAQ
entry.
14.18.2 - Size of the namei() cache
The name-to-inode translation (a.k.a., namei()) cache controls
the speed of pathname to
inode(5)
translation. A
reasonable way to derive a value for the cache, should a large number of namei() cache misses be noticed with a
tool such as
systat(1)
, is to examine the system's
current computed value with
sysctl(8)
, (which calls this
parameter "
kern.maxvnodes
") and to increase this value until either the namei() cache hit rate improves or it
is determined that the system does not benefit substantially from an increase in the size of the namei() cache.
After
the value has been determined, you can set it at system startup time with
sysctl.conf(5)
.
Do'stlaringiz bilan baham: