Comments (9)
@elvetemedve @bagage thanks for the heads-up on this, I had this on my TODO list since a long time (as GNOME libgtop and system-monitor maintainer), will do my best to help you out with this.
from gnome-shell-extension-system-monitor.
Hi @qdii,
Actually listing most network heavy processes is not done. So it's a missing feature, and not a bug.
I did not find a way to get the network usage per process as a non-root user. There is a process level stat file provided by the kernel which lies, because the content of process level statistics /proc/1/net/netstat
equals to the content in global /proc/net/netstat
.
I tried to analyse Nethogs application and I found that it sniffs packets sent by applications and counts them. This operation needs root privilege. But I don't want to look into the packages, only interested in statistical data.
So if anyone can tell me a reliable method for accessing this data as regular user, then I would be able to implement this in the extension.
from gnome-shell-extension-system-monitor.
I understand, I will ask my colleagues if they have any idea on how to do that?
In the meantime, would it be very complicated to display download/upload speeds for the main interfaces? Maybe rate the speed over the last 5 seconds.
from gnome-shell-extension-system-monitor.
It shouldn't be too difficult. I'll think about the possibilities.
from gnome-shell-extension-system-monitor.
I have the same issue.
from gnome-shell-extension-system-monitor.
I don't know any alternative to nethogs
to do that, but one thing that could be done is that if:
nethogs
is installed and- it has the capabilities to be run as non-root (eg user typed
sudo setcap "cap_net_admin,cap_net_raw+pe" $(which nethogs)
).
Then, system-monitor could use it to monitor network traffic. Do you think it would make sense?
from gnome-shell-extension-system-monitor.
@bagage Well, it makes sense and that's possible. On the other hand I would like to rely on as less dependency as possible. Preferably:
- Utilise one of the Gnome libraries
- Obtain data directly from Linux kernel
- Utilise one of the libraries used by the OS
- Execute external software to get data
So it would be nice if GLibTop library could provide per process network usage information. Unfortunately only network interface level statistics is available.
from gnome-shell-extension-system-monitor.
I totally agree with you - the upstream bug in GTop is Bug 768304. I added a comment on it to check current status.
from gnome-shell-extension-system-monitor.
Showing network usage per interfaces has been implemented in version 9.
from gnome-shell-extension-system-monitor.
Related Issues (20)
- Can't remove HOT 1
- Too many Icons
- Relase 18: TypeError: GObject.registerClass() used with invalid base class (is PopupBaseMenuItem) HOT 7
- Gnome 3.36 support HOT 4
- JS ERROR: Extension [email protected]: TypeError: Array.slice is not a function
- interferes with display driver HOT 1
- statvfs journal spam HOT 1
- Gnome 3.40 support HOT 3
- Put a color to the whole icon, not part of it HOT 3
- Do not match GNOME System Monitor HOT 2
- [BUG]: Endless adding icons HOT 2
- GNOME 41 support HOT 2
- GNOME 42 support HOT 3
- gpu statistics
- Gnome Shell Crash HOT 5
- Gnome Shell 43 support HOT 3
- Met errors when installing on Ubuntu 22.04.1 LTS HOT 1
- regular hard lockups in display HOT 6
- GNOME 45 support HOT 3
- The popover stretches limitless outside the screen HOT 2
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 gnome-shell-extension-system-monitor.