Tune swap on zram
This commit is contained in:
parent
a7180e39e7
commit
6ee03f0d27
5 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
FROM quay.io/fedora-ostree-desktops/kinoite:41
|
FROM quay.io/fedora-ostree-desktops/kinoite:41
|
||||||
|
|
||||||
|
# Apply configuration
|
||||||
|
COPY etc /etc
|
||||||
|
|
||||||
# Remove firefox
|
# Remove firefox
|
||||||
RUN rpm-ostree override remove firefox firefox-langpacks
|
RUN rpm-ostree override remove firefox firefox-langpacks
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
FROM quay.io/fedora-ostree-desktops/kinoite:41
|
FROM quay.io/fedora-ostree-desktops/kinoite:41
|
||||||
|
|
||||||
|
# Apply configuration
|
||||||
|
COPY etc /etc
|
||||||
|
|
||||||
# Remove firefox
|
# Remove firefox
|
||||||
RUN rpm-ostree override remove firefox firefox-langpacks
|
RUN rpm-ostree override remove firefox firefox-langpacks
|
||||||
|
|
||||||
|
|
1
etc/sysctl.d/20-high-swappines.conf
Normal file
1
etc/sysctl.d/20-high-swappines.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
vm.swappiness=180
|
1
etc/sysctl.d/20-no-page-cluster.conf
Normal file
1
etc/sysctl.d/20-no-page-cluster.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
vm.page-cluster=0
|
4
etc/systemd/zram-generator.conf
Normal file
4
etc/systemd/zram-generator.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# /etc/systemd/zram-generator.conf
|
||||||
|
[zram0]
|
||||||
|
zram-size = ram * 2
|
||||||
|
compression-algorithm=zstd
|
Loading…
Add table
Add a link
Reference in a new issue