Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Tunable Kernel Parameters: HP-UX Release 11i Version 1.6 > Chapter 2 Accounting Subsystem

Specifying a Threshold Value

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

acctsuspend and acctresume are integers that each specify a percentage of total usable space on the file system where the accounting log files reside. This percentage is added to the current value of minfree to determine what percentage of total file system space must be available for process accounting to continue operating.

Threshold values are determined by adding the specified value for acctsuspend or acctresume to the current value of minfree. If the value of either parameter is less than zero, that value reduces the free space requirement, allowing the accounting files to invade the protected minimum free space area reserved by minfree. If the sum of acctsuspend and minfree is zero or negative, accounting can continue until the entire file system is full, rendering the value of acctresume meaningless.

Calculating Threshold Values

The value chosen for acctsuspend or acctresume represents the difference between the corresponding suspend-accounting or resume-accounting threshold value and the current value of minfree for the file system where accounting log files reside.

  • Nonnegative values for acctsuspend and acctresume are added to the current value of minfree to determine the suspend or resume threshold, respectively, as a percentage of total usable file system size. Accounting cannot invade free-space area.

  • Negative values for acctsuspend and acctresume are subtracted from the current value of minfree to determine the suspend or resume threshold as a percentage of total usable file system size. Accounting suspension or resumption, respectively, occurs inside the reserved minimum free-space area.

  • A suspend-accounting threshold value that is zero or negative allows accounting to continue until the file system overflows.

  • A resume threshold value that is 100 or greater, or that is larger than the maximum expectable free space on the file system at any time, prevents accounting from resuming until the system is rebooted or accounting is manually restarted using the startup command (see acctsh(1M)).

Examples

Suspend when less than 15% of total file system space is available, resume when available space reaches 18%:

minfree = 10
acctsuspend = 5
acctresume = 8

Suspend when less than 2% of total file system space is available, resume when available space reaches minfree:

minfree = 5
acctsuspend = -3 (minus 3)
acctresume = 0

Suspend when available file-system space shrinks to minfree; resume when available space increases to minfree plus 3% of total file system:

minfree = 5
acctsuspend = 0
acctresume = 3

Suspend when file system is completely full, do not resume (resume when available space reaches 105% of total file system which cannot happen):

minfree = 5
acctsuspend = -5 (minus 5)
acctresume = 100

How to Determine Value of minfree

acctsuspend and acctresume specify accounting thresholds based on the current value of the minfree parameter for the file system where the accounting files reside. minfree is specified when the file system is being created, and determines what percentage of the total file system space is reserved and cannot be used by ordinary users. The value can range from zero to 100.

The default value for minfree on HP-UX file systems is 10 percent. To determine the current value of minfree, use the df command with the -t option (see df(1M)).

For example, to find the current value of minfree on the mounted file system /users, use the command:

df -t /users

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000-2003 Hewlett-Packard Development Company, L.P.