mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
5
docs/ideas-filesystems.txt
Normal file
5
docs/ideas-filesystems.txt
Normal 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
26
docs/kernel-ideas.txt
Normal 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
43
docs/nginx-ideas.txt
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user