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

LinuxÒ³¿ò¼¶ÄÚ´æ¹ÜÀí´¦Àíϸ½Ú

ŪÇå³þ»ï°éϵͳËã·¨µÄÔ­ÀíÒÔºó£¬ÎÒÃǾͿÉÒÔ¿ª¿ªÐÄÐĵش¦ÀíÒ³¿òÁË¡£
ÎÒÃÇ¿ÉÒÔͨ¹ý6¸öÉÔÓвî±ðµÄº¯ÊýºÍºêÇëÇóÒ³¿ò¡£Ò»°ãÇé¿öÏ£¬ËûÃǶ¼·µ»ØµÚÒ»¸öËù·ÖÅäÒ³µÄÏßÐÔµØÖ·£¬»òÕß·ÖÅäʧ°ÜÔò·µ»ØNULL¡£
alloc_pages(gfp_mask, order)£ºÓÃÕâ¸öº¯ÊýÇëÇó2order ¸öÁ¬ÐøµÄÒ³¿ò¡£Ëû·µ»ØµÚÒ»¸öËù·ÖÅäÒ³¿òÃèÊö·ûµÄµØÖ·£¬»òÕßÈç¹ûʧ°Ü£¬Ôò·µ»ØNULL¡£
alloc_page(gfp_mask)£ºÓÃÓÚ»ñµÃÒ»¸öµ¥¶ÀÒ³¿òµÄºê£¬ËüÆäʵֻÊÇalloc_pages(gfp_mask, 0)¡£Ëü·µ»ØËù·ÖÅäÒ³¿òÃèÊö·ûµÄµØÖ·£¬»òÕßÈç¹û·ÖÅäʧ°Ü£¬Ôò·µ»ØNULL¡£
_ _get_free_pages(gfp_mask, order)£º¸Ãº¯ÊýÀàËÆÓÚalloc_pages( )£¬Ö»²»¹ýËü·µ»ØµÚÒ»¸öËù·ÖÅäÒ³¶ÔÓ¦µÄÄÚ´æÏßÐÔµØÖ·¡£
_ _get_free_page(gfp_mask)£ºÓÃÓÚ»ñµÃÒ»¸öµ¥¶ÀÒ³¿òµÄºê£¬ËüÒ²Ö»ÊÇ__get_free_pages(gfp_mask, 0)
get_zeroed_page(gfp_mask)£ºº¯ÊýÓÃÀ´»ñÈ¡ÂúÊÇ0µÄÒ³Ã棬Ëüµ÷ÓÃalloc_pages(gfp_mask | __GFP_ZERO, 0)£¬È»ºó·µ»ØËù»ñÈ¡Ò³¿òµÄÏßÐÔµØÖ·¡£
_ _get_dma_pages(gfp_mask, order)£º¸Ãºê»ñÈ¡ÓÃÓÚDMAµÄÒ³¿ò£¬ËüÀ©Õ¹µ÷ÓÃ__get_free_pages(gfp_mask | _ _GFP_DMA, order)¡£
²ÎÊýgfp_maskÊÇÒ»×é±êÖ¾£¬ËüÖ¸Ã÷ÁËÈçºÎÑ°ÕÒ¿ÕÏеÄÒ³¿ò£º
 
