Page MenuHomeFreeBSD

vmem: disable debug.vmem_check by default
ClosedPublic

Authored by mjg on Sep 2 2021, 9:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 23, 6:37 PM
Unknown Object (File)
Sun, Apr 7, 2:02 AM
Unknown Object (File)
Mar 13 2024, 4:01 PM
Unknown Object (File)
Jan 9 2024, 6:10 AM
Unknown Object (File)
Dec 14 2023, 8:31 PM
Unknown Object (File)
Nov 21 2023, 9:22 PM
Unknown Object (File)
Nov 1 2023, 4:52 AM
Unknown Object (File)
Oct 17 2023, 5:37 PM
Subscribers
None

Details

Summary

It has a prohibitive performance impact when running real workloads.

Note this only affects kernels with DIAGNOSTIC.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mjg requested review of this revision.Sep 2 2021, 9:51 AM
mjg created this revision.
mjg edited the summary of this revision. (Show Details)

As I understand, DIAGNOSTIC is exactly for these kinds of expensive debug checks, similar to vmmap_check for example. What's the purpose of running a real workload with DIAGNOSTIC configured?

The workload at hand is poudriere and the goal is to make sure the kernel survives with debug.

Disabling vmem_check makes it chug along with ~10% system time, while it was getting multisecond stalls otherwise. This check is just too expensive to run without being explicitly requested.

Ok, I don't think it is very useful anyway.

This revision is now accepted and ready to land.Sep 2 2021, 3:30 PM
This revision was automatically updated to reflect the committed changes.