mfscsstatsdump(8)

πŸ“¦
version 4.59.2 Β· 5 versions
, in arch rolling, nixos 26.05, nixpkgs unstable, ubuntu stonking

πŸ’… NAME πŸ’…

mfscsstatsdump β€” bestie, this is the little tool that dumps usage data out of a chunkserver stats file, and it can hand it to you as csv or as png. your choice, you're the main character ✨


πŸŽ€ SYNOPSIS πŸŽ€

mfscsstatsdump -f fields [-i stats_file] [-r range][-s separator] [-p
png_filename [-x chart_width] [-y chart_height]] [-hHd]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so mfscsstatsdump dumps usage data straight out of a chunkserver stats file. it's literally the same data sets that get used to make the GUI charts, no cap. output can be either text format (csv) or graphical format (png). and because of that, the -p, -x and -y options are mutually exclusive with the -h, -H and -d options β€” pick a lane bestie, you can't do both πŸ’€

your MooseFS chunkserver saves that stats file in the DATA_PATH directory β€” see mfschunkserver.cfg(5) for the deets.

πŸ“Š OUTPUT πŸ“Š

Text output β€” a text (csv) file where the first column is a timestamp (or a date, if the -d option was specified 🌸), and the following columns are whatever you asked for with the -f options, formatted according to the options in play (none, -s, and -h or -H).

Graphical output β€” one png file with a chart gets created for every field you specify with -f, following the naming scheme you declared with -p. size can be adjusted with -x and -y, obviously πŸ’…


✨ OPTIONS ✨

  • -f β€” field names separated by , (go look at the FIELDS section, it's right there); at least one field is mandatory, okay? and if you use an asterisk (*) then all fields get dumped πŸ‘‘
  • -i β€” name of the mfs binary stats file (default: default_data_path/csstats.mfs)
  • -r β€” range type: 0 - short range (minute), 1 - medium range (6 minutes), 2 - long range (30 minutes), 3 - very long range (day)
  • -s β€” specify column separator (default: tabulator)
  • -p β€” optional PNG filename (the field name gets added before .png; YYYY -> YYYY_FIELD.png, YYYY.png -> YYYY_FIELD.png)
  • -x β€” PNG chart width (default: 1600)
  • -y β€” PNG chart height (should be divisible by 20 β€” if it's not, it gets adjusted; default: 320)
  • -h β€” "human-readable" numbers using base 2 prefixes (IEC 60027) 🧚
  • -H β€” "human-readable" numbers using base 10 prefixes (SI) 🧚
  • -d β€” show timestamps in YYYY-MM-DD HH:MM format

🌈 FIELDS 🌈

  • ucpu β€” User cpu usage
  • scpu β€” System cpu usage
  • cpu β€” Total cpu usage (in csv it's the sum of scpu and ucpu, in png it shows both in different colors)
  • masterin β€” Data received from master
  • masterout β€” Data sent to master
  • csrepin β€” Data received by replicator
  • csrepout β€” Data sent by replicator
  • csservin β€” Data received by csserv
  • csservout β€” Data sent by csserv
  • bwin β€” Data bandwidth in (in csv it's the sum of csrepin and csservin, in png it shows both in different colors)
  • bwout β€” Data bandwidth out (in csv it's the sum of csrepout and csservout, in png it shows both in different colors)
  • hdrbytesr β€” Bytes read (headers)
  • hdrbytesw β€” Bytes written (headers)
  • hdrllopr β€” Low level reads (headers)
  • hdrllopw β€” Low level writes (headers)
  • databytesr β€” Bytes read (data)
  • databytesw β€” Bytes written (data)
  • datallopr β€” Low level reads (data)
  • datallopw β€” Low level writes (data)
  • hddread β€” HDD read (in csv it's the sum of hdrbytesr and databytesr, in png it shows both in different colors)
  • hddwrite β€” HDD write (in csv it's the sum of hdrbytesw and databytesw, in png it shows both in different colors)
  • hddopsr β€” HDD low level read (in csv it's the sum of hdrllopr and datallopr, in png it shows both in different colors)
  • hddopsw β€” HDD low level write (in csv it's the sum of hdrllopw and datallopw, in png it shows both in different colors)
  • hlopr β€” High level reads
  • hlopw β€” High level writes
  • rtime β€” Read time
  • wtime β€” Write time
  • repl β€” Replicate chunk ops
  • create β€” Create chunk ops
  • delete β€” Delete chunk ops
  • version β€” Set version ops
  • duplicate β€” Duplicate ops
  • truncate β€” Truncate ops
  • duptrunc β€” Duptrunc (duplicate+truncate) ops
  • test β€” Test chunk ops
  • load β€” Server load
  • memoryrss β€” Resident memory usage
  • memoryvirt β€” Virtual memory usage
  • mem β€” Total memory usage (in csv it's the same as memoryvirt, in png it shows both memoryrss and memoryvirt using two colors)
  • movels β€” Low speed move ops
  • movehs β€” High speed move ops
  • move β€” Low speed + high speed move ops (in png it shows movels and movehas using two colors)
  • change β€” Chunk changes in metadata (sum of version + duplicate + truncate + duptrunc + split)
  • split β€” Split ops
  • usedspace β€” Used HDD space in bytes (mark for removal excluded)
  • totalspace β€” Total HDD space in bytes (mark for removal excluded)
  • space β€” Total HDD space (in csv it's the same as totalspace, in png it shows both usedspace and totalspace using two colors)
  • chunkcount β€” Number of stored chunks (mark for removal excluded)
  • tdusedspace β€” Used HDD space in bytes on disks marked for removal
  • tdtotalspace β€” Total HDD space in bytes on disks marked for removal
  • tdchunkcount β€” Number of chunks stored on disks marked for removal
  • copychunks β€” Number of chunks stored in copy format (all disks)
  • ec4chunks β€” Number of chunk parts stored in EC4 format (all disks)
  • ec8chunks β€” Number of chunk parts stored in EC8 format (all disks)
  • chunks β€” Sum of copychunks + ec4chunks + ec8chunks (in png it shows all three in different colors)
  • hddok β€” Number of valid folders (hard drives)
  • hddmfr β€” Number of folders (hard drives) that are marked for removal
  • hdddmg β€” Number of folders (hard drives) that are marked as damaged
  • hddcnt β€” Number of folders (hard drives) regardless of status, aka sum of hddok + hddmfr + hdddmg (in png it shows all three in different colors)
  • udiff β€” Difference in usage percent between the most and least used disk

πŸ› REPORTING BUGS πŸ›

found a bug? don't gatekeep, report it to <bugs@moosefs.com>. 🫢


Copyright (C) 2026 Jakub Kruszona-Zawadzki, Saglabs SA

This file is part of MooseFS.

MooseFS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (only).

MooseFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see <https://www.gnu.org/licenses/>.


🌸 SEE ALSO 🌸

mfschunkserver(8), mfsstatsdump(8)


okay bestie that's the whole thing, you ate it up πŸ’– this was MooseFS 4.59.2-1, dated May 2026 β€” periodt βœ¨πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from