mfsstatsdump(8)

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

πŸ’– mfsstatsdump πŸ’–

okay bestie, so like β€” this is mfsstatsdump, part of MooseFS (you know, the manual section 8 of it, the admin-tools corner πŸ› οΈ). it dumps your master's stats data into either a csv or a png, and honestly? it's giving data-visualization main character energy ✨.


🌸 NAME 🌸

mfsstatsdump β€” dump usage data from the master stats file, in csv or png format πŸŽ€


✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so <pink>mfsstatsdump</pink> dumps usage data from the master stats file. these are literally the exact same data sets that get used to draw the GUI charts, no cap πŸ“Š. output can be either text format (that's <cyan>csv</cyan>) or graphical format (that's <cyan>png</cyan>).

which means β€” and bestie, listen β€” -p, -x and -y are mutually exclusive with -h, -H and -d πŸ’€. you pick a lane.

MooseFS master server saves the stats file in the DATA_PATH directory β€” go look at mfsmaster.cfg(5) for that 🫢

πŸ“ˆ OUTPUT πŸ“ˆ

Text output β€” a text (csv) file where the first column is a timestamp (or a date, if the -d option was specified ✍️). the following columns are whatever you specified with the -f option, formatted according to the options you used (that's none, or -s, and -h or -H) πŸ’…

Graphical output β€” one png file with a chart gets created for every single field you specified with the -f option, following the naming scheme declared with the -p option. size can be adjusted with -x and -y 🎨


πŸ‘‘ OPTIONS πŸ‘‘

  • -f β€” field names separated by <cyan>','</cyan> (scroll down to the FIELDS section bestie πŸ‘‡); at least one field is mandatory; if you use an asterisk (*), then all the fields get dumped πŸ’–
  • -i β€” name of the mfs binary stats file (default: default_data_path/stats.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 the column separator (default: tabulator) βœ‚οΈ
  • -p β€” optional PNG filename (the field name gets added before .png; so YYYY β†’ YYYY_FIELD.png, and YYYY.png β†’ YYYY_FIELD.png) πŸ–ΌοΈ
  • -x β€” PNG chart width (default: 1600) πŸ“
  • -y β€” PNG chart height (it should be divisible by 20 β€” if it's not, it'll get adjusted for you, no stress; 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 🌈

okay this is the whole menu, do not skip a single one, they're all iconic πŸ’…:

  • 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)
  • delete β€” Number of chunk deletions
  • replicate β€” Number of chunk replications
  • statfs β€” Number of statfs operations
  • getattr β€” Number of getattr operations
  • setattr β€” Number of setattr operations
  • lookup β€” Number of lookup operations
  • mkdir β€” Number of mkdir operations
  • rmdir β€” Number of rmdir operations
  • symlink β€” Number of symlink operations
  • readlink β€” Number of readlink operations
  • mknod β€” Number of mknod operations
  • unlink β€” Number of unlink operations
  • rename β€” Number of rename operations
  • link β€” Number of link operations
  • readdir β€” Number of readdir operations
  • open β€” Number of open operations
  • read β€” Number of read operations
  • write β€” Number of write operations
  • prcvd β€” Received packets
  • psent β€” Sent packets
  • brcvd β€” Received bytes
  • bsent β€” Sent bytes
  • 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)
  • usedspace β€” Used raw disk space
  • totalspace β€” Total raw disk space
  • space β€” Total raw disk space (in csv it's the same as totalspace, in png it shows both usedspace and totalspace using two colors)
  • readchunk β€” Number of chunk_read operations
  • writechunk β€” Number of chunk_write operations
  • create β€” Number of chunk creation attempts
  • change β€” Number of chunk internal operation attempts
  • delete_ok β€” Number of successful chunk deletions
  • delete_err β€” Number of unsuccessful chunk deletions
  • delete_stat β€” Sum of successful and unsuccessful chunk deletions (in png it shows both delete_ok and delete_err using two colors)
  • replicate_ok β€” Number of successful chunk replications
  • replicate_err β€” Number of unsuccessful chunk replications
  • replicate_stat β€” Sum of successful and unsuccessful chunk replications (in png it shows both replicate_ok and replicate_err using two colors)
  • create_ok β€” Number of successful chunk creations
  • create_err β€” Number of unsuccessful chunk creations
  • create_stat β€” Sum of successful and unsuccessful chunk creations (in png it shows both create_ok and create_err using two colors)
  • change_ok β€” Number of successful chunk internal operations
  • change_err β€” Number of unsuccessful chunk internal operations
  • change_stat β€” Sum of successful and unsuccessfulchunk internal operations (in png it shows both change_ok and change_err using two colors)
  • split_ok β€” Number of successful chunk split operations
  • split_err β€” Number of unsuccessful chunk split operations
  • split_stat β€” Sum of successful and unsuccessful chunk split operations (in png it shows both split_ok and split_err using two colors)
  • fileobjects β€” Number of file objects
  • metaobjects β€” Number of non-file objects (directories,symlinks,etc.)
  • objects β€” Number of all objects (in png it shows both fileobjects and metaobjects using two colors)
  • chunksec8 β€” Total number of chunks stored in EC8 format
  • chunksec4 β€” Total number of chunks stored in EC4 format
  • chunkscopy β€” Total number of chunks stored in COPY format
  • chunks β€” Total number of chunks stored in any format (in png it shows chunksec8, chunksec4 and chunkscopy using three colors)
  • chregdanger β€” Number of endangered chunks (mark for removal excluded)
  • chregunder β€” Number of undergoal chunks (mark for removal excluded)
  • regunder β€” Number of endangered and undergoal chunks (mark for removal excluded, in png it shows chregdanger and chregunder using two colors)
  • challdanger β€” Number of endangered chunks (mark for removal included)
  • challunder β€” Number of undergoal chunks (mark for removal included)
  • allunder β€” Number of endangered and undergoal chunks (mark for removal included, in png it shows challdanger and challunder using two colors)
  • bytesread β€” Average number of bytes read per second by all clients
  • byteswrite β€” Average number of bytes written per second by all clients
  • fsync β€” Number of fsync operations
  • lock β€” Number of lock operations
  • snapshot β€” Number of snapshot operations
  • truncate β€” Number of truncate operations
  • getxattr β€” Number of getxattr operations
  • setxattr β€” Number of setxattr operations
  • getfacl β€” Number of getfacl operations
  • setfacl β€” Number of setfacl operations
  • fcreate β€” Number of file create operations
  • meta β€” Number of extra metadata operations (sclass,trashretention,eattr etc.)
  • delay β€” (pro only) Master max delay in seconds
  • servers β€” Number of all registered chunk servers (both connected and disconnected)
  • dservers β€” Number of all disconnected chunk servers
  • mdservers β€” Number of disconnected chunk servers that are in maintenance mode
  • cservers β€” Number of all registered chunk servers (in csv it equals servers, in png it shows servers, dservers and mdservers using three different colors)
  • udiff β€” Difference in space usage percent between the most and least used chunk server

🧚 NOTES 🧚

bestie, this part is important so like, pay attention 🫢

the delete and delete_stat data sets, in a properly working system, should be roughly the same, but not always identical (in their CSV form). this stems from the fact that the delete set is calculated using the number of requests sent by the master, and the delete_stat set is calculated using the number of replies received from chunk servers. so local fluctuations may be observed β€” i.e. one minute has more sent requests (higher value in the delete set) and the next minute has more answers (higher value in the delete_stat set). but if one were to calculate the sum of differences between the two sets over time, that sum should never grow over a certain number βœ‹

however 😭 β€” if there's some kind of problem (with network communication and/or chunk server process(es)) and some chunk delete requests are stalled / go missing, then delete values may be constantly higher than the delete_stat values, and the sum of differences between the two sets will be steadily growing over time 🚨

same goes for replicate(_stat), create(_stat), change(_stat) and split(_stat) data sets πŸ‘―


πŸ› REPORTING BUGS πŸ›

found a bug? 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 πŸŽ€

mfsmount(8), moosefs(7)


kk that's the whole thing bestie πŸ’– go forth and dump those stats. this was MooseFS 4.59.2-1, dated May 2026 πŸ¦‹ periodt βœ¨πŸ‘‘

πŸ“¦ where this page comes from