summaryrefslogtreecommitdiffstats
path: root/zfs/ZfsArcMeter.c
Commit message (Collapse)AuthorAgeFilesLines
* Relocate include of config.h from header to source modeuleBenny Baumann2023-12-261-0/+2
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-2/+3
|
* cleaned up includes with iwyumayurdahibhate2021-05-101-0/+2
|
* Save text buffer in MeterChristian Göttsche2021-03-041-1/+3
|
* Make ZFS Meter "Unavailable" text match others -> FAILED_READ coloringDaniel Lange2021-02-091-1/+1
|
* Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche2020-12-081-15/+15
| | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
* Use sizeof buffer instead of magic numberChristian Göttsche2020-12-081-7/+7
|
* Introduce METER_BUFFER_CHECK and METER_BUFFER_APPEND_CHR to cleanup writing ↵Christian Göttsche2020-12-061-6/+5
| | | | | | to bar buffers Closes: #294
* Use size_t as len type for Meter_UpdateValuesChristian Göttsche2020-12-061-1/+1
| | | | Most of the time the parameter is passed to snprintf type functions
* Reduce scope of local variablesBenny Baumann2020-11-221-1/+1
|
* Hold only a const version of the ProcessList in MetersChristian Göttsche2020-10-261-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-11/+2
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Mark remaining classes constChristian Göttsche2020-10-131-2/+2
|
* Mark Object pointer to _display function constChristian Göttsche2020-10-101-2/+2
|
* Mark Object classes and Object class fields constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Normalize ZFS ARC captionZach Dykstra2020-08-281-2/+1
| | | | | Other captions take the form of LABEL:<space>. This moves the uncompressed ZFS ARC caption into the same style.
* Remove trailing whitespacesChristian Göttsche2020-08-211-1/+1
|
* Refactor openzfs_sysctl_init() and ZfsArcMeter...Ross Williams2019-09-031-0/+18
| | | | | | | | | | | openzfs_sysctl_init() now returns void instead of int. The ZfsArcStats->enabled flag is set inside the init function now, instead of having to be set from its return value. Preparation for more flag setting in Compressed ARC commit. ZfsArcMeter_readStats() added and all Meter->values[] setting moved to it, eliminating duplicated code in {darwin,freebsd,linux,solaris}/Platform.c.
* ZFS arcstats for LinuxRoss Williams2019-07-071-21/+26
| | | | | | If no pools are imported (ARC size == 0) or the ZFS module is not in the kernel (/proc/spl/kstat/zfs/arcstats does not exist), then the Meter reports "Unavailable".
* Support ZFS ARC stats on FreeBSDRoss Williams2019-07-071-0/+81
New meter displays same ARC stats as FreeBSD top(1). Can be extended to other platforms that support ZFS. Pulling kstat.zfs.misc.arcstats.c_max as the meter total, so the meter has a meaningful value to work up to. The Text meter displays, first, the maximum ARC size (Meter.total), then second, the total ARC used, using the difference between Meter.maxItems and Meter.curItems to "hide" the used value from the Bar and Graph drawing functions by using an index in Meter.values[] that is beyond curItems - 1, but less than maxItems - 1.

© 2014-2024 Faster IT GmbH | imprint | privacy policy