±êÖ¾
˵Ã÷
_ _GFP_DMA
ËùÇëÇóµÄÒ³¿ò±ØÐë´¦ÓÚZONE_DMA ¹ÜÀíÇø¡£
_ _GFP_HIGHMEM
ËùÇëÇóµÄÒ³¿ò´¦ÓÚZONE_HIGHMEM ¹ÜÀíÇø
_ _GFP_WAIT
ÔÊÐíÄں˶Եȴý¿ÕÏÐÒ³¿òµÄµ±Ç°½ø³Ì½øÐÐ×èÈû
_ _GFP_HIGH
ÔÊÐíÄں˷ÃÎʱ£ÁôµÄÒ³¿ò³Ø
_ _GFP_IO
ÔÊÐíÄÚºËÔڵͶËÄÚ´æÒ³ÉÏÖ´ÐÐI/O ´«ÊäÒÔÊÍ·ÅÒ³¿ò
_ _GFP_FS
Èç¹ûÇå0£¬Ôò²»ÔÊÐíÄÚºËÖ´ÐÐÒÀÀµÓÚÎļþϵͳµÄ²Ù×÷
_ _GFP_COLD
ËùÇëÇóµÄÒ³¿ò¿ÉÄÜΪ“ÀäµÄ”
_ _GFP_NOWARN
Ò»´ÎÄÚ´æ·ÖÅäʧ°Ü½«²»»á²úÉú¾¯¸æÐÅÏ¢
_ _GFP_REPEAT
ÄÚºËÖØÊÔÄÚ´æ·ÖÅäÖ±µ½³É¹¦
_ _GFP_NOFAIL
Óë__GFP_REPEAT Ïàͬ
_ _GFP_NORETRY
Ò»´ÎÄÚ´æ·ÖÅäʧ°Üºó²»ÔÙÖØÊÔ
_ _GFP_NO_GROW
slab ·ÖÅäÆ÷²»ÔÊÐíÔö´óslab ¸ßËÙ»º´æ
_ _GFP_COMP
ÊôÓÚÀ©Õ¹Ò³µÄÒ³¿ò
_ _GFP_ZERO
Èκηµ»ØµÄÒ³¿ò±ØÐë±»ÌîÂú0
ÏÂÃæ4¸öº¯ÊýºÍºêÖеÄÈÎÒâÒ»¸ö¶¼¿ÉÒÔÊÍ·ÅÒ³¿ò£º
_ _free_pages(page, order)£º¸Ãº¯ÊýÊ×ÏȲéÕÒpageÖ¸ÏòµÄÒ³ÃèÊö·û£»Èç¹û¸ÃÒ³¿òδ±»±£Áô£¨PG_reserved±ê־Ϊ0£©£¬¾Í°ÑÃèÊö·ûcount×ֶμõ1¡£Èç¹ûcount×ֶαäΪ0£¬¾Í¼Ù¶¨´Ópage¶ÔÓ¦Ò³¿ò¿ªÊ¼µÄ2order¸öÁ¬ÐøÒ³¿ò²»ÔÙ±»Ê¹Óã¬ÔÚÕâÖÖÇé¿öÏ£¬¸Ãº¯ÊýÊÍ·ÅÒ³¿ò¡£
free_pages(addr, order)£ºÕâ¸öº¯ÊýÀàËÆÓÚ _ _free_pages( )£¬Ö»²»¹ýËü½ÓÊյIJÎÊýΪҪ


Ïà¹ØÎĵµ£º

linux Æô¶¯ ¹ÒÔØrootfs

Ò»Ö±¶ÔlinuxÆô¶¯Ê±¹ÒÔظùÎļþϵͳµÄ¹ý³Ì´æÔÚןܶàÒÉÎÊ£¬½ñÌìÔÚˮľ¾«»ªÇøÕÒµ½ÁËÓÐÓõÄ×ÊÁÏ£¬ÕªÂ¼ÈçÏ£º
1¡£linuxÆô¶¯Ê±£¬¾­¹ýһϵÁгõʼ»¯Ö®ºó£¬ÐèÒªmount ¸ùÎļþϵͳ£¬Îª×îºóÔËÐÐinit½ø³ÌµÈ×ö×¼±¸£¬mount ¸ùÎļþϵͳÓÐÕâô¼¸ÖÖ·½Ê½£º
1£©ÎļþϵͳÒѾ­´æÔÚÓÚÓ²ÅÌ£¨»òÕßÀàËƵÄÉ豸£©µÄij¸ö·ÖÇøÉÏÁË£¬kernel¸ù¾ÝÆô¶¯µÄÃüÁî ......

Axis C++ÔÚRedhat LinuxÉÏ°²×°(δÍê´ýÕûÀí)

