Giter Club home page Giter Club logo

Comments (9)

clbr avatar clbr commented on August 23, 2024

Use the dump option.

radeontop --help

        RadeonTop for R600 and above.

        Usage: /usr/sbin/radeontop [-ch] [-b bus] [-d file] [-l limit] [-t ticks]

-b --bus 3              Pick card from this PCI bus
-c --color              Enable colors
-d --dump file          Dump data to this file, - for stdout
-l --limit 3            Quit after dumping N lines, default forever
-t --ticks 50           Samples per second (default 120)

-h --help               Show this help
-v --version            Show the version

So "radeontop -d -" to output to a pipe continuously, or if you want one-shot, add "-l 1".

Sample line:

1502903295.84311: gpu 0.00%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.00%, pa 0.00%, db 0.00%, cb 0.00%, vram 30.01% 153.66mb

from radeontop.

clbr avatar clbr commented on August 23, 2024

For total VRAM, you need to get that some other way.

from radeontop.

franglais125 avatar franglais125 commented on August 23, 2024

Thanks a lot! That's exactly what I was looking for.

As for the total VRAM, can I do 153.66 / 30.01% = 512 MB to get the total?

from radeontop.

9898287 avatar 9898287 commented on August 23, 2024
# radeontop -d - -l 1
Dumping to -, line limit 1.
1502903993.303070: gpu 0.83%, ee 0.00%, vgt 0.00%, ta 0.00%, sx 0.00%, sh 0.00%, spi 0.00%, sc 0.83%, pa 0.00%, db 0.00%, cb 0.83%, vram 4.95% 201.15mb
, gtt 0.12% 4.80mb

from radeontop.

franglais125 avatar franglais125 commented on August 23, 2024

@9898287 , so in your exampe, the total VRAM is 201.15 / 4.95% = 4064mb ? I'm asking just to be sure.

Thanks a lot for the quick support!

from radeontop.

9898287 avatar 9898287 commented on August 23, 2024

Yes, that's correct. Also,

$ echo $(dmesg | grep -o -P -i "(?<=vram:).*(?=M 0x)")$" Mb"
4096 Mb

from radeontop.

franglais125 avatar franglais125 commented on August 23, 2024

Thanks again! Cheers.

from radeontop.

franglais125 avatar franglais125 commented on August 23, 2024

It seems that root privileges are required to run radeontop. Any way around that?

from radeontop.

clbr avatar clbr commented on August 23, 2024

Root rights are not required if your kernel is new enough, libdrm is new enough, and your user has access to the DRM node. If you tried to run radeontop without a Radeon card, it would fail to find one in DRM, and assume it needed the root path - even if your system otherwise was set up for non-root access.

from radeontop.

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.