Buffer Sizes

The size of each buffer can be tuned on a per-consumer basis. The following table lists separate options that are provided to tune each buffer size.

Buffer Size Option

Principal

bufsize

Speculative

specsize

Aggregation

aggsize

Each of these options is set with a value that denotes the size. As with any size option, the value may have an optional size suffix. For more information, see DTrace Options and Tunables. For example, you can use one of the following commands to set the buffer size to one megabyte on the command line to dtrace:

# dtrace -P syscall -x bufsize=1m

# dtrace -P syscall -b 1m

#pragma D option bufsize=1m

The buffer size you select denotes the size of the buffer on each CPU. Moreover, for the switch buffer policy, bufsize denotes the size of each buffer on each CPU. The buffer size defaults to four megabytes.