HomeFreeBSD

limit sort(1) memory usage to 20% of available main memory

Description

limit sort(1) memory usage to 20% of available main memory

By default BSD sort(1) uses 90% (or at least 50%?) of the available
main memory. That is good for performance for a single job, but not
for a shared OS. For a long running script the performance is less
important than the stability of the server. Also, if a server
with 64GB RAM starts swapping, the performance goes south and
hurts other running applications.

Note: this change does not affect the weekly cron job to
rebuild the locate database. The FreeBSD locate.updatedb
use the -presort option (find -s)

Details

Provenance
woschAuthored on Jan 26 2022, 7:30 PM
Parents
rG4731124cace5: bsnmp: Fix two typos in error messages
Branches
Unknown
Tags
Unknown