aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rctl
Commit message (Collapse)AuthorAgeFilesLines
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* Drop "All rights reserved" from all my stuff. This includesEdward Tomasz Napierala2020-10-282-2/+0
| | | | | | | | | | | | Foundation copyrights, approved by emaste@. It does not include files which carry other people's copyrights; if you're one of those people, feel free to make similar change. Reviewed by: emaste, imp, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D26980 Notes: svn path=/head/; revision=367105
* rctl: fix sysctl kern.racct.enable use after r341182Mateusz Guzik2019-04-031-2/+3
| | | | | | | | | | | | | | The value was changed from int to bool. Since the new type is smaller, the rest of the variable in the caller was left unitialized. PR: 236714 Reported by: trasz Diagnosed by: markj Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=345853
* rctl: correct use of "vmem" instead of "vmemoryuse"Eitan Adler2018-05-251-3/+3
| | | | | | | | | Submitted by: Jamie Landeg-Jones <jamie@catflap.org> PR: 228482 MFC after: 1 month Notes: svn path=/head/; revision=334208
* .Xr rctl(8) and cpuset(1).Edward Tomasz Napierala2018-02-261-1/+2
| | | | | | | | | PR: 225935 Submitted by: D. Ebdrup <debdrup at gmail.com> (earlier version) MFC after: 2 weeks Notes: svn path=/head/; revision=330024
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* Remove __unused attributed on arguments that are actually usedBaptiste Daroussin2017-11-111-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=325717
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Use proper capitalization with .Dd.Edward Tomasz Napierala2017-06-011-1/+1
| | | | | | | | Submitted by: oshogbo MFC after: 2 weeks Notes: svn path=/head/; revision=319432
* Declutter rctl(8) by moving kernel build instructions into newlyEdward Tomasz Napierala2017-05-281-20/+1
| | | | | | | | | created rctl(4). MFC after: 2 weeks Notes: svn path=/head/; revision=319076
* Random tweaks to rctl(8).Edward Tomasz Napierala2017-05-281-6/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=319075
* Add four new RCTL resources - readbps, readiops, writebps and writeiops,Edward Tomasz Napierala2016-04-071-3/+36
| | | | | | | | | | | | | | | | | | for limiting disk (actually filesystem) IO. Note that in some cases these limits are not quite precise. It's ok, as long as it's within some reasonable bounds. Testing - and review of the code, in particular the VFS and VM parts - is very welcome. MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5080 Notes: svn path=/head/; revision=297633
* Fix typos in error messages dealing with unknown groups/usersEnji Cooper2015-12-011-2/+2
| | | | | | | | | MFC after: 1 month X-MFC with: r291447, r291452 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291609
* Fix rctl rule filters - eg the 'rctl -r :' case.Edward Tomasz Napierala2015-12-011-10/+30
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291583
* Improve error reporting to clearly show problematic rules.Edward Tomasz Napierala2015-11-291-61/+83
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291452
* Simplify rule retrieval and improve error handling.Edward Tomasz Napierala2015-11-291-26/+38
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291451
* Fix some memory management problems.Edward Tomasz Napierala2015-11-291-13/+17
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291449
* Handle asprintf(3) errors in a standards-compliant way.Edward Tomasz Napierala2015-11-291-24/+29
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291448
* Rewrite the rctl(8) utility to make it possible to add multiple rulesEdward Tomasz Napierala2015-11-292-135/+178
| | | | | | | | | | in a single run. This speeds up operation with large rulesets. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291447
* User and group identifiers the rctl(8) utility receives from the kernelEdward Tomasz Napierala2015-11-291-3/+7
| | | | | | | | | | | are always in numeric form; don't try to resolve them by names. This speeds up rule listing with large rulesets by about 50%. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=291445
* Make rctl(8) use more reasonable buffer size for retrieving the rules.Edward Tomasz Napierala2015-11-051-1/+1
| | | | | | | | | Reviewed by: mjg@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=290408
* Fix markup in rctl(8) - the 'rule' or 'filter' arguments are not optional.Edward Tomasz Napierala2015-11-051-5/+5
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=290404
* Make it clear that 'swapuse' is swap reservation and not actual swap usage.Edward Tomasz Napierala2015-09-141-2/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=287785
* mdoc: add missing .ElJoel Dahl2015-07-141-0/+1
| | | | Notes: svn path=/head/; revision=285555
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-7/+55
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge headSimon J. Gerraty2014-04-281-57/+138
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ sync from headSimon J. Gerraty2013-04-121-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync with HEAD.David E. O'Brien2013-02-081-13/+9
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-041-5/+9
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | Build GENERIC with RACCT/RCTL support by default. Note that it stillEdward Tomasz Napierala2015-05-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | needs to be enabled by adding "kern.racct.enable=1" to /boot/loader.conf. Differential Revision: https://reviews.freebsd.org/D2407 Reviewed by: emaste@, wblock@ MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=282901
* | | | | | | | Remove spurious period.Edward Tomasz Napierala2015-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: International OCD Foun^W^W^WThe FreeBSD Foundation Notes: svn path=/head/; revision=282238
* | | | | | | | Make rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.Edward Tomasz Napierala2015-04-291-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=282236
* | | | | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | | | | Fix typo.Edward Tomasz Napierala2014-09-111-2/+2
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=271436
* | | | | | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* | | | | Mention that rctl(8) was sponsored by the Foundation.Edward Tomasz Napierala2014-02-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=261962
* | | | | Rework rctl(8) manpageBryan Drewery2014-02-151-55/+135
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Note that kernel options are required - Shift parameters around in SYNOPSIS to make it more clear that there are different modes - For all literal symbols such as 'process' or 'loginclass' or 'wallclock', etc, make them into bold symbols with .Sy - For each subject:subject-id:etc: use .Em to underline to make it more clear they relate to the rule syntax - Document how devd(8) support works - Move RSS warning to BUGS and replace RSS with 'memoryuse' since 'RSS' is not defined in the manpage - Add more examples around listing existing rules - Make rule syntax into a list to improve readability - Add a list of subjects and their corresponding subject-id same as RESOURCES/ACTIONS have lists - Note that rctl(8) takes affect on all current and future processes - Note that amount can take human numbers - Add reference to login.conf(5) in few places login class is mentioned Reviewed by: trasz Approved by: bapt (mentor) MFC after: 1 week Notes: svn path=/head/; revision=261934
* | | | Minor spelling and grammar fixes.Joel Dahl2013-04-111-1/+1
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=249375
* | | Remove superfluous paragraph macro.Joel Dahl2012-12-041-1/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=243856
* | | - Move EXAMPLES descriptions to before the actual commandBryan Drewery2012-12-041-12/+9
| |/ |/| | | | | | | | | | | | | | | | | | | - Add mdoc macros for EXAMPLES Reviewed by: eadler Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=243849