History log of /src/usr.bin/vmstat/vmstat.c (Results 1 – 25 of 726)
Revision Date Author Comments
# f66bb825 10-Oct-2025 Mark Johnston <markj@FreeBSD.org>

vmstat: Print the number of wired pages in each object

Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: Modirum MDPay
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.or

vmstat: Print the number of wired pages in each object

Reviewed by: alc, kib
MFC after: 1 week
Sponsored by: Modirum MDPay
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D53008

show more ...


# 1249ee57 22-Oct-2024 Mark Johnston <markj@FreeBSD.org>

vmstat: Add a column to vmstat -o output for laundry pages

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47215


# 610fcb06 13-Oct-2024 Mark Johnston <markj@FreeBSD.org>

vmstat: Fix column header alignment in -o output

MFC after: 1 week


# f5ee007c 12-Oct-2024 Yan-Hao Wang <yanhaowang@FreeBSD.org>

vmstat(8): Complete libxo transition

Reviewed by: des
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41432


# ba40b2b8 07-Oct-2024 Konstantin Belousov <kib@FreeBSD.org>

vmstat -o: report objects backing posix shm segments

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D46970


# 596a36dd 07-Oct-2024 Bojan Novković <bnovkov@FreeBSD.org>

vmstat: Add NOFREE page count to -s report

This change adds the number of permanently allocated pages
to the 'sum' structure report.

Differential Revision: https://reviews.freebsd.org/D46980
Review

vmstat: Add NOFREE page count to -s report

This change adds the number of permanently allocated pages
to the 'sum' structure report.

Differential Revision: https://reviews.freebsd.org/D46980
Reviewed by: markj

show more ...


# 2d84f79c 05-Oct-2024 Konstantin Belousov <kib@FreeBSD.org>

vmstat -o: report objects backing SysV shm segments

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D46959


# 00b04980 22-Apr-2024 John F. Carr <jfc@mit.edu>

Fix xo_emit format string for percentages

The "%lld" format string was used with a value of type long.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278532.

Reviewed by: imp, mmel
Pull Requ

Fix xo_emit format string for percentages

The "%lld" format string was used with a value of type long.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278532.

Reviewed by: imp, mmel
Pull Request: https://github.com/freebsd/freebsd-src/pull/1344

show more ...


# c7dd97ec 17-Jul-2024 Bram Ton <bram@cbbg.nl>

vmstat: Add root element to libxo output

Current libxo output does not have a root element. Valid XML requires a single
root element. This commit adds this root element.

The libxo output version bu

vmstat: Add root element to libxo output

Current libxo output does not have a root element. Valid XML requires a single
root element. This commit adds this root element.

The libxo output version bumped accordingly.

PR: 254635
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/1330

show more ...


# 1f36ca5d 08-Dec-2023 Alexander Motin <mav@FreeBSD.org>

vmstat: Rely on libxo for numbers humanization

This makes code cleaner, plus fixes such nonsense as humanized JSON
and XML, making all numbers raw without quotes, spaces, suffixes, etc.

MFC after:

vmstat: Rely on libxo for numbers humanization

This makes code cleaner, plus fixes such nonsense as humanized JSON
and XML, making all numbers raw without quotes, spaces, suffixes, etc.

MFC after: 2 weeks

show more ...


# 598d1ac8 07-Dec-2023 Alexander Motin <mav@FreeBSD.org>

vmstat: Let libxo properly humanize -m numbers

Raw numbers can be seen in json/xml or with --libxo=no-humanize.

MFC after: 2 weeks


# 6f048e71 06-Dec-2023 Alexander Motin <mav@FreeBSD.org>

vmstat: Improve -z formatting for large names/values

MFC after: 2 weeks


# 62d47a4d 05-Dec-2023 Maxim Sobolev <sobomax@FreeBSD.org>

vmstat: fix column names broken in c168508655720

