add swappiness and cache pressure
This commit is contained in:
parent
ec76b5ac7a
commit
784669f751
3 changed files with 7 additions and 0 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
3
etc/sysctl.d/10-swappiness.conf
Normal file
3
etc/sysctl.d/10-swappiness.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#vm.swappiness=0
|
||||
#firefox crash fix test
|
||||
vm.swappiness=1
|
||||
3
etc/sysctl.d/20-cache_pressure.conf
Normal file
3
etc/sysctl.d/20-cache_pressure.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
vm.vfs_cache_pressure=50
|
||||
|
||||
vm.min_free_kbytes=212000
|
||||
Loading…
Add table
Add a link
Reference in a new issue