change IO scheduler to BFQ
even on NVMe's
This commit is contained in:
parent
98da055311
commit
61fa301aff
2 changed files with 8 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"
|
||||||
|
|
||||||
FROM ghcr.io/andersrh/my-ostree-os-kernel-akmods:main-38 AS builder
|
FROM ghcr.io/andersrh/my-ostree-os-kernel-akmods:main-38 AS builder
|
||||||
|
|
||||||
|
ARG CACHEBUST=0
|
||||||
ARG IMAGE_NAME="${IMAGE_NAME}"
|
ARG IMAGE_NAME="${IMAGE_NAME}"
|
||||||
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
|
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
|
||||||
|
|
||||||
|
|
@ -39,6 +40,8 @@ RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-ge
|
||||||
|
|
||||||
# Copy config files
|
# Copy config files
|
||||||
COPY etc /etc
|
COPY etc /etc
|
||||||
|
# Copy /usr
|
||||||
|
COPY usr /usr
|
||||||
|
|
||||||
# Clear cache, /var and /tmp and commit ostree
|
# Clear cache, /var and /tmp and commit ostree
|
||||||
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||||
|
|
|
||||||
5
usr/lib/udev/rules.d/60-block-scheduler.rules
Normal file
5
usr/lib/udev/rules.d/60-block-scheduler.rules
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# do not edit this file, it will be overwritten on update
|
||||||
|
|
||||||
|
ACTION=="add", SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", \
|
||||||
|
KERNEL=="mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|sd*[!0-9]|sr*|nvme[0-9]*", \
|
||||||
|
ATTR{queue/scheduler}="bfq"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue