Problem
The error below is displayed when running sort(C), or when attempting to relink the kernel:
sort: allocation error before sort Cause
sort(C) is attempting to allocate memory, but is failing because:
(a) The system has run out of virtual memory.
(b) sort(C) is exceeding the maximum process size governed by the kernel parameter MAXUMEM.
(c) MAXUMEM is set larger than its maximum value of 524287. This causes variables in the kernel to overflow when it checks for the process exceeding maximum process size.
Solution
(a) Check the system's available virtual memory by monitoring the
kernel variable "availsmem". If this is low, increase the
amount of swap space. See TA104908, "'Fork failed' messages
appear on the system console" for further details on "availsmem"
and increasing swap space.(b) Increase the kernel tunable MAXUMEM by using the configure(ADM)
program in /etc/conf/cf.d. Relink the kernel and reboot the
system for this to take effect.(c) Reduce MAXUMEM to 524287. See also
configure(ADM), sort(C)