|
|
Log in / Subscribe / Register

Split iowait into two states

From:  Jens Axboe <axboe-AT-kernel.dk>
To:  linux-kernel-AT-vger.kernel.org
Subject:  [PATCHSET v4 0/4] Split iowait into two states
Date:  Tue, 16 Apr 2024 06:11:17 -0600
Message-ID:  <20240416121526.67022-1-axboe@kernel.dk>
Cc:  peterz-AT-infradead.org, tglx-AT-linutronix.de
Archive-link:  Article

Hi,

This is v3 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.

Comments welcome! Peter, CC'ing you since I did on the previous posting,
feel free to ignore.

Since v3:
- Move to an atomic_long_t and drop the locking required by encoding
  both the iowait and iowait_acct state in the same variable. Suggested
  by Thomas.

-- 
Jens Axboe




Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds