History log of /dragonfly/usr.bin/kcollect/kcollect.c (Results 1 – 16 of 16)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0
# d50f9ae3 27-Sep-2020 Sascha Wildner <saw@online.de>

world: Staticize various variables and also remove a couple of unused ones.


Revision tags: v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3, v5.6.2
# a657b521 23-Jul-2019 Antonio Huete Jimenez <tuxillo@quantumachine.net>

usr.bin/kcollect - Rework the hosthame mismatch cases a bit

- Fix a bug where it was not possible to show data from
another host.
- Showing host live data won't be possible if there is a hostname

usr.bin/kcollect - Rework the hosthame mismatch cases a bit

- Fix a bug where it was not possible to show data from
another host.
- Showing host live data won't be possible if there is a hostname
mismatch between the DB and the host reading from it.

show more ...


# 68cca79d 23-Jul-2019 Antonio Huete Jimenez <tuxillo@quantumachine.net>

usr.bin/kcollect - Cleanup prototypes a bit.


# 28ef73f0 15-Jul-2019 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Add hostname to .db file (2)

* Remove debugging printf().


# f8220a21 15-Jul-2019 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Add hostname to .db file

* Use HEADER2 to indicate the hostname.

* Parse 8 HEADER%d fields generically.

* Automatically update missing or changed header fields in the database.


# f089ea9c 14-Jul-2019 Antonio Huete Jimenez <tuxillo@quantumachine.net>

usr.bin/kcollect - Add O flag

- The O flag will allow to specify the output format for the
kcollect data entries.
- Introduce a new output format: InfluxDB. This will try to
output the statistic

usr.bin/kcollect - Add O flag

- The O flag will allow to specify the output format for the
kcollect data entries.
- Introduce a new output format: InfluxDB. This will try to
output the statistics in a influxdb line protocol compatible
format. Please note that this is experimental and subject to
change in the future.

show more ...


# 1a5888d3 07-Jul-2019 Antonio Huete Jimenez <tuxillo@quantumachine.net>

usr.bin/kcollect - Add F flag

- '-F' option works like '-f' option but it does not show the whole
kcollect buffer, just the last entries before starting to print a new
entry every 10 seconds


Revision tags: v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1
# c5741af1 25-Sep-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Final dbm support code

* Fix time conversion issues and memory leaks

* Code cleanup

* Documentation cleanup (from swildner)

Submitted-by: htse (Harald Brinkhof)


# e10ffbc2 24-Sep-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Add initial dbm support

* Fully implement the -b and -d options to allow a dbm file to
be recorded / appended, and played back.

* Still needs a little fleshing out for scaling info and

kcollect - Add initial dbm support

* Fully implement the -b and -d options to allow a dbm file to
be recorded / appended, and played back.

* Still needs a little fleshing out for scaling info and
headers.

Submitted-by: htse (Harald Brinkhof)

show more ...


Revision tags: v4.8.1
# 56160b9c 30-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Fix gunplot warning when -x -f is specified

* gnuplot warns about multiple set terminal commands when the refresh
occurs. Rearrange when the command is sent to avoid the problem.


# b038db3d 30-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Add a smoothing option (-s)

* Add an option (-s) which smooths the plot. The smoothing algorithm uses
an exponential average with fast collapse to the high-side so spikes do
not get

kcollect - Add a smoothing option (-s)

* Add an option (-s) which smooths the plot. The smoothing algorithm uses
an exponential average with fast collapse to the high-side so spikes do
not get lost.

show more ...


# 7849fb91 30-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Add -t option to limit output

* Add the -t N option, limiting the output to the most recent N seconds
worth of samples. 'm'inutes, 'h'ours, and 'd'ays suffixes are allowed
for conven

kcollect - Add -t option to limit output

* Add the -t N option, limiting the output to the most recent N seconds
worth of samples. 'm'inutes, 'h'ours, and 'd'ays suffixes are allowed
for convenience.

show more ...


# f9c8e4ac 29-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Implement gnuplot output feature

* Implement the gunplot output feature. This feature currently
hard-selects a set of fields (fields cannot be specified).

Generates two graphs. The

kcollect - Implement gnuplot output feature

* Implement the gunplot output feature. This feature currently
hard-selects a set of fields (fields cannot be specified).

Generates two graphs. The first collects memory statistics
and machine load. The second collects cpu utilization and
fault, syscall, and nlookup (file path resolution) rate.

* In gnuplot output mode, -f will cause the entire dataset to be
regenerated every 60 seconds (I don't see any way to avoid this
to update an existing gnuplot window).

* Finish implementing -o fields

show more ...


# 94a51109 29-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kcollect - Fix swap text output

* Collection data for type 'm' is still stored in bytes.

* Fix field width for megabytes display field.


# fef9ed17 29-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Store page statistics in bytes

* Store page statistics in bytes rather than pages. Pages aren't useful
for userland display and there is no reason to force useland to do the
conversion

kernel - Store page statistics in bytes

* Store page statistics in bytes rather than pages. Pages aren't useful
for userland display and there is no reason to force useland to do the
conversion.

* Include a realtime timestamp along with ticks in the structure.

* Flesh out text output for kcollect. Reverse output order to print
oldest data first, so output from the -f option stays consistent.

show more ...


# f6aeec64 29-Jul-2017 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Add a sampling history mechanism called kcollect

* Add a kernel API which automatically samples useful statistics on a
10-second period without needing a user program to poll it. This AP

kernel - Add a sampling history mechanism called kcollect

* Add a kernel API which automatically samples useful statistics on a
10-second period without needing a user program to poll it. This API
is enabled by default and can be disabled by setting kern.collect_samples=0
in /boot/loader.conf (or setting it higher, if desired).

The idea is for the kernel to always collect a solid amount of historical
data for various useful statistics such that a user can pull it all up
going back upwards of 23 hours (or more, depending on configured samples)
after the fact. "Oh, what happened recently"... bang.

* The sysctl provides sufficient information to userland to be able to
process the statistics dynamically, without necessarily having to know
what they are.

The sysctl can be cut short to request less data for ongoing incremental
collection, if desired.

* Implement "load" collection to start with as a test. Add #defines for
everything I want the kernel to collect. The kernel API's critical path
is lockless.

* Start working on a front-end user program called 'kcollect'. This program
will eventually generate fancy graphs via gnuplot and have a dbm interface
for collecting data continuously if desired.

show more ...