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

LinuxÄÚºËͬ²½

ÔÚLinuxÄÚºËÀïÄÚ´æ¿ÉÒÔºÍÓ²ÅÌ¿Õ¼äͨÓõģ¬µ±ÄÚ´æÀûÓúÜÉÙʱ£¬Êý¾Ý¿ÉÒÔ´æµ½ÄÚ´æÀ·´Ö®Ó²ÅÌ¿Õ¼ä¿ÉÒÔÓÃÀ´µ±ÄÚ´æÓõ«ÊÇÓиö¹²Í¬µãÊý¾Ý×ÜÊÇÏÖÔÚÄÚ´æÀï²Ù×÷ÔÙд»Øµ½Ó²ÅÌÉϵġ£ÓÉÓÚÕâ¸öÔ­Òò£¬¿é´æ´¢É豸±»µ±³Éºó±¸´æ´¢Æ÷¡£
LinuxÌṩÁËÁ½ÖÖ²Ù×÷µÄ·½·¨£º
1 ºǫ́½ø³Ì²»Í£µÄ¼ì²éϵͳÄÚ´æÖÜÆÚÐÔµÄд²Ù×÷
2 µ±ÏµÍ³ÓÐÌ«¶àµÄÔàÒ³ÐèÒªÇåÀíʱ½ø³Ì±»¼¤»î
ÄÚ´æºÍcacheÒÔ¼°ºó±¸´æ´¢Æ÷Ö®¼äµÄͬ²½±»·Ö³ÉÁ½ÖÖ
1 ¿ÉÒÔ¿ØÖÆÊý¾Ý½»»»Ê±µÄÓÅÏȼ¶²ßÁУ¬ÎÒÃÇ¿ÉÒÔÉèÖø÷ÖÖ²ÎÊý°ïÖúÄÚºËÈ·¶¨ºÎʱҪ½»»»Êý¾Ý
2 µ±ÔÚÄڴ棬cacheÒÔ¼°ºó±¸´æ´¢Æ÷Ö®¼äͬ²½Êý¾ÝʱÉæ¼°µ½Ó²¼þÏà¹ØµÄÌØÐÔ
´¥·¢Êý¾ÝµÄË¢ÐÂÓкܶà¸ö²»Í¬µÄʱ¼äºÍ²»Í¬µÄÔ­Òò
1 ÄÚºËÏß³ÌÖÜÆÚÐԵIJéÕÒÔÚÒ³Á´±íÖеÄÔàÒ³µ±ÓÐÔàÒ³²úÉúʱ¾ÍÌôѡһЩ½«ËûÃÇд»Ø£¬µ±ÏµÍ³Ð´²Ù×÷̫æʱ£¬¿ÉÒÔÉèÖÃϵͳÖÐÔàÒ³ÔàµÄ±ÈÂÊÔÙ²Ù×÷
2 Èç¹ûϵͳÖÐÓÐÌ«¶àµÄÔàÒ³£¬ÏµÍ³¾Í»áͬ²½µ½Ò»¸ö¿É½ÓÊܵÄˮƽ
3 µ±Ìض¨Ê¼þ·¢ÉúʱÄÚºËÒªÇóÊý¾Ýͬ²½£¬²»Èçumount
ÄÚºËÓнø³Ìpdflush Õë¶ÔÇ°ÃæÁ½¸öÔ­Òò£¬ÔÚµÚÈý¸öÔòÓкܶàÖÖ·½·¨¿É¹©Ñ¡Ôñ
Äں˿ÉÒÔÔںܶàµØ·½¿ªÊ¼Í¬²½£¬µ«ÊÇ×îÖÕ¶¼Êǵ÷ÓÃsync_sb_inodes£¬Õâ¸öº¯Êý¸ºÔðͬ²½ËùÓеÄÔàµÄinodeµ½superblock writeback_single_inodeÓÃ×÷ͬ²½Ã¿¸öinode
 
 
 
 
PdflushÓÉÁ½²¿·Ö×é³É£¬·Ö±ðÊÇÃèÊö½ø³ÌµÄÊý¾Ý½á¹¹ºÍÕâ·½ÃæµÄ²ßÂÔpdflushµÄ¶¨ÒåÈçÏ£º
struct pdflush_work {
struct task_struct *who; /* The thread */
void (*fn)(unsigned long); /* A callback function */
unsigned long arg0; /* An argument to the callback */
struct list_head list; /* On pdflush_list, when idle */
unsigned long when_i_went_to_sleep;
};
PdflushÊÇÒ»¸öÄÚºËỊ̈߳¬ËüÒ»µ©²úÉú¾Í½øÈë˯Ãß״̬һֱµÈµ½ÄÚºËÆäËûµÄ²¿·Öµ÷¶Èµ½ÎªÖ¹
 
pdflush_operationÊÇpdflushÏ̱߳»»½ÐÑʱµ÷Óõĺ¯Êý
wb_kupdateº¯Êý¸ºÔðflushingµÄ¼¼Êõ·½ÃæµÄ¾ßÌåʵÏÖ¡£ËüÊÇ»ùÓÚµØÖ·¸ÅÄîµÄ¹ØÓÚwb_kupdataÓÐÁ½¸öÖØÒªµÄÊý¾Ý½á¹¹vm_stat
atomic_long_t vm_stat[NR_VM_ZONE_STAT_ITEMS];
µÚ¶þ¸öÊÇstruct writeback_control
 
 
Sync_super Êdz¬¼¶¿éµÄͬ²½º¯Êý
 
Writeback_inodeÔòÊÇinodeµÄͬ²½º¯Êý
Linuxͬ²½inodeÀïµÄÊý¾ÝÔòÊǵ÷ÓÃ__writeback_single_inode
 
 
 
×èÈûÖ¸µ±¶Á»òд²Ù×÷ʱÄں˵ĿéÉ豸¶ÓÁг¬ÔØ£¬Õâʱ²»ÄÜÌá½»¸ü¶àµÄ¿éÉ豸¶ÁдÇëÇó£¬×îºÃµÄ°ì·¨Êǵ±Ò»Ð©¶ÁдÇëÇó±»´¦À


Ïà¹ØÎĵµ£º

Linux sockaddr_in¸³Öµ

serv_addr.sin_family=AF_INET;
serv_addr.sin_port=htons(SERVPORT);
inet_pton(AF_INET,"127.0.0.1",&serv_addr.sin_addr);
IPµØַת»»º¯ÊýÓУºinet_pton,inet_addr,inet_aton,inet_ntoa£¬inet_ntop
Ç°Èý¸öÊǽ«ASCII×Ö·ûת»»³ÉÍøÂç×Ö½ÚÐò£»
×îºóÁ½¸öÊǽ«ÍøÂç×Ö½ÚÐòת»»³ÉASCII×Ö·û¡£
ÏÖÔÚÍƼöʹÓÃine ......

LinuxÏÂskype¹úÄÚ¿¨²¦ºÅ·½·¨

TOM-Skype×Ô½ñÄê³õÍƳö¹úÄÚ¿¨³¤»°Í¨·þÎñ£¬ÒÔÆä¸üΪÓÅÖʺ͵ͼ۵ĹúÄÚ³¤Í¾µç»°·þÎñÊÕµ½SkypeÓû§µÄ»¶Ó­¡£µ«Òò³¤»°Í¨·þÎñ±ØÐëÓÃTOM-
SkypeÇÒ°æ±¾ÔÚ3.2ÒÔÉϲÅÄÜʹÓ㬶øTOM-Skype½öÓÐWindows°æ±¾£¬Ã»ÓÐMac¡¢Linux¡¢Windows
MobileµÈ°æ±¾£¬ËùÒԺܶ಻Ը°²×°TOM-SkypeµÄÓû§ÎÞ·¨Ê¹Ó󤻰ͨ·þÎñ¡£
ʵ¼Ê·ÇTOM-SkypeÒ²¿ÉÒÔʹÓùúÄ ......

ÔÚLinux²Ù×÷ϵͳÏÂÐÞ¸ÄIP¡¢DNSºÍ·ÓÉÅäÖÃ


ÔÚLinux²Ù×÷ϵͳÏÂÐÞ¸ÄIP¡¢DNSºÍ·ÓÉÅäÖÃ
ZDNetÈí¼þƵµÀ2007-10-06×÷ÕߣºÈüµÏÍø | ÈüµÏÍø
±¾ÎĹؼü´Ê£ºÂ·ÓÉ DNS IP Linux
 
ifconfig eth0 ÐÂIP
È»ºó±à¼­/etc/sysconfig/network-scrIPts/ifcfg-eth0£¬ÐÞ¸ÄIP
Ò»¡¢ÐÞ¸ÄIPµØÖ·
[aeolus@db1 network-scrIPts]$ vi ifcfg-eth0
DEVICE=eth0
ONBOO ......

Linux»·¾³½ø³Ì¼äͨÐÅ ¹²ÏíÄÚ´æ(ÉÏ£©

   ¹²ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ½½ø³ÌB¶Ô¹²ÏíÄÚ´æÖÐÊý¾ÝµÄ¸üУ¬·´Ö®ÒàÈ»¡£ÓÉÓÚ¶à¸ö½ø³Ì¹²Ïíͬһ¿éÄÚ´æÇøÓò£¬±ØÈ»ÐèҪijÖÖͬ²½»úÖÆ£¬»¥³âËøºÍÐźÅÁ¿¶¼¿ÉÒÔ¡£
 &nbs ......

linux¾²Ì¬¿âºÍ¹²Ïí¿â

1.ʲôÊÇ¿â
ÔÚwindowsƽ̨ºÍlinuxƽ̨϶¼´óÁ¿´æÔÚ×Å¿â¡£
±¾ÖÊÉÏÀ´Ëµ¿âÊÇÒ»ÖÖ¿ÉÖ´ÐдúÂëµÄ¶þ½øÖÆÐÎʽ£¬¿ÉÒÔ±»²Ù×÷ϵͳÔØÈëÄÚ´æÖ´ÐС£
ÓÉÓÚwindowsºÍlinuxµÄ±¾Öʲ»Í¬£¬Òò´Ë¶þÕß¿âµÄ¶þ½øÖÆÊDz»¼æÈݵġ£
±¾ÎĽöÏÞÓÚ½éÉÜlinuxϵĿ⡣
2.¿âµÄÖÖÀà
linuxϵĿâÓÐÁ½ÖÖ£º¾²Ì¬¿âºÍ¹²Ïí¿â£¨¶¯Ì¬¿â£©¡£
¶þÕߵIJ»Í¬µãÔÚÓÚ´úÂë±» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