CIFSIOSTAT(1)

๐Ÿ’… CIFSIOSTAT(1) โ€” the CIFS stats girlie's field guide

ok bestie, so this is a page from the Linux User's Manual, and it's about cifsiostat โ€” the little icon that reports CIFS statistics. Yes, CIFS. The network filesystem. We're gonna get into it, and you're gonna slay this. ๐Ÿฆ‹


โœจ NAME โœจ

cifsiostat โ€” Report CIFS statistics. That's literally her whole job, no cap.


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

cifsiostat [ -h ] [ -k | -m | -G ] [ -t ] [ -U ] [ -V ] [ -y ] [ --dec={
0 | 1 | 2 } ] [ --human ] [ -o JSON ] [ --pretty ] [ interval [ count ]
]

copy that exactly, don't be creative with it ๐Ÿ™ˆ


๐Ÿ’– DESCRIPTION ๐Ÿ’–

The cifsiostat command displays statistics about read and write operations on CIFS filesystems. that's it. that's the vibe. it's giving "I know what the network share is doing at all times." ๐Ÿ‘‘

now the interval parameter โ€” that's the amount of time in seconds between each report. the first report contains statistics for the time since system startup (boot), unless you use the -y option (in which case the first report is omitted โ€” she skips the intro, main character energy โœจ). each subsequent report contains statistics collected during the interval since the previous report. a report consists of a CIFS header row followed by a line of statistics for each CIFS filesystem that is mounted. ๐Ÿซถ

the count parameter can be specified in conjunction with the interval parameter. if count is specified, its value determines the number of reports generated at interval seconds apart. if interval is specified without count, the cifsiostat command generates reports continuously. forever. she does not stop. commitment issues? never heard of her ๐Ÿ’€


๐ŸŒˆ REPORT ๐ŸŒˆ

the CIFS report provides statistics for each mounted CIFS filesystem. the report shows the following fields, and honestly? each one ate:

  • Filesystem: โ€” this column shows the mount point of the CIFS filesystem. it's the address, the name tag, the location tag if you will.
  • rB/s (rkB/s, rMB/s, rGB/s) โ€” indicate the average number of bytes (kibibytes, mebibytes, gibibytes) read per second. incoming data, we love to see it ๐Ÿ“ฅ
  • wB/s (wkB/s, wMB/s, wGB/s) โ€” indicate the average number of bytes (kibibytes, mebibytes, gibibytes) written per second. outgoing data, go off ๐Ÿ“ค
  • rop/s โ€” indicate the number of 'read' operations that were issued to the filesystem per second.
  • wop/s โ€” indicate the number of 'write' operations that were issued to the filesystem per second.
  • fo/s โ€” indicate the number of open files per second.
  • fc/s โ€” indicate the number of closed files per second.
  • fd/s โ€” indicate the number of deleted files per second. rip to those files, gone but not forgotten ๐Ÿ•Š๏ธ

โญ OPTIONS โญ

okay here's the whole menu, and yes we're listing every single one because we don't skip:

  • --dec={ 0 | 1 | 2 } โ€” specify the number of decimal places to use (0 to 2, default value is 2). precision queen ๐Ÿ’…
  • -G โ€” display statistics in gibibytes per second. big numbers only.
  • -h โ€” this option is equivalent to specifying --human --pretty. it's the "just make it cute" combo โœจ
  • --human โ€” print sizes in human readable format (e.g. 1.0k, 1.2M, etc.). the units displayed with this option supersede any other default units (e.g. kibibytes, sectors...) associated with the metrics. she overrides. respectfully.
  • -k โ€” display statistics in kibibytes per second.
  • -m โ€” display statistics in mebibytes per second.
  • -o JSON โ€” display the statistics in JSON (JavaScript Object Notation) format. heads up tho: JSON output field order is undefined, and new fields may be added in the future. so don't hardcode your parsing, bestie ๐Ÿ˜ญ
  • --pretty โ€” make the CIFS report easier to read by a human. glow-up for your eyeballs.
  • -t โ€” print the time for each report displayed. the timestamp format may depend on the value of the S_TIME_FORMAT environment variable (see below) and on whether option -U has been used. clock it โฐ
  • -U โ€” display timestamp (UTC โ€” Coordinated Universal Time) in seconds from the epoch. raw. unix-y. iconic.
  • -V โ€” print version number then exit. hi and bye ๐Ÿ‘‹
  • -y โ€” omit first report with statistics since system boot, if displaying multiple records at given interval. she's not doing the "since boot" recap today, we're going straight to the new tea ๐Ÿ“

๐Ÿงš ENVIRONMENT ๐Ÿงš

the cifsiostat command takes into account the following environment variables:

๐ŸŒธ S_COLORS

by default statistics are displayed in color when the output is connected to a terminal. use this variable to change the settings. possible values for this variable are never, always or auto (the latter is equivalent to the default settings).

โš ๏ธ please note that the color (being red, yellow, or some other color) used to display a value is not indicative of any kind of issue simply because of the color. it only indicates different ranges of values. so if you see red, breathe. it's not a crisis, it's just a range. ๐Ÿ’€

๐ŸŒผ S_COLORS_SGR

specify the colors and other attributes used to display statistics on the terminal. its value is a colon-separated list of capabilities that defaults to I=32;22:N=34;1:Z=34;22. supported capabilities are:

  • I= โ€” SGR substring for filesystem names.
  • N= โ€” SGR substring for non-zero statistics values.
  • Z= โ€” SGR substring for zero values.

๐Ÿฆ‹ S_TIME_FORMAT

if this variable exists and its value is ISO then the current locale will be ignored when printing the date in the report header. the cifsiostat command will use the ISO 8601 format (YYYY-MM-DD) instead. the timestamp displayed with option -t will also be compliant with ISO 8601 format. standardization slay ๐ŸŽ€


๐Ÿ’€ BUG ๐Ÿ’€

/proc filesystem must be mounted for cifsiostat to work. that's not a suggestion, that's a requirement, fr fr.

also โ€” and this is the sneaky one โ€” although cifsiostat displays units corresponding to kilobytes (kB), megabytes (MB), gigabytes (GB)..., it actually uses kibibytes (kiB), mebibytes (MiB), gibibytes (GiB)... a kibibyte is equal to 1024 bytes, a mebibyte is equal to 1024 kibibytes, and a gibibyte is equal to 1024 mebibytes. so the label says kB but the math says kiB. she contains multitudes ๐Ÿ™ˆ


๐Ÿ“ FILE ๐Ÿ“

/proc/fs/cifs/Stats contains CIFS statistics. that's the source of truth, the whole personality lives there.


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

  • Written by Ivana Varekova (varekova <at> redhat.com)
  • Maintained by Sebastien Godard (sysstat <at> orange.fr)

legends, both of them ๐Ÿซถ


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

sar(1), pidstat(1), mpstat(1), vmstat(8), iostat(1), tapestat(1), nfsiostat(1)

https://github.com/sysstat/sysstat

https://sysstat.github.io/


okay that's the whole page bestie, go forth and monitor your CIFS filesystems ๐Ÿ’œ

โ€” signed off from the Linux manual, AUGUST 2026, and yes the page itself is CIFSIOSTAT(1) โ€” that's the version-and-date flex, we love a timestamped queen ๐ŸŒŸ

๐Ÿ“ฆ where this page comes from