Giter VIP home page Giter VIP logo

Comments (13)

ITwrx avatar ITwrx commented on August 17, 2024 1

do you mean to group them by ?name? and sum values?

yes. that's what i like about ps_mem and i always have to leave htop to use ps_mem because looking at a bunch of separate forked processes bouncing around is fairly useless when you want to know how much ram a program is using altogether, which i think is a more common use case than someone needing to see what one particular fork is doing right now. [edited to avoid misintepretation]

Same thing with CPU usage. I want to know how much a program is using, not try and guess from forks bouncing around. I understand it wouldn't be 100% accurate/real time, but that's still better than chasing the forks. I don't know how your historical data feature works yet, but there may be a "tie in" with this feature there as well.

I bet ttop would be the only sys mon that had this feature, and it might drive adoption and create exposure for your app and nim.

from ttop.

ITwrx avatar ITwrx commented on August 17, 2024 1

I just tried it. That's pretty cool!

It looks like some stuff is not being grouped fully. I'm guessing Isolated Web Co(tent) should be part of Firefox. I have one called WebExtensions and Web Content. Maybe those goes with Brave browser? I also have Privileged Cont, Utility Process, RDD Process, and Socket Process, but i'm not sure what they represent or should go with.

Good start! It's already useful as it is.

from ttop.

inv2004 avatar inv2004 commented on August 17, 2024 1

https://github.com/inv2004/ttop/releases/v1.4.3

I found that parsing <PID>/exe symling like ps_mem do is not very stable and decided to try just first argument from cmdline. And looks like it works a bit better for me

image

from ttop.

ITwrx avatar ITwrx commented on August 17, 2024 1

Yeah, i just tried it too. This is a great feature! closing. Thanks a lot. Will likely be using ttop as my main sys mon now.

from ttop.

ITwrx avatar ITwrx commented on August 17, 2024 1

My gajim is in a strange state right now. copr repo, signing keys, etc. let me make sure that's squared away before you spend any time on this. I'll post back.

from ttop.

ITwrx avatar ITwrx commented on August 17, 2024 1

looks good to me! gajim is shown as: /usr/bin/python3 -sP /usr/bin/gajim
I'll let you close the issue when you decide to. Thanks!

from ttop.

inv2004 avatar inv2004 commented on August 17, 2024 1

@ITwrx
I think it is correct. It is grouped by process name, but the tui contains cmdline if it is available

from ttop.

inv2004 avatar inv2004 commented on August 17, 2024 1

Reopen if you find smth I can add to the issue

from ttop.

inv2004 avatar inv2004 commented on August 17, 2024

Do I understand correct:

ps_mem shows:
13.9 MiB + 3.7 MiB = 17.6 MiB fish (5)

ttop with filter "fish"

 S   7500 u           10.5 MB   0.1   0.0            0:20:40  /usr/sbin/fish
 S     10 u           10.5 MB   0.1   0.0            0:57:40  -fish
 S   1118 u            8.7 MB   0.1   0.0            0:57:00  /usr/sbin/fish
 S  13293 u            8.3 MB   0.1   0.0            0:10:26  -fish
 S    673 u            7.0 MB   0.1   0.0            0:57:09  /usr/sbin/fish -c sh -c '"$VSCODE_WSL_EXT_LOCATION/s.

do you mean to group them by ?name? and sum values? I think it is interesting idea - not a lot of reasons to see 100500 forks of the same process.

from ttop.

inv2004 avatar inv2004 commented on August 17, 2024

@ITwrx first try to group processes was added into https://github.com/inv2004/ttop/releases/tag/v1.4.2
You can try it by g button. It does not match ps_mem 100% and I have to understand it a bit more

image

from ttop.

ITwrx avatar ITwrx commented on August 17, 2024

it looks like gajim is shown simply as /usr/bin/python3. I'm not seeing anything else that is reported in such a generic way, but that's probably the only python application i have running right now.

from ttop.

ITwrx avatar ITwrx commented on August 17, 2024

well, the copr repo issues are irrelevant as only the omemo stuff is from the copr repo. The gajim package itself is from the official repos. I also confirmed, by closing and reopening gajim, that it is gajim that is shown as /usr/bin/python3.

from ttop.

inv2004 avatar inv2004 commented on August 17, 2024

@ITwrx
I just released v1.4.5 which is mainly about fixing all the group stuff. I found that ps_mem uses root perms to find exe link which is not compatible with ttop (which does not need root).

I added logic to group by first cmdline file (for firefox) if it is possible and use process name if not

from ttop.

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.