Skip to content

Split iowait into two states

Jens Axboe linux-pm lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 22 repliesIn review
  2. v54 patches 2 repliesSuperseded
  3. v44 patches 8 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches9 repliesSuperseded
v22 patches3 repliesSuperseded
v11 patch2 repliesSuperseded

Changes in v6 from the cover letter

- Make nr_iowait atomic_long_t unconditionally, as 32-bit archs have it as a 32-bit type. This avoids the ifdef stuff in sched/core.c. Thanks to Zhang Qiao for that suggestion.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sched/core: add helpers for iowait handlingkernel/sched/core.c kernel/sched/cputime.c kernel/sched/sched.h+22 -60 replies
2/4sched/core: change rq->nr_iowait type to atomic_long_tkernel/sched/core.c kernel/sched/sched.h+5 -51 reply
3/4sched/core: have io_schedule_prepare() return a longblock/blk-cgroup.c include/linux/sched.h kernel/locking/mutex.c +2 more+10 -101 reply
4/4sched/core: split iowait state into two statesarch/s390/appldata/appldata_base.c arch/s390/appldata/appldata_os.c fs/proc/stat.c +5 more+51 -181 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchZhang Qiao
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCHSET v6 0/4] Split iowait into two states

Hi,

This is v6 of the patchset where the current in_iowait state is split into two parts:

1) The "task is sleeping waiting on IO", and would like cpufreq goodness in terms of sleep and wakeup latencies.
2) The above, and also accounted as such in the iowait stats.

The current ->in_iowait covers both, this series splits it into two types of state so that each can be controlled seperately.

Patches 1..3 are prep patches, changing the type of task_struct->nr_iowait and adding helpers to manipulate the iowait counts.

Patch 4 does the actual splitting.

This has been sitting for a while, would be nice to get this queued up for 6.12. Comments welcome!

 arch/s390/appldata/appldata_base.c |  2 +-
 arch/s390/appldata/appldata_os.c   |  2 +-
 block/blk-cgroup.c                 |  2 +-
 fs/proc/stat.c                     |  2 +-
 include/linux/sched.h              | 10 ++++-
 include/linux/sched/stat.h         |  5 ++-
 kernel/locking/mutex.c             |  4 +-
 kernel/locking/rtmutex_api.c       |  4 +-
 kernel/sched/core.c                | 68 ++++++++++++++++++++++++------
 kernel/sched/cputime.c             |  3 +-
 kernel/sched/sched.h               |  5 ++-
 kernel/time/tick-sched.c           |  6 +--
 12 files changed, 81 insertions(+), 32 deletions(-)

Since v5:
- Make nr_iowait atomic_long_t unconditionally, as 32-bit archs have it as a 32-bit type. This avoids the ifdef stuff in sched/core.c. Thanks to Zhang Qiao for that suggestion.

Signature · 1 line
Jens Axboe