Why BlockIOWriteBandwidth is not limiting the write bandwidth for a specified device in Red Hat Enterprise Linux 7 ?
Issue
- Why
BlockIOWriteBandwidthis not limiting the write bandwidth for a specified device in Red Hat Enterprise Linux 7 ? - BlockIOWriteBandwidth restriction set to 5 MB/s but iotop shows 100 MB/s instead of 5 MB/s. Similar behavior is also noticed while starting the dd using systemd-run and then setting the property using
systemctl set-propertycommand. Sample systemd unit configuration file
/etc/systemd/system/mybackup.service
[Unit]
Description=mybackup
[Service]
CPUShares=10
BlockIOWeight=10
BlockIOAccounting=1
BlockIOWriteBandwidth=/dev/mapper/rhel-root 5M
ExecStart=/usr/bin/dd if=/dev/zero of=/backupfile bs=1024 count=10000000
Restart=always
[Install]
WantedBy=multi-user.target
Environment
- Red Hat Enterprise Linux 7
- Systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.