напишите оптимизирванный system.conf для opensuse · The Chat Archivegpt-3.5-turbo-0125· openai
WildChat-4.8M напишите оптимизирванный system.conf для opensuse
Download ▾
напишите оптимизирванный system.conf для opensuse
Assistant
OpenSUSE System Configuration for Optimization
Increase the maximum number of file descriptors
fs.file-max = 100000
Increase the maximum number of processes
kernel.pid_max = 65536
Optimize TCP/IP settings
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_fin_timeout = 30
net.core.netdev_max_backlog = 5000
Increase the maximum amount of memory that may be locked into RAM
vm.max_map_count = 262144
Enable Transparent Huge Pages
vm.nr_hugepages = 512
Increase the maximum number of open files for the entire system
а как же #DefaultTimeoutStartSec=5s
#DefaultTimeoutStopSec=10s
Assistant
OpenSUSE System Configuration for Optimization
Increase the maximum number of file descriptors
fs.file-max = 100000
Increase the maximum number of processes
kernel.pid_max = 65536
Optimize TCP/IP settings
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_fin_timeout = 30
net.core.netdev_max_backlog = 5000
Increase the maximum amount of memory that may be locked into RAM
vm.max_map_count = 262144
Enable Transparent Huge Pages
vm.nr_hugepages = 512
и /etc/security/limits.conf
Assistant
/etc/security/limits.conf
Limits configuration file for the OpenSUSE system
Where:
can be:
- a username
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Disable IPv6 for better performance
net.ipv6.conf.all.disable_ipv6 = 1
Set maximum number of allowed open files by a user
-
soft nofile 65535
-
hard nofile 65535
Increase the amount of shared memory available
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
Increase the maximum TCP send and receive buffer sizes
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
Disable IPv4 forwarding
Enable and configure kernel panics and logging
kernel.panic_on_oops = 1
kernel.panic = 5
kernel.panic_on_unrecovered_nmi = 1
kernel.panic_on_stackoverflow = 1
Increase the maximum number of shared memory segments
kernel.shmall = 1073741824
Enable syncookies to protect against SYN flood attacks
net.ipv4.tcp_syncookies = 1
Run the following command to apply the changes immediately:
sysctl -p
Increase the maximum number of open files for the entire system
-
- memlock unlimited
-
- nofile 65535
Disable IPv6 for better performance
net.ipv6.conf.all.disable_ipv6 = 1
Set maximum number of allowed open files by a user
-
soft nofile 65535
-
hard nofile 65535
Increase the amount of shared memory available
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
Increase the maximum TCP send and receive buffer sizes
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
Disable IPv4 forwarding
Enable and configure kernel panics and logging
kernel.panic_on_oops = 1
kernel.panic = 5
kernel.panic_on_unrecovered_nmi = 1
kernel.panic_on_stackoverflow = 1
Increase the maximum number of shared memory segments
kernel.shmall = 1073741824
Enable syncookies to protect against SYN flood attacks
net.ipv4.tcp_syncookies = 1
DefaultTimeoutStartSec and DefaultTimeoutStopSec settings
DefaultTimeoutStartSec=5s
DefaultTimeoutStopSec=10s
Run the following command to apply the changes immediately:
sysctl -p
- a groupname, with @groupname
- a wildcard '*', for all users
- a wildcard '+', for all users except root
- a wildcard '-', for all users except root and those specified below
can have the following values:
- core - limits the core file size (KB)
- data - max data size (KB)
- fsize - maximum filesize (KB)
- memlock - max locked-in-memory address space (KB)
- nofile - max number of open file descriptors
- rss - max resident set size (KB)
- stack - max stack size (KB)
- nproc - max number of processes
- as - address space limit (KB)
- locks - max number of file locks
- sigpending - max number of pending signals to allow
- msgqueue - max memory used by POSIX message queues (bytes)
- nice - max nice priority allowed to raise to
- rtprio - max real-time priority
- chroot - change root and other chrooting
can be one of the item names above or the hard or soft keyword (no
item)
Ensure that root is not limited
root soft nofile 65535
root hard nofile 65535
Limit the number of open files for regular users
-
soft nofile 65535
-
hard nofile 65535
Allow core dumps for all users
-
soft core unlimited
-
hard core unlimited
Limit the memory locked into RAM for all users
-
hard memlock unlimited
-
soft memlock unlimited
Limit the maximum number of processes for regular users
-
soft nproc 65535
-
hard nproc 65535
Ensure that password authentication is required for all users
You can specify different limits for specific users or groups as needed
End of /etc/security/limits.conf
Make sure to restart the system or apply the changes by running 'sysctl -p' command after editing the limits.conf file.