Loss of the trailing space in the multi-line format string has
resulted in column name being emitted as "FAILSLEEP", instead of
two columns "FAIL" an

vmstat: fix column names broken in c168508655720

Loss of the trailing space in the multi-line format string has
resulted in column name being emitted as "FAILSLEEP", instead of
two columns "FAIL" and "SLEEP".

show more ...


# 0b8224d1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals.

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix

show more ...


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a pe

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

show more ...


# 7b21c447 16-Nov-2023 Alexander Motin <mav@FreeBSD.org>

vmstat: Make disks reporting some more reasonable

MFC after: 1 month


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# e5c30ac9 26-Nov-2022 Elliott Mitchell <ehem+freebsd@m5p.com>

vmstat: fix overflow of interrupt name buffer

sysctl() provides a count of number of bytes in the buffer. That is the
actual buffer length. Whereas looking for an interrupt entry with an
empty nam

vmstat: fix overflow of interrupt name buffer

sysctl() provides a count of number of bytes in the buffer. That is the
actual buffer length. Whereas looking for an interrupt entry with an
empty name could terminate too early, or overflow the end of the buffer.
The overflow will occur if the table of interrupt names is full.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36628

show more ...


# d4d79718 21-Sep-2022 Elliott Mitchell <ehem+freebsd@m5p.com>

vmstat: remove shadow variables

These appear to simply be the style of arguments are left untouched and
only local variables are modified. While some may prefer that style
this simply serves to com

vmstat: remove shadow variables

These appear to simply be the style of arguments are left untouched and
only local variables are modified. While some may prefer that style
this simply serves to complicate things as they're perfectly writeable.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36628

show more ...


# 42dc8696 29-Sep-2022 Elliott Mitchell <ehem+freebsd@m5p.com>

vmstat: remove processor counting from getcpuinfo()

As `ncpus` was otherwise unused, keeping track was pointless. Gets rid
of a warning from an unused variable.

Reviewed by: kib
MFC after: 1 week

vmstat: remove processor counting from getcpuinfo()

As `ncpus` was otherwise unused, keeping track was pointless. Gets rid
of a warning from an unused variable.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36628

show more ...


# 2abd4f85 08-Apr-2021 Andrew Turner <andrew@FreeBSD.org>

Add a way to map arm64 non-posted device memory

On arm64 we currently use a non-posted write for device memory, however
we should move to use posted writes. This is expected to work on most
hardware

Add a way to map arm64 non-posted device memory

On arm64 we currently use a non-posted write for device memory, however
we should move to use posted writes. This is expected to work on most
hardware, however we will need to support a non-posted option for some
broken hardware.

Reviewed by: imp, manu, bcr (manpage)
Differential Revision: https://reviews.freebsd.org/D29722

show more ...


# 15221c55 11-Apr-2021 Andrew Turner <andrew@FreeBSD.org>

Use if ... else when printing memory attributes

In vmstat there is a switch statement that converts these attributes to
a string. As some values can be duplicate we have to hide these from
userspace

Use if ... else when printing memory attributes

In vmstat there is a switch statement that converts these attributes to
a string. As some values can be duplicate we have to hide these from
userspace.

Replace this switch statement with an if ... else macro that lets us
repeat values without a compiler error.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D29703

show more ...


# 6fcc846b 09-Nov-2020 Mateusz Guzik <mjg@FreeBSD.org>

vmstat: drop the HighUse field from malloc dump

It is hardwired to "-" since its introduction in 2005.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D27141


# b54ed684 09-Nov-2020 Mateusz Guzik <mjg@FreeBSD.org>

vmstat: remove spurious newlines when reporting zones


# 828afdda 02-Nov-2020 Mateusz Guzik <mjg@FreeBSD.org>

malloc: export kernel zones instead of relying on them being power-of-2

Reviewed by: markj (previous version)
Differential Revision: https://reviews.freebsd.org/D27026


12345678910>>...30