Giter VIP home page Giter VIP logo

Comments (9)

evfool avatar evfool commented on July 17, 2024 2

@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.

elvetemedve avatar elvetemedve commented on July 17, 2024

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.

qdii avatar qdii commented on July 17, 2024

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.

elvetemedve avatar elvetemedve commented on July 17, 2024

It shouldn't be too difficult. I'll think about the possibilities.

from gnome-shell-extension-system-monitor.

 avatar commented on July 17, 2024

I have the same issue.

from gnome-shell-extension-system-monitor.

bagage avatar bagage commented on July 17, 2024

I don't know any alternative to nethogs to do that, but one thing that could be done is that if:

  1. nethogs is installed and
  2. 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.

elvetemedve avatar elvetemedve commented on July 17, 2024

@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:

  1. Utilise one of the Gnome libraries
  2. Obtain data directly from Linux kernel
  3. Utilise one of the libraries used by the OS
  4. 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.

bagage avatar bagage commented on July 17, 2024

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.

elvetemedve avatar elvetemedve commented on July 17, 2024

Showing network usage per interfaces has been implemented in version 9.

from gnome-shell-extension-system-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.