)]}'
{
  "commit": "35fe68699a93e739dcb87fc4fbe632a5a49c1d94",
  "tree": "d60ec500c539e6ffd3aad3f66a04ad22f5f71cca",
  "parents": [
    "c16060052ef4546688dbe0f4ad8d4b76a32f706c"
  ],
  "author": {
    "name": "Vincent Guittot",
    "email": "vincent.guittot@linaro.org",
    "time": "Fri Jan 13 14:36:13 2023 +0100"
  },
  "committer": {
    "name": "Qais Yousef",
    "email": "qyousef@google.com",
    "time": "Fri Feb 23 13:20:37 2024 +0000"
  },
  "message": "UPSTREAM: sched/fair: Limit sched slice duration\n\nIn presence of a lot of small weight tasks like sched_idle tasks, normal\nor high weight tasks can see their ideal runtime (sched_slice) to increase\nto hundreds ms whereas it normally stays below sysctl_sched_latency.\n\n2 normal tasks running on a CPU will have a max sched_slice of 12ms\n(half of the sched_period). This means that they will make progress\nevery sysctl_sched_latency period.\n\nIf we now add 1000 idle tasks on the CPU, the sched_period becomes\n3006 ms and the ideal runtime of the normal tasks becomes 609 ms.\nIt will even become 1500ms if the idle tasks belongs to an idle cgroup.\nThis means that the scheduler will look for picking another waiting task\nafter 609ms running time (1500ms respectively). The idle tasks change\nsignificantly the way the 2 normal tasks interleave their running time\nslot whereas they should have a small impact.\n\nSuch long sched_slice can delay significantly the release of resources\nas the tasks can wait hundreds of ms before the next running slot just\nbecause of idle tasks queued on the rq.\n\nCap the ideal_runtime to sysctl_sched_latency to make sure that tasks will\nregularly make progress and will not be significantly impacted by\nidle/background tasks queued on the rq.\n\nBug: 326576184\nBug: 319514485\nBug: 315185352\nBug: 269111781\nChange-Id: I27f956ee275d17ef708d8d27dc082c66ed5a5275\nSigned-off-by: Vincent Guittot \u003cvincent.guittot@linaro.org\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@kernel.org\u003e\nTested-by: Dietmar Eggemann \u003cdietmar.eggemann@arm.com\u003e\nLink: https://lore.kernel.org/r/20230113133613.257342-1-vincent.guittot@linaro.org\n(cherry picked from commit 79ba1e607d68178db7d3fe4f6a4aa38f06805e7b)\nSigned-off-by: Qais Yousef \u003cqyousef@google.com\u003e\n(cherry picked from commit e32aeb03b9c6b1b625ff0248b6d5670aa74e783b)\n(cherry picked from commit 9520a47b21457e4411c58e364f71c7428f9a3896)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "35a436a8df5d71f013e8bcdd4a9dcb64b7a4e856",
      "old_mode": 33188,
      "old_path": "kernel/sched/fair.c",
      "new_id": "1ab5df1b1a72eebe80ebf6a5a67f880e1801e58b",
      "new_mode": 33188,
      "new_path": "kernel/sched/fair.c"
    }
  ]
}
