Git Product home page Git Product logo

Comments (6)

jlelli avatar jlelli commented on May 2, 2024

Right. Moving "delay" at task level seems to solve the issue. Still we need to fix the bug.

from rt-app.

vingu-linaro avatar vingu-linaro commented on May 2, 2024

I'm not able to reproduce the segfault. Have you tried the latest version ?
"delay" key is not parsed but only ignored when looking for event so not segfault should happen

from rt-app.

vingu-linaro avatar vingu-linaro commented on May 2, 2024

Hi,

As I'm not able to reproduce the problem with latest version of rt-app, I consider to close this issue.

Regards,
Vincent

from rt-app.

derkling avatar derkling commented on May 2, 2024

Hi Vincent, I've just verified that with the current master, using the above agenda the app fails with:

$>./src/rt-app /tmp/test.json
[rt-app] <notice> pLoad = 262ns
[rt-app] <notice> [0] Locking pages in memory
mlockall: Cannot allocate memory

Did not investigated in details, but it seems to me that there are some issue with the JSON parsing.
AFAIU, for SCHED_OTHERS we should not mlockall memory pages... however, the app exit because of permission errors (notice that I'm not running as root this workload)

Thus, to me there is still a sudden bug in JSON processing... at least we fail on reporting an unexpected JSON entry.

from rt-app.

vingu-linaro avatar vingu-linaro commented on May 2, 2024

1st, this seems to be a new "bug" as there is no segfault anymore.
Then, you need root permission for locking memory thus the error returns by rt-app but it's not the responsibility of rt-app just like you must be root to set sched_fifo
Finally, mlockall can be used with cfs task and it's even interesting because it prevent your test to be messed by some page fault.
I don't know why the doc mention non CFS task but there is no reason
So I don't see a bug in JSON processing here. At most, update of doc.

So in any case this should be filled in another bug because we are speaking about a different thing

from rt-app.

derkling avatar derkling commented on May 2, 2024

Running as non root was intentional... but you right, I've just verified that we enforce mlockall by default also for SCHED_OTHER task. Then JSON parsing should be ok.
Let's close this for the time being. Thanks.

from rt-app.

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.