Portál AbcLinuxu, 7. června 2024 03:19
echo 0 > /proc/sys/vm/dirty_background_ratio echo 16554432 > /proc/sys/vm/dirty_background_bytes echo 33554432 > /proc/sys/vm/dirty_bytesjestli to je dobře nebo ne nevím, je to bez záruky, ale funguje mi to...
#!/bin/bash ################################################################################################################## # Why linux feels slow and how to fix it # #http://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that# ################################################################################################################## # # #Original swappiness is 60 # #echo 60 >/proc/sys/vm/swappiness # echo 10 >/proc/sys/vm/swappiness # # #Original vfs_cache_pressure is 100 # #echo 100 >/proc/sys/vm/vfs_cache_pressure # echo 10000 >/proc/sys/vm/vfs_cache_pressure # # ################################################### ################################################################################### #Bug 13347 - Large I/O operations result in slow performance and high iowait times# #https://bugzilla.kernel.org/show_bug.cgi?id=13347 # ################################################################################### # # #Here 1st and 2nd variants # #The second variant commented # #Only uncommment second lines and nothing # # # # every 3 sec look up for dirty status # # It for smooting writebacking, may be 100 will be better # echo 200 > /proc/sys/vm/dirty_writeback_centisecs # # # Only 100Kb data of dirty pages and writeback... # # It very important option :) # echo 102400 > /proc/sys/vm/dirty_background_bytes # # # second variant - uncomment it - but you will have frozens but rarely # # echo 225280000 > /proc/sys/vm/dirty_background_bytes # # # # my a frozens happen at time of expiring of dirty pages (default 30 sec) # # i increased it (it doesn't mean for 1st variant - it will never happen) # echo 864000 > /proc/sys/vm/dirty_expire_centisecs # # # I increased limit for non background writebacking (it never happens i think) # echo 10 > /proc/sys/vm/dirty_ratio ################################################################################### ################################################################################### # Debian GNU / Linux kernel tuning for low latency on small files # #http://www.techforce.com.br/news/layout/set/print/content/view/full/13614 # ################################################################################### # # # # # # ###################################################################################
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.