Neće na par meseci. Obrišem fajl pa upload.
Xubuntu Core je srce sistema.
Pa jedno 30 tvikova. Uglavnom je gore opisano. I ovde po temama.
Jedino je trebalo neko da sedne i uradi.
A config fajlove imaš u distribuciji pa ako te ne mrzi možeš ti da okačiš kod sebe na github.
Mogu i ja ovde u temi.
99-cpu-dma-latency.rules
DEVPATH=="/devices/virtual/misc/cpu_dma_latency", OWNER="root", GROUP="audio", MODE="0660"
sudo cp 99-cpu-dma-latency.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
udevadm info -a -n /dev/cpu_dma_latency
audio.conf
@audio - rtprio 99
@audio - nice -15
@audio - memlock unlimited
@audio - nofile 8192
sudo cp audio.conf /etc/security/limits.d/
95-pipewire.conf
@pipewire - rtprio 95
@pipewire - nice -19
@pipewire - memlock 4194304
sudo cp 95-pipewire.conf i /etc/security/limits.d/
RTiRQ
wget http://ports.ubuntu.com/pool/universe/r/rtirq/rtirq-init_20150216-2.1_all.deb
sudo dpkg -i rtirq-init_20150216-2.1_all.deb
rtirq.conf
RTIRQ_NAME_LIST="snd usb i8042"
# Highest priority.
RTIRQ_PRIO_HIGH=90
# Priority decrease step.
RTIRQ_PRIO_DECR=5
# Lowest priority.
RTIRQ_PRIO_LOW=51
# Whether to reset all IRQ threads to SCHED_OTHER.
RTIRQ_RESET_ALL=0
# On kernel configurations that support it,
# which services should be NOT threaded
# (space separated list).
RTIRQ_NON_THREADED="rtc snd"
sudo systemctl enable rtirq.service
RTkit
/lib/systemd/system/rtkit-daemon.service
[Unit]
Description=RealtimeKit Scheduling Policy Service
[Service]
EnvironmentFile=/etc/dbus-1/system.d/rtkit
ExecStart=/usr/libexec/rtkit-daemon $RTKIT_ARGS
Type=dbus
BusName=org.freedesktop.RealtimeKit1
NotifyAccess=main
CapabilityBoundingSet=CAP_SYS_NICE CAP_DAC_READ_SEARCH CAP_SYS_CHROOT CAP_SETGID CAP_SETUID
PrivateNetwork=yes
[Install]
WantedBy=graphical.target
/etc/dbus-1/system.d/rtkit
RTKIT_ARGS="--scheduling-policy=FIFO
--our-realtime-priority=89
--max-realtime-priority=88
--min-nice-level=-19
--rttime-usec-max=2000000
--users-max=100
--processes-per-user-max=1000
--threads-per-user-max=10000
--actions-burst-sec=10
--actions-per-burst-max=1000
--canary-cheep-msec=30000
--canary-watchdog-msec=60000
sudo systemctl enable rtkit-daemon.service
skrinsejveri
xset -dpms
xset s off
setterm -powersave off -blank 0
/etc/sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
###################################################################
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
net.ipv4.conf.all.log_martians = 1
#
#
# Enable a fix for RFC1337 - time-wait assassination hazards in TCP
net.ipv4.tcp_rfc1337 = 1
# Use BBR TCP congestion control and set tcp_notsent_lowat to 16384 to ensure HTTP/2 prioritization works optimally
# Do a 'modprobe tcp_bbr' first (kernel > 4.9)
# Fall-back to htcp if bbr is unavailable (older kernels)
net.ipv4.tcp_fastopen = 3
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control = htcp
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_notsent_lowat = 16384
# Turn on the tcp_window_scaling
net.ipv4.tcp_window_scaling = 1
#
#
net.core.wmem_max = 16777216
net.core.wmem_default = 131072
net.core.rmem_max = 16777216
net.core.rmem_default = 131072
net.ipv4.tcp_rmem = 4096 131072 16777216
net.ipv4.tcp_wmem = 4096 131072 16777216
net.ipv4.tcp_mem = 4096 131072 16777216
net.core.netdev_max_backlog = 30000
net.ipv4.ipfrag_high_threshold = 8388608
net.ipv4.tcp_slow_start_after_idle=0
###################################################################
# Improve writing to external media like USB memory sticks
vm.dirty_bytes=335544320
vm.dirty_background_bytes=167772160
# Audio Magic
vm.swappiness = 10
vm.vfs_cache_pressure=50
vm.dirty_writeback_centisecs = 1500
fs.inotify.max_user_watches = 524288
fs.inotify.max_queued_events = 65536
###################################################################
# Magic system request Key
# 0=disable, 1=enable all, >1 bitmask of sysrq functions
# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
# for what other values do
#kernel.sysrq=438
itd...itd....do sutra ....