Comments (9)
I see what you mean now. Dstat did not show any unit numbers, and only reserved 3 columns in total for most connection stats. Should be fixed now !
from dstat.
Btw, noticed one thing. Proc file /proc/net/tcp used by dstat doesn't have this information. That means there is no issue in dstat code. But the real issue is with data available in /proc/net/tcp.
I checked if other tools have this issue -
Tested same scenario with 'ss' and it shows correct number of active/connected sockets.
Whats missing here? Is /proc/net/tcp right choice to look for this data?
from dstat.
I've noticed the same problem. And changing tab width for dstat_socket
class helps. It's value hardcoded as 3
and it shows only first 3 digits of actual number. So everything is correct while you have <= 999 sockets in any state, but if you have 1234 socket in some state, dstat will show only 1
.
from dstat.
Is the solution just to display those numbers in decimal format? 1.2k connections?
from dstat.
I thought that the best solution would be to add one more app launch argument, something like --raw.
So, by default, the view would be human-readable. In case with tcp sockets - 1.2k, 1.2m, but in raw mode I would like to see the actual numbers, no matter of their length. But, for sure, some metrics like sent/recv bytes etc. should remain human-readable in any mode.
Still, as a quick solution, your idea is good!
Thank you!
from dstat.
@kkalinin You get the raw numbers in CSV output. We cannot print raw numbers to the screen since it messes up the whole formatting to the point it is rendered useless. (That's the problem with e.g. vmstat)
Currently one can already add --float
to get floating point numbers instead of integers (when units are used). But we have to consider column width.
from dstat.
BTW Option --raw
already exists, but doesn't do what you'd be expecting :-)
from dstat.
Want to know how did you resolve this problem?
I suffer from the same problem. I want to measure system performance with one command,dstat, but it gave me a totally different number from ss.
from dstat.
@superheizai It is fixed in the master branch. The fix is included in commit 4c47a34
from dstat.
Related Issues (20)
- Incorrect unit in top-mem csv
- Horizontal layout, maybe with bar plots
- Plugin path computed incorrectly when dstat is symlinked
- CSV output to stdout
- output statics in mgb or mgB ?
- [wishlist] ability to change the "blue" color in the header (blue is too dark, can't read) HOT 2
- Add way to supress missed tick output
- Feature request : Total Bytes cumulated on delay X HOT 3
- Infiniband Problem
- Incorrect numbers with raid configuration
- Comma added to end of csv output file when 'Terminal width too small, trimming output' warning seen. HOT 1
- Feature request : extended memory statistics : Huge Pages and Commited pages
- I would like to participate in dstat development and responding to issues. HOT 25
- what's the unit of io?
- MariaDB modules HOT 3
- Fix for freespace plugin errors never merged
- Release a version of dstat with Python 3 support
- Master branch throws an error when you try and use a delay
- linux 2.6, dstat --mem not working HOT 1
- So long and thanks for all the fish.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dstat.