ÏÂÔصİ汾ÊÇAxis C++ 1.6 Beta
¿Í»§¶ËºÍ·þÎñÆ÷¶Ë¶¼ÐèҪʵÏÖ°²×°xml½âÎöÆ÷
Xerces C++ (2.2.0)
·þÎñÆ÷¶Ë»¹ÐèÒªapache1.3.x»òÕß2.0.x
Ò»¡¢·þÎñÆ÷¶Ë°²×°
1¡¢°²×°Axis C++
2¡¢°²×°Apache£¬ÎÒÃDzÉÓÃApache 2.2.6
×¢ÒâÒ»¶¨ÒªApache 1.3.x use --enable-module=so; for Apache 2.0.x use --enable-so when configuring£¬± ......

linux²»³£Óõ«·Ç³£ÊµÓõÄÃüÁî

²»³£Óõ«·Ç³£ÊµÓõÄÃüÁî
UNIXÃüÁîÊDzâÊԱر¸µÄ֪ʶ£¬³ýÁËһЩ³£ÓõÄÃüÁîÐèÒªÊìϤÒÔÍ⣬Óкܶà·Ç³£ÓÐÓõ«ÊDz»³£ÓõÄÃüÁîÒ²ÐèÒªÁ˽⣬ÕâÑù¶Ô¹¤×÷ÓкܴóµÄ°ïÖú£¬ÕâÀïÌṩһЩÎÒƽ³£¹¤×÷ÖÐÀÛ»ýµÄ֪ʶ£¬Ï£ÍûÄÜ°ïÖúµ½´ó¼Ò ^_^
1¡¢Í³¼ÆËùÓÐÎļþÖеļǼÊý£ºwc -l filename
2¡¢²é¿´¹²ÏíÄڴ棺ipcs -m
3¡¢viÖеÄÅúÁ¿×Ö·ûÆ¥Å䣨a- ......

Linux UDPÑÏÖضª°üÎÊÌâµÄ½â¾ö


²âÊÔϵͳÔÚLinuxÉϵÄÐÔÄÜ·¢ÏÖ¶ª°üÂʼ«ÎªÑÏÖØ£¬·¢210000ÌõÊý¾Ý£¬¶ª°ü´ï110000Ö®¾Þ£¬¶ª°üÂʳ¬¹ý50%¡£Í¬µÈÇéÐÎÏÂWindowsÉϲâÊÔ£¬½ö¶ª¼¸ÌõÊý¾Ý¡£ÐÎÊÆÑϾþ£¬±ØÐë½â¾ö¡£¿¼ÂÇ¿ÉÄÜÊÇÒòΪЭÒéÕ»BufferÌ«µÍËùÖ£¬ÓÚÊÇÏÈ¿´¿´Ä¬ÈÏÇé¿ö£º
sysctl -a |grep net.core
·¢ÏÖ
net.core.rmem_max = 131071
net.core.rmem_default = 11264 ......

[ת]Linux Ïß³ÌʵÏÖ»úÖÆ·ÖÎö

ÑîɳÖÞ (pubb@163.net)¹ú·À¿Æ¼¼´óѧ¼ÆËã»úѧԺ
2003 Äê 5 ÔÂ 19 ÈÕ
×Ô´Ó¶àÏ̱߳à³ÌµÄ¸ÅÄî³öÏÖÔÚ Linux ÖÐÒÔÀ´£¬Linux ¶àÏßÓ¦Óõķ¢Õ¹×ÜÊÇÓëÁ½¸öÎÊÌâÍѲ»¿ª¸Éϵ£º¼æÈÝÐÔ¡¢Ð§ÂÊ¡£±¾ÎÄ´ÓÏß³ÌÄ£ÐÍÈëÊÖ£¬Í¨¹ý·ÖÎöÄ¿Ç° Linux ƽ̨ÉÏ×îÁ÷ÐÐµÄ LinuxThreads Ï߳̿âµÄʵÏÖ¼°Æä²»×㣬ÃèÊöÁË Linux ÉçÇøÊÇÈçºÎ¿´´ýºÍ½â¾ö¼æÈÝÐÔºÍЧÂÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