Questions tagged [sched-deadline]

SCHED_DEADLINE is the resource-reservation real-time CPU scheduling policy available on Linux systems (see details)

SCHED_DEADLINE is a CPU scheduling policy for real-time tasks in the Linux kernel.

It is available since release 3.14 of the Linux kernel. See here for further details.

16 questions
7
votes
1 answer

kafka disks hault writes during massive reads and cause "queue full" errors in the kafka producer

we have 6 X kafka brokers with 256GB RAM, 24c/48T and they host 20 X 1.8TB SAS 10K rpm disks configured in raid10. There are two spark streaming apps that start their batches every 10 minutes once they start, their first job is reading from the…
Elad Eldor
  • 803
  • 1
  • 12
  • 22
7
votes
1 answer

Is SCHED_DEADLINE officially supported in Ubuntu 16.04?

Currently I'm running Ubuntu 16.04 with linux kernel version to be 4.16. I wrote a dummy program that changes its scheduler to SCHED_DEADLINE. But when I tried to compile it, it cannot find definition of structs and macros needed for SCHED_DEADLINE.…
Pringles
  • 187
  • 10
5
votes
3 answers

DEADLINE scheduling policy not found

I want to implement the DEADLINE scheduling policy in C. I know the feature is implemented since Linux 3.14.10 and I'm using Ubuntu 14.04 Linux #### 3.17.0-031700-lowlatency #201410060605 SMP PREEMPT which should be recent enough. I develop the…
c.censier
  • 781
  • 7
  • 23
4
votes
2 answers

pthread_create returns EAGAIN when the main thread is set sched_deadline scheduling policy

I would like to let a process be scheduled under the new Linux SCHED_DEADLINE scheduling policy. Meanwhile, this process has to create some worker threads do to some other work. However, when I called pthread_create after a successful call of…
lookflying
  • 41
  • 1
3
votes
1 answer

How to get the JobID from Deadline using a Python script

Is there any way to get the Job Id from Deadline. I am scripting the process of submitting a job from Maya to Deadline without using the GUI. I need the JobId in order to create a folder in the repository to save the Maya Scene File when submitted.…
3
votes
2 answers

How to use the macro SCHED_DEADLINE in linux?

We know that there are several scheduling policies in linux like SCHED_FIFO, SCHED_RR, SCHED_OTHER, etc. and one can change the scheduler of a real-time process using the sched_setscheduler system call. But I'm not able to change the scheduler of a…
Jarvis
  • 8,494
  • 3
  • 27
  • 58
3
votes
1 answer

Detect deadline thread preemption

I'm implementing a thread using SCHED_DEADLINE scheduling policy which is my high-priority thread and another one using SCHED_FIFO policy which is my low-priority one. As an example, I've defined my deadline thread as follow : attr.sched_runtime =…
c.censier
  • 781
  • 7
  • 23
1
vote
1 answer

What has priority over SCHED_DEADLINE?

In experimenting with scheduling a high speed thread, I've noticed that sometimes there are large periods (multiple ms) that the thread is not scheduled. I was wondering what might be able to do this to the scheduler in the configuration I am…
xl600
  • 71
  • 5
1
vote
1 answer

Under the SCHED_DEADLINE scheduler is sched_yield() guaranteeing wakeup at the start of the next period?

The documentation for SCHED_DEADLINE states under point 4.4 that: This behavior of sched_yield() allows the task to wake-up exactly at the beginning of the next period. Does this mean that using sched_yield() in a SCHED_DEADLINE thread…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
0
votes
0 answers

How can I run my systemd service with a `SCHED_DEADLINE` scheduling policy?

I want to run my systemd service with a SCHED_DEADLINE scheduling policy. I already have this with chrt -d --sched-runtime 1000000 --sched-deadline 5000000 --sched-period 5000000 -p 0 However this is a service and I don't want to apply this…
0
votes
0 answers

How to run a SCHED_DEADLINE program without sudo?

I am assigning sched_deadline policy in a thread via the following code: struct sched_attr attr; memset(&attr, sizeof(struct sched_attr), 0); attr.size = sizeof(struct sched_attr); attr.sched_policy = SCHED_DEADLINE; attr.sched_runtime =…
soham
  • 1,508
  • 6
  • 30
  • 47
0
votes
0 answers

SCHED_DEADLINE runtime overrun signal (SIGXCPU)

I'm implementing a rt-thread using SCHED_DEADLINE. I'm trying to catch a SIGXCPU-signal, if the thread exceeds the specified sched_runtime. To my understanding of the manpage, this can be achived by setting the SCHED_FLAG_DL_OVERRUN-flag. However,…
rkl
  • 1
  • 1
0
votes
1 answer

What scheduling policy does each return int value from sched_getscheduler(pid) correspond to?

When I use the following code to set the scheduling policy to Deadline: struct sched_attr attr = { .size = sizeof(attr), .sched_policy = SCHED_DEADLINE, .sched_runtime = 30000000, .sched_period = 100000000, …
Somdip Dey
  • 3,346
  • 6
  • 28
  • 60
0
votes
1 answer

With cpuset, is using deadline scheduler on all processes effectively same as using normal completely fair scheduler?

As I understand, on modern Linux, deadline scheduler is implemented using constant bandwidth server (CBS) and earliest deadline first (EDF). Say I assigned X number of processes to 6 out of 12 CPUs using cpuset. Assuming there's no other significant…
mr49
  • 1,053
  • 1
  • 8
  • 26
0
votes
1 answer

Build against newer linux headers than libc is built using

I want to write a program using the new SCHED_DEADLINE scheduling policy available since Linux 3.14. I start out with a simple program trying to use the sched_setattr function. #include int main(void) { // struct sched_attr attr; …
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
1
2