kern_racct.c (7757a1b4dc60696d9a95137ee0a2accd4ee680f4) | kern_racct.c (ba8f0eb8fc9262ad9cb7ec03e01db198f5b770bc) |
---|---|
1/*- 2 * Copyright (c) 2010 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 56 unchanged lines hidden (view full) --- 65#ifdef RACCT 66 67FEATURE(racct, "Resource Accounting"); 68 69/* 70 * Do not block processes that have their %cpu usage <= pcpu_threshold. 71 */ 72static int pcpu_threshold = 1; | 1/*- 2 * Copyright (c) 2010 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 56 unchanged lines hidden (view full) --- 65#ifdef RACCT 66 67FEATURE(racct, "Resource Accounting"); 68 69/* 70 * Do not block processes that have their %cpu usage <= pcpu_threshold. 71 */ 72static int pcpu_threshold = 1; |
73#ifdef RACCT_DISABLED | 73#ifdef RACCT_DEFAULT_TO_DISABLED |
74int racct_enable = 0; 75#else 76int racct_enable = 1; 77#endif 78 79SYSCTL_NODE(_kern, OID_AUTO, racct, CTLFLAG_RW, 0, "Resource Accounting"); 80SYSCTL_UINT(_kern_racct, OID_AUTO, enable, CTLFLAG_RDTUN, &racct_enable, 81 0, "Enable RACCT/RCTL"); --- 1221 unchanged lines hidden --- | 74int racct_enable = 0; 75#else 76int racct_enable = 1; 77#endif 78 79SYSCTL_NODE(_kern, OID_AUTO, racct, CTLFLAG_RW, 0, "Resource Accounting"); 80SYSCTL_UINT(_kern_racct, OID_AUTO, enable, CTLFLAG_RDTUN, &racct_enable, 81 0, "Enable RACCT/RCTL"); --- 1221 unchanged lines hidden --- |