Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 70

Thread: Announcing radeontop, a tool for viewing the GPU usage

  1. #11
    Join Date
    Nov 2008
    Location
    Old Europe
    Posts
    910

    Default

    Great, this sounds promising!

    Testing with glxgears running results in this oscillating output:

    http://www.vidup.de/v/yN2La/

    Is that expected?
    Last edited by entropy; 07-08-2012 at 09:38 AM.

  2. #12
    Join Date
    May 2007
    Location
    Third Rock from the Sun
    Posts
    6,583

    Default

    Good job, we need more efforts like this across the board (ie not only GPU monitoring).

    Now make a qt ui for it and I will award you 3845 brownie points. ;D

  3. #13
    Join Date
    Jan 2009
    Posts
    1,615

    Default

    Quote Originally Posted by deanjo View Post
    Good job, we need more efforts like this across the board (ie not only GPU monitoring).

    Now make a qt ui for it and I will award you 3845 brownie points. ;D
    inb4 patches welcome

  4. #14
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,029

    Default

    Quote Originally Posted by Michael View Post
    Nice job, been wanting this... (though ideally over debugfs/sysfs...) Is there a dump command so it would dump all of the stats and quit? That way PTS could auto-parse this data while running benchmarks
    No dump command yet, what kind of interface would you like?

    It gets the percentage numbers by polling the register the requested times per second. Do you want the percentages after one second, or immediate output (where PTS would itself have to call the app N times per second to get accurate output)?

    Or maybe it should keep running and just post the raw data for every tick?

    Testing with glxgears running results in this oscillating output:
    Didn't watch the vid, but in general the accuracy depends on the samples per sec. The default (60) is a low number pulled out of my backside, at least it has no measurable overhead.

    But to get more accurate numbers, try "-t 1000" for example.

    Now make a qt ui for it and I will award you 3845 brownie points. ;D
    I don't really like Qt. Patches welcome

  5. #15
    Join Date
    Mar 2012
    Posts
    10

    Default

    I have to two radeon graphic cards and one is blacklisted via xen pcihide. It seems that radeontop picks this graphic card. Everything is on 100%.

    It would be nice to choose the graphic card.

  6. #16
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    139

    Default

    hi, i have problem to compile .
    Make


    ui.c.text.present+0x8dc): undefined reference to `endwin'
    collect2: ld returned 1 exit status
    make: *** [radeontop] Errore 1

  7. #17
    Join Date
    May 2009
    Location
    Germany
    Posts
    14

    Default

    Which packages are needed on Ubuntu 12.04 x64 to compile it?

    Just downloading the zip file of the repository and running make didn't work.
    I had to install "git" and run "git clone https://github.com/clbr/radeontop.git" to satisfy getver.sh, and install "libpciaccess-dev" to get pciaccess.h, but I'm still getting compilation errors:
    Code:
    detect.o: In function `init_pci':
    detect.c:(.text.init_pci+0x7): undefined reference to `pci_system_init'
    detect.c:(.text.init_pci+0x67): undefined reference to `pci_id_match_iterator_create'
    detect.c:(.text.init_pci+0x74): undefined reference to `pci_device_probe'
    detect.c:(.text.init_pci+0x92): undefined reference to `pci_device_next'
    detect.c:(.text.init_pci+0xa2): undefined reference to `pci_iterator_destroy'
    ui.o: In function `percentage':
    ui.c:(.text.percentage+0x1b): undefined reference to `stdscr'
    ui.c:(.text.percentage+0x28): undefined reference to `wattr_on'
    ui.c:(.text.percentage+0x2f): undefined reference to `stdscr'
    ui.c:(.text.percentage+0x39): undefined reference to `wmove'
    ui.c:(.text.percentage+0x4f): undefined reference to `stdscr'
    ui.c:(.text.percentage+0x71): undefined reference to `whline'
    ui.c:(.text.percentage+0x78): undefined reference to `stdscr'
    ui.c:(.text.percentage+0x8c): undefined reference to `wattr_off'
    ui.o: In function `printcenter':
    ui.c:(.text.printcenter+0xaa): undefined reference to `mvprintw'
    ui.o: In function `printright':
    ui.c:(.text.printright+0xa9): undefined reference to `mvprintw'
    ui.o: In function `present':
    ui.c:(.text.present+0x2e): undefined reference to `initscr'
    ui.c:(.text.present+0x33): undefined reference to `noecho'
    ui.c:(.text.present+0x3d): undefined reference to `halfdelay'
    ui.c:(.text.present+0x44): undefined reference to `curs_set'
    ui.c:(.text.present+0x4b): undefined reference to `stdscr'
    ui.c:(.text.present+0x50): undefined reference to `wclear'
    ui.c:(.text.present+0x59): undefined reference to `start_color'
    ui.c:(.text.present+0x6a): undefined reference to `init_pair'
    ui.c:(.text.present+0x7b): undefined reference to `init_pair'
    ui.c:(.text.present+0x8c): undefined reference to `init_pair'
    ui.c:(.text.present+0x9d): undefined reference to `init_pair'
    ui.c:(.text.present+0xae): undefined reference to `init_pair'
    ui.c:(.text.present+0xb5): undefined reference to `stdscr'
    ui.c:(.text.present+0xe5): undefined reference to `wattr_on'
    ui.c:(.text.present+0xec): undefined reference to `stdscr'
    ui.c:(.text.present+0xf8): undefined reference to `wmove'
    ui.c:(.text.present+0x103): undefined reference to `stdscr'
    ui.c:(.text.present+0x10f): undefined reference to `whline'
    ui.c:(.text.present+0x142): undefined reference to `stdscr'
    ui.c:(.text.present+0x14e): undefined reference to `wattr_off'
    ui.c:(.text.present+0x195): undefined reference to `stdscr'
    ui.c:(.text.present+0x1a1): undefined reference to `wmove'
    ui.c:(.text.present+0x1a8): undefined reference to `stdscr'
    ui.c:(.text.present+0x1ad): undefined reference to `wclrtobot'
    ui.c:(.text.present+0x2d8): undefined reference to `stdscr'
    ui.c:(.text.present+0x373): undefined reference to `wmove'
    ui.c:(.text.present+0x37e): undefined reference to `acs_map'
    ui.c:(.text.present+0x385): undefined reference to `stdscr'
    ui.c:(.text.present+0x38c): undefined reference to `whline'
    ui.c:(.text.present+0x397): undefined reference to `stdscr'
    ui.c:(.text.present+0x3a1): undefined reference to `wmove'
    ui.c:(.text.present+0x3b0): undefined reference to `acs_map'
    ui.c:(.text.present+0x3b7): undefined reference to `stdscr'
    ui.c:(.text.present+0x3bc): undefined reference to `wvline'
    ui.c:(.text.present+0x3c7): undefined reference to `stdscr'
    ui.c:(.text.present+0x3d1): undefined reference to `wmove'
    ui.c:(.text.present+0x3dc): undefined reference to `acs_map'
    ui.c:(.text.present+0x3e3): undefined reference to `stdscr'
    ui.c:(.text.present+0x3e8): undefined reference to `waddch'
    ui.c:(.text.present+0x3f3): undefined reference to `stdscr'
    ui.c:(.text.present+0x3ff): undefined reference to `wattr_on'
    ui.c:(.text.present+0x445): undefined reference to `stdscr'
    ui.c:(.text.present+0x451): undefined reference to `wattr_off'
    ui.c:(.text.present+0x497): undefined reference to `stdscr'
    ui.c:(.text.present+0x4a3): undefined reference to `wattr_on'
    ui.c:(.text.present+0x4e7): undefined reference to `stdscr'
    ui.c:(.text.present+0x4f3): undefined reference to `wattr_off'
    ui.c:(.text.present+0x4fa): undefined reference to `stdscr'
    ui.c:(.text.present+0x506): undefined reference to `wattr_on'
    ui.c:(.text.present+0x5b5): undefined reference to `stdscr'
    ui.c:(.text.present+0x5c1): undefined reference to `wattr_off'
    ui.c:(.text.present+0x5d5): undefined reference to `stdscr'
    ui.c:(.text.present+0x5e1): undefined reference to `wattr_on'
    ui.c:(.text.present+0x708): undefined reference to `stdscr'
    ui.c:(.text.present+0x714): undefined reference to `wattr_off'
    ui.c:(.text.present+0x7ab): undefined reference to `stdscr'
    ui.c:(.text.present+0x7b7): undefined reference to `wattr_on'
    ui.c:(.text.present+0x89c): undefined reference to `stdscr'
    ui.c:(.text.present+0x8a8): undefined reference to `wattr_off'
    ui.c:(.text.present+0x8af): undefined reference to `stdscr'
    ui.c:(.text.present+0x8b4): undefined reference to `wrefresh'
    ui.c:(.text.present+0x8bb): undefined reference to `stdscr'
    ui.c:(.text.present+0x8c0): undefined reference to `wgetch'
    ui.c:(.text.present+0x8dc): undefined reference to `endwin'
    What's missing?

    Machine: Lenovo X121e - AMD E-350

  8. #18
    Join Date
    Aug 2011
    Location
    Hillsboro, Oregon
    Posts
    132

    Default

    Very nice! intel-gpu-top has been really useful for me when trying to tune performance of the Intel driver, so I'm really glad to see an equivalent tool come along for the Radeon drivers. Keep up the good work :)

  9. #19
    Join Date
    Jul 2008
    Location
    Berlin, Germany
    Posts
    821

    Default

    The errors are because you build with --as-needed

    In order to not fail with --as-needed, the linking order needs to be fixed:
    Code:
    --- a/Makefile  2012-07-08 16:43:32.607932237 +0200
    +++ b/Makefile  2012-07-08 16:43:58.753934197 +0200
    @@ -31,7 +31,7 @@
     $(obj): $(wildcard *.h) version.h
     
     $(bin): $(obj)
    -       gcc -o $(bin) $(CFLAGS) $(LDFLAGS) $(obj)
    +       gcc -o $(bin) $(CFLAGS) $(obj) $(LDFLAGS)
     
     clean:
            rm -f *.o $(bin)
    Alternatively, drop -Wl,--as-needed from your LDFLAGS.

  10. #20
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    139

    Default

    Thanks now works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •