This commit is contained in:
Zsolt Ero
2023-12-20 04:29:25 +01:00
parent d8f96bf4e9
commit b467f0b33c
6 changed files with 65 additions and 85 deletions

View File

@@ -0,0 +1,5 @@
ext4
Reduce the inode size: 256 -> -I 128
Reduce the inode ratio: The inode ratio is the number of blocks per inode. You can increase the inode ratio to reduce the number of inodes created. This can be done with the -i option when creating the filesystem. For example, -i 8192 will create one inode every 8192 blocks.

26
docs/kernel-ideas.txt Normal file
View File

@@ -0,0 +1,26 @@
# not using
fs.file-max # not needed, recent Ubuntu has it on high by default
# not tested
tcp_fin_timeout
TCP max buffer size
net.core.netdev_max_backlog = 262144
net.core.rmem_max = 16777216
net.core.somaxconn = 262144
net.core.wmem_max = 16777216
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_max_tw_buckets = 6000000
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_wmem = 4096 65536 16777216

43
docs/nginx-ideas.txt Normal file
View File

@@ -0,0 +1,43 @@
# ideas https://calomel.org/nginx.html
# https://www.nginx.com/blog/tuning-nginx/
# https://github.com/denji/nginx-tuning
# not using
sendfile_max_chunk 512k; # no need for small files
keepalive_requests # default seems reasonable
keepalive_timeout # default seems reasonable
gzip_vary on; # no need probably
gzip_min_length 10240; # only one file
gzip_proxied any; # no proxying
types_hash_max_size 2048; # default should be good for the default set
# not tested
client_body_buffer_size 128k;
client_max_body_size 128k;
client_header_buffer_size 1k;
large_client_header_buffers 2 1k;
# SSL optimizations
SSL Session Cache
SSL OCSP Stapling
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;
client_header_timeout 12; # default is 60
location / {
try_files $uri =404;
}