Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uclamp and taskgroup mix issue #115

Open
douglas-raillard-arm opened this issue Feb 12, 2021 · 0 comments
Open

uclamp and taskgroup mix issue #115

douglas-raillard-arm opened this issue Feb 12, 2021 · 0 comments

Comments

@douglas-raillard-arm
Copy link

Parsing this configuration:

    "tasks" : {
        "task1" : {
            "loop" : 1,
            "phases" : {
                "1" : {
                    "policy": "SCHED_OTHER",
                    "taskgroup": "/",
                    "run" : 3
                },
                "2" : {
                    "util_min": 512,
                    "run" : 3
                }
            }
        }
    },
    "global" : {
        "default_policy" : "SCHED_OTHER",
        "duration" : 1,
        "gnuplot" : false,
        "logdir" : "./",
        "log_basename" : "testrtapp",
        "lock_pages" : false,
        "frag" : 1,
        "calibration" : 63
    }
}

Fails with:

$ sudo rt-app -l100 conf.json     

[rt-app] <info> [json] Reading JSON config from conf.json
[rt-app] <info> [json] Successfully parsed input JSON
[rt-app] <info> [json] root     : { "tasks": { "task1": { "loop": 1, "phases": { "1": { "policy": "SCHED_OTHER", "taskgroup": "\/", "run": 3 }, "2": { "util_min": 512, "run": 3 } } } }, "global": { "default_policy": "SCHED_OTHER", "duration": 1, "gnuplot": false, "logdir": ".\/", "log_basename": "testrtapp", "lock_pages": false, "frag": 1, "calibration": 63 } }
[rt-app] <info> [json] global   : { "default_policy": "SCHED_OTHER", "duration": 1, "gnuplot": false, "logdir": ".\/", "log_basename": "testrtapp", "lock_pages": false, "frag": 1, "calibration": 63 }
[rt-app] <info> [json] tasks    : { "task1": { "loop": 1, "phases": { "1": { "policy": "SCHED_OTHER", "taskgroup": "\/", "run": 3 }, "2": { "util_min": 512, "run": 3 } } } }
[rt-app] <info> [json] Parsing global
[rt-app] <info> [json] Parsing global section
[rt-app] <info> [json]     key: duration, value: 1, type <int>
[rt-app] <info> [json]     key: gnuplot, value: 0, type <bool>
[rt-app] <info> [json]     key: default_policy, value: SCHED_OTHER, type <string>
[rt-app] <debug> ns_per_loop 63
[rt-app] <info> [json]     key: logdir, value: ./, type <string>
[rt-app] <info> [json]     key: log_basename, value: testrtapp, type <string>
[rt-app] <info> [json]     key: ftrace <default> 
[rt-app] <info> [json]     key: lock_pages, value: 0, type <bool>
[rt-app] <info> [json]     key: pi_enabled <default> 0
[rt-app] <info> [json]     key: io_device <default> /dev/null
[rt-app] <info> [json]     key: mem_buffer_size <default> 4194304
[rt-app] <info> [json]     key: cumulative_slack <default> 0
[rt-app] <info> [json] Parsing resources
[rt-app] <info> [json] Parsing resource section
[rt-app] <info> [json] No resource section Found
[rt-app] <info> [json] Parsing tasks
[rt-app] <info> [json] Parsing tasks section
[rt-app] <info> [json]     key: instance <default> 1
[rt-app] <info> [json] Found 1 threads of 1 tasks
[rt-app] <info> [json] Parsing task task1 [-1]
[rt-app] <info> [json]     key: cpus -
[rt-app] <info> [json]     key: policy <default> SCHED_OTHER
[rt-app] <info> [json]     key: priority <default> 0
[rt-app] <info> [json]     key: dl-runtime <default> 0
[rt-app] <info> [json]     key: dl-period <default> 0
[rt-app] <info> [json]     key: dl-deadline <default> 0
[rt-app] <info> [json]     key: util_min <default> -1
[rt-app] <info> [json]     key: util_max <default> -1
[rt-app] <info> [json]     key: runtime <default> 0
[rt-app] <info> [json]     key: period <default> 0
[rt-app] <info> [json]     key: deadline <default> 0
[rt-app] <debug> [json]     key: set scheduler 0 with priority 0
[rt-app] <info> [json]     key: taskgroup <default> 
[rt-app] <info> [json]     key: delay <default> 0
[rt-app] <info> [json]     key: instance <default> 1
[rt-app] <info> [json]     Parsing phases section
[rt-app] <info> [json]     Found 2 phases
[rt-app] <info> [json]     Parsing phase 1
[rt-app] <info> [json] Parsing phase
[rt-app] <info> [json]     key: loop <default> 1
[rt-app] <info> [json]     Found 1 events
[rt-app] <info> [json]     Parsing event run
[rt-app] <info> [json]         type 6 duration 3
[rt-app] <info> [json]     key: cpus -
[rt-app] <info> [json]     key: policy, value: SCHED_OTHER, type <string>
[rt-app] <info> [json]     key: priority <default> 0
[rt-app] <info> [json]     key: dl-runtime <default> 0
[rt-app] <info> [json]     key: dl-period <default> 0
[rt-app] <info> [json]     key: dl-deadline <default> 0
[rt-app] <info> [json]     key: util_min <default> -1
[rt-app] <info> [json]     key: util_max <default> -1
[rt-app] <debug> [json]     key: set scheduler 0 with priority 0
[rt-app] <info> [json]     key: taskgroup, value: /, type <string>
[rt-app] <debug> [tg] # taskgroups allocated [1]
[rt-app] <info> [json]     Parsing phase 2
[rt-app] <info> [json] Parsing phase
[rt-app] <info> [json]     key: loop <default> 1
[rt-app] <info> [json]     Found 1 events
[rt-app] <info> [json]     Parsing event run
[rt-app] <info> [json]         type 6 duration 3
[rt-app] <info> [json]     key: cpus -
[rt-app] <info> [json]     key: policy <default> NULL
[rt-app] <info> [json]     key: priority <default> 2147483647
[rt-app] <info> [json]     key: dl-runtime <default> 0
[rt-app] <info> [json]     key: dl-period <default> 0
[rt-app] <info> [json]     key: dl-deadline <default> 0
[rt-app] <info> [json]     key: util_min, value: 512, type <int>
[rt-app] <info> [json]     key: util_max <default> -1
[rt-app] <debug> [json]     key: set scheduler -1 with priority 2147483647
[rt-app] <info> [json]     key: taskgroup <default> 
[rt-app] <crit> [json]         No taskgroup support for policy (null)
[1]    405210 exit 2     sudo rt-app -l100 conf.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant