Bug 202130 - Sysctl kern.racct.enable=1 in /boot/loader.conf has no affect on 10.2
Summary: Sysctl kern.racct.enable=1 in /boot/loader.conf has no affect on 10.2
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-patch, needs-qa, regression
Depends on:
Blocks:
 
Reported: 2015-08-06 14:55 UTC by Dominik Zajac
Modified: 2015-08-06 15:08 UTC (History)
1 user (show)

See Also:
koobs: mfc-stable10?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Zajac 2015-08-06 14:55:52 UTC
If you set the kern.racct.enable=1 variable in 10.2 it has no affect. This leads to a not working rctl.

We tested with RC1 on physical server and RC2 as virtual machine both with amd64 images. On both systems the rctl reports that kern.racct.enable=1 is not set correctly. With 11-Current as a virutal machine this bug does not appear, there it works as expected.

We followed the steps mentioned in https://www.freebsd.org/releases/10.2R/relnotes.html section 5.3

Workaround is to rebuild the kernel:
Remove the "options         RACCT_DEFAULT_TO_DISABLED" from the config got it working with 10.2 RC2. But this sysctl is designed that you are not forced to rebuild the kernel. 

I am happy to help reproducing or testing this.

Regards,

Dominik
Comment 1 Glen Barber freebsd_committer freebsd_triage 2015-08-06 15:08:36 UTC
This is fixed in stable/10 and releng/10.2 for inclusion in -RC3.