PMDF System Manager's Guide
PMDF-REF-6.0


Previous | Contents

33.3 Disks and files

The most common bottleneck in PMDF is disk I/O. PMDF does a lot of it. Try to keep the disks with PMDF's message store below 66% capacity so that the operating system can efficiently manage file create and delete cycles. This is especially important on OpenVMS where the file system begins to become very inefficient once the disk gets over 66% capacity. Also, use disk striping or other aggregate disk spindle techniques that help both read and writes. Avoid disk shadowing if possible. Disk is cheap these days: spend money on multiple spindles and sufficient free space.

By using symbolic links under the /pmdf directory (UNIX), or by redefining the PMDF_QUEUE and PMDF_LOG logicals (OpenVMS) you can redirect where PMDF keeps its message store and log files. PMDF's command, executable, and table directories² can also be separated if absolutely necessary.

The location for PMDF temporary files can also be moved. PMDF_SCRATCH controls the location of temporary unnamed files (such as those used to buffer incoming large SMTP messages or incoming large messages submitted by local users); PMDF_TMP controls the location of temporary named files (such as those used by the conversion channel). On UNIX, both values default to /pmdf/tmp if not explicitly pointed elsewhere in the PMDF tailor file. On OpenVMS, if PMDF_SCRATCH and PMDF_TMP logicals are not defined then temporary unnamed files default to SYS$SCRATCH (next SYS$DISK, next SYS$LOGIN) and temporary named files default to PMDF_QUEUE:[000000]. Note that if explicitly defining PMDF_SCRATCH it is important to point it to a device on which any user may create files.

By default, the messages for a given channel are stored in a single, channel-specific directory under PMDF_QUEUE: (OpenVMS) or /pmdf/queue/ (UNIX) or usually C:\pmdf\queue\ (NT). File system performance degrades rapidly for directories with more than a couple thousand files; this can present a problem for channels which see heavy message traffic --- especially when the network associated with that channel is down and messages begin to queue up. Use the subdirs channel keyword to indicate that a channel should uniformly spread its messages across several subdirectories. For Internet sites with heavy traffic loads, this should be done for their outgoing TCP/IP channel, usually tcp_local.

By changing the PMDF_QUEUE_CACHE_DATABASE logical (OpenVMS) or PMDF tailor file option (UNIX) or Registry entry (NT), you may move the queue cache database to an alternate location. After moving it, be sure to issue the OpenVMS commands

$ PMDF CACHE/CLOSE
$ PMDF CACHE/SYNCH
or the UNIX commands
$ pmdf cache -close
$ pmdf cache -synchronize
or the NT commands
C:\> pmdf restart dispatcher
C:\> pmdf restart job_controller
so as to ensure that all PMDF processing jobs close the old database and begin using the new, relocated database.

It is safe to keep the queue cache database on a virtual RAM disk provided that: