Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÄÚºË: ÐÞ¸ÄTCP/IPµ÷ÓŲÎÊý

ÔÚTimesTenµÄÓÅ»¯ÖУ¬Èç¹ûÉæ¼°µ½ Replication »òÕßCache GroupµÄ»°£¬ÄÇôÕë¶Ô TCP/IPÏà¹ØµÄ²ÎÊýµÄÓÅ»¯¶ÔÐÔÄÜÊÇÓÐÒæµÄ¡£ÒòΪËüÃÇÁ©¶¼ÊÇͨ¹ýTCP/IPЭÒé½øÐÐÊý¾Ý½»»¥µÄ¡£ÔÚ°²×°Îĵµ(install.pdf)µÄ39Ò³ÓоßÌåµÄ˵Ã÷£º
 
For replication, TCP send and receive buffers should be increased to a minimum of 512KB. To make these changes, add the lines:
 
net.ipv4.tcp_rmem="4096 4194304 4194304"
net.ipv4.tcp_wmem="98304 4194304 4194304"
net.ipv4.tcp_mem="98304 4194304 4194304"
net.core.rmem_default=65535
net.core.wmem_default=65535
net.core.rmem_max=4194304
net.core.wmem_max=4194304
net.ipv4.tcp_window_scaling=1
 
to the /etc/sysctl.conf file and reboot.
 
 
For Cache Connect, TCP send and receive buffers should be increased to even greater values. To make these changes, add the lines:
 
net.ipv4.tcp_rmem="4096 4194304 4194304"
net.ipv4.tcp_wmem="98304 4194304 4194304"
net.ipv4.tcp_mem="98304 4194304 4194304"
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=4194304
net.ipv4.tcp_window_scaling=1
net.ipv4.ip_local_port_range="1024 65000"
 
to the /etc/sysctl.conf file and reboot.(·½·¨: ʹÓà /etc/sysctl.conf ÔÚϵͳÆô¶¯Ê±½«²ÎÊýÅäÖóÉÄúËùÉèÖõÄÖµ:)
 
ÁíÍâÒ»¸ö·½·¨:
 
°ÑÏÂÃæ´úÂëÔö¼Óµ½/etc/rc.localÎļþ, È»ºó±£´æÎļþ, ϵͳÖØÐÂÒýµ¼µÄʱºò»á×Ô¶¯ÐÞ¸ÄÏÂÃæµÄTCP/IP²ÎÊý:
 
echo 256960 > /proc/sys/net/core/rmem_default
echo 256960 > /proc/sys/net/core/rmem_max
echo 256960 > /proc/sys/net/core/wmem_default
echo 256960 > /proc/sys/net/core/wmem_max
 
echo 0 > /proc/sys/net/ipv4/tcp_timestamps
echo 1 > /proc/sys/net/ipv4/tcp_sack
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling
 
 ÏÂÃæÊÇһƪ²Î¿¼ÎÄÕ£¬¿ÉÄÜ»áÓÐЩ°ïÖú£¬ÒýÓÃÓÚIBM¡£
 
ʹÓà Sockets API£¬ÎÒÃÇ¿ÉÒÔ¿ª·¢¿Í»§»úºÍ·þÎñÆ÷Ó¦ÓóÌÐò£¬ËüÃÇ¿ÉÒÔÔÚ±¾µØÍøÂçÉϽøÐÐͨÐÅ£¬Ò²¿ÉÒÔͨ¹ý Internet ÔÚÈ«Çò·¶Î§ÄÚ½øÐÐͨÐÅ¡£ÓëÆäËû API Ò»Ñù£¬Äú¿ÉÒÔͨ¹ýһЩ·½·¨Ê¹Óà Sockets API£¬´Ó¶øÌá¸ß Socket µÄÐÔÄÜ£¬»


Ïà¹ØÎĵµ£º

LinuxÄÚºËÅäÖÃÎĵµ(make menuconfig)

Ò»¡¢ÒýÑÔ£º
    ±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾­Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾­Ñ飨Õâ¸ö»¹µ ......

LinuxÏÂCÓïÑÔʵÏÖ×Ö·û´®×Ó´®Ìæ»»


    ÓÉÓÚLINUX
CûÓжÔ×Ö·û´®×Ó´®Ìæ»»¹¦ÄÜ,ËùÒÔÎÒ×Ô¼ºÐ´ÁËÒ»¸östr_replaceº¯Êý,ʵÏÖÁË×Ö·û´®Ìæ»».
Çë´ó¼Ò²Î¿¼.
/*
 * FUNCTION     : str_replace
 *
ABSTRACT     : replace child string in a string.
 *
PARAMETER  &nbs ......

´´½¨¹ÒÔØlinux µÄ Èð¢ÂêµÏ˹¿É¡¢

dd if=/dev/zero of=/dev/rd/1 bs=1k count=9216
mke2fs -vm0 /dev/rd/1 9216
mount /dev/rd/1 /tmp/
umount -v /tmp
ÒÔÏÂÊÇתÔØ×Ôhttp://www.cublog.cn/u1/59740/showart_472783.html
linux RamDisk
ʹÓüò½é
1
¡¢
Ram Disk
½éÉÜ
1.1
 
ʲôÊÇRam Disk
 
Ram Disk
¾ÍÊǽ«ÄÚ´æÖеÄÒ»¿éÇøÓò× ......

ÁèÑô½ÌÓýǶÈëʽLinuxÊîÆÚÇ¿»¯°à

½ü¼¸Ä꣬ǶÈëʽÐÐҵѸÃÍ·¢Õ¹£¬Ç¶Èëʽ¼¼ÊõÎÞ´¦²»ÔÚ£¬´ÓËæÉíЯ´øµÄmp3¡¢ÊÖ»ú¡¢PDAµ½¼ÒÍ¥Ö®ÖеÄÖÇÄܵçÊÓ¡¢ÖÇÄܱùÏä¡¢»ú¶¥ºÐ£¬ÔÙµ½¹¤ÒµÉú²ú¡¢ÓéÀÖÖеĻúÆ÷ÈË£¬ÎÞ²»²ÉÓÃǶÈëʽ¼¼Êõ¡£Õâµ¼ÖÂǶÈëʽÈ˲ÅÐèÇóҲѸËÙÔö¼Ó£¬Ç¶Èëʽ¿ª·¢ÒѳÉΪµ±Ç°×îÈÈÃÅ×îÓз¢Õ¹Ç°Í¾µÄÐÐÒµÖ®Ò»¡£Ç¶Èëʽ¿ª·¢ÈËÔ±µÄн×ÊҲˮÕÇ´¬¸ß£¬ÔÚ±±¾©£¬Ç¶Èëʽ³õ¼¶¹¤³Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