Increasing the Number of nfsd Daemons
To increase the number
of nfsds running on a server, do the following
Edit /etc/rc.config.d/nfsconf, raising the value of NUM_NFSD; for example:
and restart the nfs.server script:
Defragmenting an HFS File System
Defragmenting an HFS file system could improve throughput
by reducing disk seek time. In practice, though, most experts believe
it will usually make little or no difference to performance. You should
do it only if you have good reason to believe, or have received expert
advice, that your system will really benefit.
You can defragment an HFS file system by backing
it up to tape, removing and recreating it, then recovering the data
from the tape.
The example that follows shows an alternative
method, using dcopy, and assumes you have enough
disk space to create a new logical volume at least as large as /dev/vg01/lvol8. We’ll operate on the /work file system, which resides on the logical volume /dev/vg01/lvol8.
up the file system; for example,
tar cv /work
backs up /work to the system
default tape device, /dev/rmt/0m.
a new logical volume (see HP-UX System Administrator) but do not mount
it to any file system.
this new logical volume is /dev/vg01/lvol9.
sure no one has files open in /work and that
it is no one’s current working directory, for example:
fuser -cu /work
out the contents of /work to /dev/vg01/lvol9:
dcopy -v /dev/vg01/rlvol8
|NOTE: The source file system should be a raw device
(/dev/vg01/rlvol8) and the destination file system
should be a block device (/dev/vg01/lvol9).|
the new logical volume to the mount point of the original file system, /work:
You can now reuse the original logical volume /dev/vg01/lvol8) or remove it (see “Removing a Logical Volume”).
Defragmenting a JFS File System
To maintain performance, particularly on file
systems with very large files, JFS provides the means to reorder disk
space to regain contiguous areas on which to write files. This process
of defragmentation should be performed periodically.
To defragment a JFS file system using HP SMH
the HP SMH Homepage as root.
Select Tools, Disks and File Systems, File Systems. This will display a list of file systems.
the desired JFS (VxFS) file system. You can now display extent or
directory fragmentation for the file system, or click on the Defragment Extents... or Defragment
Directories... actions on the right side of the page.
For more information, consult HP SMH’s
To defragment a JFS file system using fsadm
Execute the following to perform both directory
and extent reorganization and to generate reports before and after
fsadm -d -D -e -E /mount_point
For detailed information, consult fsadm_vxfs(1M).
To maintain optimal performance on busy file systems,
it may be necessary to defragment them nightly.
For example, to defragment every evening at 9
p.m. all the extents and directories within the file system mounted
at /home, include the following entry in a file
used by cron(1M):
0 21 * * * fsadm -d -e /home
Configurable Kernel Parameters
In some cases, you may be able
to get the results you need by resetting kernel parameters. For example,
if a user frequently runs out of processes (symptom no more processes), raising the value of maxuprc might be the answer.
Configuring Kernel Tunable Parameters Using HP SMH
the HP System Management Homepage (HP SMH) as root.
Select Tools, Kernel Configuration, Tunables. This will display the Kernel Configuration page
with the Tunables tab displayed.
on the Modify Tunable action on the right side of
the page. This will display the Modify Tunable page.
can now reset the tunable default, enter a new value, or log comments.
on Modify to complete the change.
For more information on dynamic tunables, see HP-UX System Administrator’s Guide: Configuration Management and the Dynamically Tunable Kernel Parameters in HP-UX
11i whitepaper at http://docs.hp.com.
|CAUTION: Make sure you read the help for all the parameters
related to any parameter you are considering changing. In the case
of maxuprc, you would need to read the help on nproc as well as maxuprc.|