linuxÄں˴úÂë——Ò³¿òµÄ»ØÊÕ(2.4.18)
дÕâƪblog²ÎÕÕÁËO'Reilly µÄ¡¶Understanding the Linux Kernel¡·£¬»òÕß˵ÊǴ󲿷ֲÎÕÕ£¬Êµ¼ÊÉÏÕâ±¾Êé¹ØÓÚÕâÕÂдµÃȷʵºÜ¾µä¡£¾¡¹ÜÈç´Ë£¬ÔÚ¿´´úÂëµÄ¹ý³ÌÖÐÎÒÈÔÈ»Óöµ½Á˺ܶàÀ§»ó£¬ÒÔÖÁÓÚ¿´¹ýÁ½±éÖ®ºóÄÔ×ÓÀﻹÊÇһ͎¬ºý¡£ËùÒÔ»¹µÃ¸Ðл´åÒ¯°ïÎÒÀíÇå³þÁË˼·£¬²»¸Òµ¡Âý£¬¸Ï½ôдÏÂÀ´·ÀÖ¹Íü¼Ç¡£(ÒÔÏ´úÂë¼°½âÊ;ùÒÔ2.4.18°æ±¾Îª×¼£©
¹ÜÀíÒ³¿ò»ØÊÕµÄÖ÷Òªº¯ÊýÊÇtry_to_free_pages£¬º¯ÊýÔÐÍÊÇint try_to_free_pages(zone_t *classzone, unsigned int gfp_mask, unsigned int order)¡£Õâ¸öº¯ÊýµÄ²ÎÊý£ºclasszone--Òª»ØÊÕµÄÒ³¿òËùÔڵĹÜÀíÇø£»gfp_mask--±êÖ¾£¬Õâ¸ö²»ºÃ½âÊÍ£¬½¨Òé´ó¼Ò¿´´úÂ룻order--ÊÍ·ÅÒ»¸öÒ³¿òËùÒÔÊÇ0¡£¿´Õâ¸öº¯Êý֮ǰÐèÒªÁ˽âÒ»ÏÂLRUÁ´±í£¬»î¶¯Á´±íÓë·Ç»î¶¯Á´±íÊÇÒ³¿ò»ØÊյĺËÐÄÊý¾Ý½á¹¹£¬ÇëÏȲ¹È«Õⲿ·ÖµÄ֪ʶ£¡ÏÂÃæÒÔ´úÂë·ÖÎö£º
int try_to_free_pages(zone_t *classzone, unsigned int gfp_mask, unsigned int order)
{
int priority = DEF_PRIORITY; //ĬÈÏÓÅÏȼ¶
int nr_pages = SWAP_CLUSTER_MAX; //ÊͷŵÄÒ³¿òÊý
gfp_mask = pf_gfp_mask(gfp_mask); //¼ì²é±ê־λ
do {
nr_pages = shrink_caches(classzone, priority, gfp_mask, nr_pages); //Ñ»·µ÷ÓÃshrink_cachesÊÍ·ÅÒ³¿ò¡£Ã¿´ÎÑ»·ÓÅÏȼ¶ÊýÖµµÝ¼õ£¨ÓÅÏȼ¶¸ü¸ß
if (nr_pages <= 0)
&n
Ïà¹ØÎĵµ£º
Ç¿ÖÆͨ¹ý¶ÑÕ»´«µÝ²ÎÊý£¬²»ÒªÓüĴæÆ÷´«µÝ
×Ðϸ¿´Ò»ÏÂÓÐasmlinkageµÄµØ·½Í¨³£ÊÇϵͳµ÷Óõĺ¯Êý£¬ÒòΪÔÚϵͳµ÷ÓÃÖУ¬¼Ä´æÆ÷´ÓÓû§¿Õ¼ä´«¹ýÀ´ºóSAVE_ALLѹÈë¶ÑÕ»£¬½Ó×ŵ÷ÓÃÏàÓ¦µÄϵͳµ÷Óú¯Êý£¬ÕâÑùϵͳµ÷Óú¯ÊýÒ»¶¨Òª±£Ö¤ÊÇͨ¹ý¶ÑÕ»´«µÝ²ÎÊýµÄ
תÌùÒ»¶Î£º
The asmlinkage tag is one other thing that we should observe a ......
ÉîÈë·ÖÎö Linux ÄÚºËÁ´±í
¼¶±ð£º ³õ¼¶
ÑîɳÖÞ (pubb@163.net)¹ú·À¿Æ¼¼´óѧ¼ÆËã»úѧԺ
2004 Äê 8 ÔÂ 01 ÈÕ
±¾ÎÄÏêϸ·ÖÎöÁË 2.6.x ÄÚºËÖÐÁ´±í½á¹¹µÄʵÏÖ£¬²¢Í¨¹ýʵÀý¶Ôÿ¸öÁ´±í²Ù×÷½Ó¿Ú½øÐÐÁËÏ꾡µÄ½²½â¡£
Ò»¡¢ Á´±íÊý¾Ý½á¹¹¼ò½é
Á´±íÊÇÒ»ÖÖ³£ÓõÄ×éÖ¯ÓÐÐòÊý¾ÝµÄÊý¾Ý½á¹¹£¬Ëüͨ¹ýÖ¸Õ뽫һϵÁÐÊý¾Ý½Úµ ......
tables=fuckme query=where fucktime > trunc(sysdate)-1 direct=y
on linux query=\"where fucktime \> trunc\(sysdate\)-1\" ҪתÒå·û һǰһºó Öм䶼Ҫ ·ûºÅλǰ
direct=N ¿Éϧ²»Ö§³ÖÖ±½Ó·¾¶µ¼³ö ......
1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedHat AS4½² ......
NRPE×ܹ²ÓÉÁ½²¿·Ö×é³É:
(1).check_nrpe²å¼þ,ÔËÐÐÔÚ¼à¿ØÖ÷»úÉÏ¡£
(2).NRPE daemon,ÔËÐÐÔÚÔ¶³ÌµÄlinuxÖ÷»úÉÏ(ͨ³£¾ÍÊDZ»¼à¿Ø»ú)
µ±NagiosÐèÒª¼à¿Øij¸öÔ¶³ÌlinuxÖ÷»úµÄ·þÎñ»òÕß×ÊÔ´Çé¿öʱ£º
1).nagios»áÔËÐÐcheck_nrpe²å¼þ,ÎÒÃÇÒªÔÚnagiosÅäÖÃÎļþÖиæËßËüÒª¼ì²éʲô.
2).check_nrpe²å¼þ»áͨ¹ýSSLÁ¬½Óµ½Ô¶³ÌµÄNRPE d ......