diff --git a/Dockerfile b/Dockerfile index 354ff98..35cb35f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -122,6 +122,7 @@ FROM builder2 AS builder3 # Install VirtualBox RUN rpm-ostree install VirtualBox +COPY etc etc # Clear cache, /var and /tmp and commit ostree RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \ diff --git a/etc/sysctl.d/10-swappiness.conf b/etc/sysctl.d/10-swappiness.conf new file mode 100644 index 0000000..c5a6f04 --- /dev/null +++ b/etc/sysctl.d/10-swappiness.conf @@ -0,0 +1,3 @@ +#vm.swappiness=0 +#firefox crash fix test +vm.swappiness=1 diff --git a/etc/sysctl.d/20-cache_pressure.conf b/etc/sysctl.d/20-cache_pressure.conf new file mode 100644 index 0000000..4d339de --- /dev/null +++ b/etc/sysctl.d/20-cache_pressure.conf @@ -0,0 +1,3 @@ +vm.vfs_cache_pressure=50 + +vm.min_free_kbytes=212000