-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminimizediskaccess.txt
43 lines (30 loc) · 1.19 KB
/
minimizediskaccess.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# to reduce diskaccess .
systemctl stop rsyslog
systemctl disable rsyslog
systemctl stop systemd-timesyncd
systemctl disable systemd-timesyncd
systemctl stop dphys-swapfile # no swap on disk.
systemctl disable dphys-swapfile
apt install chrony
# Please use chrony for NTP to nodiskaccess.
# Please use systemd-journald with volatile,edit /etc/systemd/systemd-journald.conf
# Please use tmpfs on /tmp,edit /etc/fstab.
# According to ...
# https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_a_USB_key#Minimizing_disk_access
# https://wiki.archlinux.org/index.php/Systemd-timesyncd , read leading text.
# https://wiki.archlinux.org/index.php/Tmpfs
1 More !
How about using zram ? :P
apt install zram-tools
edit /etc/default/zramswap
add swappiness=100 on /etc/sysctl.conf
# you can add compressed memory by 75% physical memory.
# https://wiki.debian.org/ZRam
at last ,reboot!
# In addition,If you use raspbian,to stop polling disk remove wifi manager from desktop bar.
1 More!
Browser Profile in tempfs
https://wiki.archlinux.org/index.php/Firefox/Profile_on_RAM#Place_profile_in_RAM_manually
or use this
https://github.com/StuartIanNaylor/zram-swap-config
very useful tool for Debian descend.