Linux系统优化笔记
1,来编译程序时,或许文件字节数是最大的,但是往往其运行速度也是最快的。 根据不同的机器架构,你可以把下面的语句加入 /etc/profile 。
i686:
export CFLAGS=-O9 -funroll-loops -ffast-math
-malign-double -mcpu=pentiumpro -march=pentiumpro
-fomit-frame-pointer -fno-exceptions
i586:
export CFLAGS=-O3 -march=pentium -mcpu=pentium
-ffast-math -funroll-loops -fomit-frame-pointer
-fforce-mem -fforce-addr -malign-double -fno-exceptions
i486:
FLAGS=-O3 -funroll-all-loops -malign-double
-mcpu=i486 -march=i486 -fomit-frame-pointer
-fno-exceptions
2,LINUX防止DOS攻击
#echo 1 /prof/sys/net/ipv4/tcp_syncookies
3,同时加大syn_backlog,以保证用户的访问
#echo '2048' /proc/sys/net/ipv4/tcp_max_syn_backlo
i686:
export CFLAGS=-O9 -funroll-loops -ffast-math
-malign-double -mcpu=pentiumpro -march=pentiumpro
-fomit-frame-pointer -fno-exceptions
i586:
export CFLAGS=-O3 -march=pentium -mcpu=pentium
-ffast-math -funroll-loops -fomit-frame-pointer
-fforce-mem -fforce-addr -malign-double -fno-exceptions
i486:
FLAGS=-O3 -funroll-all-loops -malign-double
-mcpu=i486 -march=i486 -fomit-frame-pointer
-fno-exceptions
2,LINUX防止DOS攻击
#echo 1 /prof/sys/net/ipv4/tcp_syncookies
3,同时加大syn_backlog,以保证用户的访问
#echo '2048' /proc/sys/net/ipv4/tcp_max_syn_backlo
相关推荐
wangqd 2020-11-09
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20