Skip to content

[Request] Add blkio/cgroup BFQ tuning flags to container run/create #1512

Open

Description

@chrisgeo

Feature request

Please add block I/O tuning flags to container run and container create for cgroup/BFQ-style workload shaping.

Compose compatibility

Docker Compose exposes this through service.blkio_config. Container-Compose can parse the field, but it must currently warn-skip it because apple/container has no equivalent runtime flag surface.

Requested CLI shape

  • --blkio-weight <weight>
  • --blkio-weight-device <path>:<weight>
  • --device-read-bps <path>:<rate>
  • --device-write-bps <path>:<rate>
  • --device-read-iops <path>:<rate>
  • --device-write-iops <path>:<rate>
  • matching support on container create

The exact implementation can be constrained to what the Linux guest and host virtualization stack can support, but a first-class CLI/API surface would let compose translators pass through supported block-I/O constraints instead of silently dropping them.

Activity

  1. changed the title [-]Add blkio/cgroup BFQ tuning flags to container run/create[/-] [+][Request] Add blkio/cgroup BFQ tuning flags to container run/create[/+] on May 7, 2026
  2. jglogan commented on May 18, 2026

    @jglogan
    Contributor

    @dcantah Would appreciate your input on the UX here. My fear here is that we're hanging a lot of very esoteric first-class options here which are going to clutter the help display. An key=value option list like what gets done for filesystem creation, filesystem mounting, DNS options, with documentation of options instead of command line help etc. feels like the better way to go.

  3. chrisgeo commented on May 23, 2026

    @chrisgeo
    ContributorAuthor

    @jglogan @dcantah I was mulling on this a bit. Would this option make more sense?

    Using a repeated grouped option, following the existing key/value-style patterns:

    --blkio weight=500
    --blkio device=/dev/sda,weight=700
    --blkio device=/dev/sda,read-bps=1048576,write-bps=1048576
    --blkio device=/dev/sda,read-iops=1000,write-iops=1000

    It would keep the top-level surface clean, while still giving the ability to map fields in a plugin like container-compose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions