Code Monkey home page Code Monkey logo

Comments (9)

ncabatoff avatar ncabatoff commented on July 23, 2024 1

You're welcome @epa095, and I agree. Let me know if you find any problems with the fix. New release forthcoming within the week if you don't feel like building from source.

from process-exporter.

ncabatoff avatar ncabatoff commented on July 23, 2024

Well, I'm at a loss. I guess this weekend I'll install linux on my chromebit or try to setup a virtual ARM env and see if I can reproduce there.

from process-exporter.

flixr avatar flixr commented on July 23, 2024

The funny thing is that it runs fine on my Odroid XU4... and in a ARM docker image (using qemu) it just segfaults.

If you have some ideas on how to best debug this further (e.g. even putting some more debug log outputs in the code), I would appreciate it a lot.

from process-exporter.

ncabatoff avatar ncabatoff commented on July 23, 2024

Oh, interesting. Well, in terms of debug logs I'd probably start by adding something to Grouper.Update(), e.g. in the iteration over newProcs:

         for _, idinfo := range newProcs {
                  wanted, gname := g.namer.MatchAndName(common.NameAndCmdline{idinfo.Name, idinfo.Cmdline})
+                 log.Printf("wanted=%v, gname=%v, idinfo=%v", wanted, gname, idinfo)

from process-exporter.

flixr avatar flixr commented on July 23, 2024

I added that and get no output on the Tegra TK1 (kernel 3.10.40), but as expected it works on the Odroid (kernel 4.2.0)

from process-exporter.

flixr avatar flixr commented on July 23, 2024

So it seems that because the /proc/<pid>/io file does not exist, everything is silently dropped... see TODO in Tracker.Update

And it doesn't count that error because it's not a permission error, but the io file doesn't exist.

from process-exporter.

flixr avatar flixr commented on July 23, 2024

So I was missing some needed kernel options:

CONFIG_TASKSTATS=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y

Then it works...

But it would still be good if the error was caught and logged and even better if the other metrics were still extracted (as per the TODO).

from process-exporter.

ncabatoff avatar ncabatoff commented on July 23, 2024

Indeed. Happy to have an explanation. I'll use this issue to fix the error checking and address the TODO. Thanks very much for the bug report and analysis.

from process-exporter.

epa095 avatar epa095 commented on July 23, 2024

Hi, thanks for a nice tool. Is there any progress on the "io"-TODO? I have problems getting any data from some servers I am running it on, and I think the reason probably is that I dont have read-access to the io folder. To me it seams reasonable that an extractor like this should ignore metrics it don't have permission for, but keep trying the other metrics. Having just CPU and memory usage is still much better than nothing;-)

from process-exporter.

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.