Memory and zramMemori dan zram
Swap lives in compressed memory (zram) instead of on the disk: /dev/zram0, as large as the memory but at most 8 GB, compressed with zstd, with priority 100. The settings are in /usr/lib/systemd/zram-generator.conf. Check it with:
Swap berada dalam memori termampat (zram) dan bukan pada cakera: /dev/zram0, sebesar memori tetapi paling banyak 8 GB, dimampatkan dengan zstd, dengan keutamaan 100. Tetapannya ada dalam /usr/lib/systemd/zram-generator.conf. Semak dengan:
zramctl
swapon --showKernel settingsTetapan kernel
Set in /usr/lib/sysctl.d/70-choutes.conf:
Ditetapkan dalam /usr/lib/sysctl.d/70-choutes.conf:
| SettingTetapan | ValueNilai | WhySebab |
|---|---|---|
vm.swappinessvm.swappiness | 100100 | Swapping to zram is cheap, so it is preferred over dropping file caches.Swap ke zram adalah murah, jadi ia diutamakan berbanding membuang cache fail. |
vm.page-clustervm.page-cluster | 00 | zram reads one page at a time fastest.zram paling pantas membaca satu halaman pada satu masa. |
vm.vfs_cache_pressurevm.vfs_cache_pressure | 5050 | Keeps the lists of files and folders in memory longer.Menyimpan senarai fail dan folder dalam memori lebih lama. |
vm.max_map_countvm.max_map_count | 21474836422147483642 | Games that map many memory areas, often through Proton, need a high limit.Permainan yang memetakan banyak kawasan memori, selalunya melalui Proton, memerlukan had yang tinggi. |
vm.dirty_bytes, vm.dirty_background_bytesvm.dirty_bytes, vm.dirty_background_bytes | 256 MB, 64 MB256 MB, 64 MB | Writes in smaller batches, so large copies do not stall the desktop.Menulis dalam kelompok lebih kecil, supaya salinan besar tidak menyekat desktop. |
kernel.nmi_watchdogkernel.nmi_watchdog | 00 | No periodic wake-up of every processor core; only needed for kernel debugging.Tiada bangun berkala setiap teras pemproses; hanya diperlukan untuk penyahpepijatan kernel. |
kernel.split_lock_mitigatekernel.split_lock_mitigate | 00 | Programs that cause split locks, for example some Windows games, are not slowed down.Program yang menyebabkan split lock, contohnya sesetengah permainan Windows, tidak diperlahankan. |
DisksCakera
- I/O scheduler by disk type: none for NVMe SSDs, mq-deadline for SATA SSDs and memory cards, BFQ for hard disks.Penjadual I/O mengikut jenis cakera: none untuk SSD NVMe, mq-deadline untuk SSD SATA dan kad memori, BFQ untuk cakera keras.
- Btrfs with transparent zstd compression (level 1) and noatime: less writing and often faster reading.Btrfs dengan pemampatan zstd telus (tahap 1) dan noatime: kurang penulisan dan selalunya bacaan lebih pantas.
- A weekly TRIM (fstrim.timer) keeps SSDs fast.TRIM mingguan (fstrim.timer) memastikan SSD kekal pantas.
For gamesUntuk permainan
- The ntsync kernel module is loaded at every start, and
/dev/ntsynccan be used by your account, for Wine and Proton.Modul kernel ntsync dimuatkan pada setiap permulaan, dan/dev/ntsyncboleh digunakan oleh akaun anda, untuk Wine dan Proton. - GameMode raises the processor speed while a game runs; your account is in the gamemode group.GameMode meningkatkan kelajuan pemproses semasa permainan berjalan; akaun anda berada dalam kumpulan gamemode.
A clean startPermulaan yang bersih
The boot menu is hidden (it is shown when another system is installed), the kernel starts quietly (quiet splash loglevel=3), and the boot splash covers the start. File indexing (Baloo) is turned off, so it does not keep the disk busy in the background; turn it on in System Settings > Search > File Search to find files by their contents.
Menu but disembunyikan (ia ditunjukkan apabila sistem lain dipasang), kernel bermula dengan senyap (quiet splash loglevel=3), dan skrin but menutupi permulaan. Pengindeksan fail (Baloo) dimatikan, jadi ia tidak menyibukkan cakera di latar belakang; hidupkan dalam System Settings > Search > File Search untuk mencari fail mengikut kandungannya.
Good to knowPerlu tahu
Change these settings only when you know why: put your own values in /etc/sysctl.d/ or /etc/systemd/zram-generator.conf, which take precedence over the files of Choutes Project and are kept on updates.
Ubah tetapan ini hanya jika anda tahu sebabnya: letakkan nilai anda sendiri dalam /etc/sysctl.d/ atau /etc/systemd/zram-generator.conf, yang diutamakan berbanding fail Choutes Project dan dikekalkan semasa kemas kini.