5.4 Buffer Sizes

The size of each buffer can be tuned on a per-consumer basis. Separate options are provided to tune each buffer size, as shown in the following table:


Size Option







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. See Chapter 10, Options and Tunables for more details. For example, to set the buffer size to 10 megabytes on the dtrace command line:

# dtrace -P syscall -x bufsize=10m

Alternatively, you can use the -b option:

# dtrace -P syscall -b 10m

Finally, you can set bufsize using a pragma:

#pragma D option bufsize=10m

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 default buffer size is four megabytes.