Linux½¨Á¢Ê¹ÓÃÏÞÖƼ°getrlimitºÍsetrlimitº¯Êý
ÕâÒ»²¿·ÖµÄÌá³öÊÇΪÁË·Àֹʧ¿ØµÄ½ø³ÌÆÆ»µÏµÍ³µÄÐÔÄÜ
nuixºÍLinux¸ú×Ù½ø³ÌʹÓõĴ󲿷Ö×ÊÔ´£¬ÔÊÐíÓû§ºÍϵͳ¹ÜÀíԱʹÓöԽø³ÌµÄ×ÊÔ´ÏÞÖÆ
ÉèÖõÄÏÞÖÆÓÐÁ½ÖÖ£º Ó²ÏÞÖƺÍÈíÏÞÖÆ
Ó²ÏÞÖÆÊÇ¿ÉÒÔÔÚÈκÎʱºòÈκνø³ÌÖÐÉèÖà µ«Ó²ÏÞÖÆÖ»ÄÜÓɳ¬¼¶Óû§ÌáÆð
ÈíÏÞÖÆÊÇÄÚºËʵ¼ÊÖ´ÐеÄÏÞÖÆ£¬Èκνø³Ì¶¼¿ÉÒÔ½«ÈíÏÞÖÆÉèÖÃΪÈÎÒâСÓÚµÈÓÚ¶Ô½ø³ÌÏÞÖƵÄÓ²ÏÞÖƵÄÖµ
———————ÒÔÏÂÄÚÈÝΪתÔØ£¨Í»È»·¢ÏÖÕâ·½ÃæÓкÃ×ÊÔ´±ãÖ±½ÓÒýÓÃÁË£©—————————
getrlimitºÍsetrlimitº¯Êý
¡¡¡¡Ã¿¸ö½ø³Ì¶¼ÓÐÒ»×é×ÊÔ´ÏÞÖÆ£¬ÆäÖÐijһЩ¿ÉÒÔÓÃgetrlimitºÍsetrlimitº¯Êý²éѯºÍ¸ü¸Ä¡£
#include
#include
int getrlimit(int resource,struct rlimit *rlptr);
int setrlimit(int resource,const struct rlimit rlptr);
Both return: 0 if OK,nonzero on errorÁ½¸öº¯Êý
¡¡¡¡·µ»Ø£ºÈô³É¹¦Îª0£¬³ö´íΪ·Ç0
¡¡¡¡¶ÔÕâÁ½¸öº¯ÊýµÄÿһ´Îµ÷Óö¼Ö¸¶¨Ò»¸ö×ÊÔ´ÒÔ¼°Ò»¸öÖ¸ÏòÏÂÁнṹµÄÖ¸Õë¡£
struct rlimit{
rlim rlim ur;/* ÈíÏÞÖÆ£ºµ±Ç°ÏÞÖÆ */
rlim rlim ax;£¯* Ó²ÏÞÖÆ£ºrlimcurµÄ×î´óÖµ */
}£»
¡¡¡¡ÕâÁ½¸öº¯Êý²»ÊôÓÚPOSIX.1£¬µ«SVR4ºÍ4.3+BSDÌṩËüÃÇ¡£SVR4ÔÚÉÏÃæµÄ½á¹¹ÖÐʹÓûù±¾ÏµÍ³Êý¾ÝÀàÐÍrlim¡£ÆäËüϵͳÔò½«Õâ
Á½¸ö³ÉÔ±¶¨ÒåΪÕûÐÍ»ò³¤ÕûÐÍ¡£
¡¡¡¡½ø³ÌµÄ×ÊÔ´ÏÞÖÆͨ³£ÊÇÔÚϵͳ³õÆôʱÓÉ0#½ø³Ì½¨Á¢µÄ£¬È»ºóÓɺóÐø½ø³Ì¼Ì³Ð¡£ÔÚSVR4ÖУ¬ÏµÍ³Ä¬ÈÏÖµ¿ÉÒԲ鿴ÎÄ
¼þ/etc/conf/cfd/mtuneÔÚ4.3+BSDÖУ¬ÏµÍ³Ä¬ÈÏÖµ·ÖÉ¢ÔÚ¶à¸öÍ·ÎļþÖС£
¡¡¡¡ÔÚ¸ü¸Ä×ÊÔ´ÏÞÖÆʱ£¬Ðë×ñÑÏÂÁÐÈýÌõ¹æÔò£º
¡¡¡¡1.ÈκÎÒ»¸ö½ø³Ì¶¼¿É½«Ò»¸öÈíÏÞÖƸü¸ÄΪСÓÚ»òµÈÓÚÆäÓ²ÏÞÖÆ¡£
¡¡¡¡2.ÈκÎÒ»¸ö½ø³Ì¶¼¿É½µµÍÆäÓ²ÏÞÖÆÖµ£¬µ«Ëü±ØÐë´óÓÚ»òµÈÓÚÆäÈíÏÞÖÆÖµ¡£ÕâÖÖ½µµÍ£¬¶ÔÆÕͨÓû§¶øÑÔÊDz»¿ÉÄæ·´µÄ¡£
¡¡¡¡3.Ö»Óг¬¼¶Óû§¿ÉÒÔÌá¸ßÓ²ÏÞÖÆ¡£
¡¡¡¡Ò»¸öÎÞÏÞÁ¿µÄÏÞÖÆÓɳ£ÊýRLIM NFINITYÖ¸¶¨¡£
¡¡¡¡ÕâÁ½¸öº¯ÊýµÄresource²ÎÊýÈ¡ÏÂÁÐÖµÖ®Ò»¡£×¢Òâ²¢·ÇËùÓÐ×ÊÔ´ÏÞÖƶ¼Êܵ½SVR4ºÍ4.3+BSDµÄÖ§³Ö¡£
¡¡¡¡RLMITCORE£¨SVR4¼°4.3+BSD)coreÎļþµÄ×î´ó×Ö½ÚÊý£¬ÈôÆäֵΪ0Ôò×èÖ¹´´½¨coreÎļþ¡£
¡¡¡¡RLIMIT PU(SVR4¼°4.3+BSD)CPUʱ¼äµÄ×î´óÁ¿Öµ(Ãë)£¬µ±³¬¹ý´ËÈíÏÞֹʱ£¬Ïò¸Ã½ø³Ì·¢ËÍSIGXCPUÐźš£
¡¡¡¡RLIMIT ATA(SVR4¼°4.3+BSD)Êý¾Ý¶ÎµÄ×î´ó×Ö½Ú³¤¶È¡£ÕâÊÇͼ7.3Öгõʼ»¯Êý¾Ý¡¢·Ç³õʼ»¯Êý¾ÝÒÔ¼°¶ÑµÄ×ܺ͡£
¡¡¡¡RLIMIT SIZE(SVR4¼°4.3+
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
Ç°¶Îʱ¼ä°Ý¶Áfudan_abcµÄÎÄÕºó¸ù¾Ý×Ô¼ºµÄÀí½âдµÄһЩ·ÖÎö
[url=http://blog.chinaunix.net/u1/57901/showart.php?id=1855876][color=#02368d][size=10pt]LINUXÏÂUSB1.1É豸ѧϰС¼Ç(1) [/size][/color]
[url=http://blog.chinaunix.net/u1/57901/showart.php?id=1856447][color=#02368d][size=10pt]LINUXÏÂUSB1. ......
ÏÖÔÚÔݶ¨µÄѧϰĿ±êΪһ¸öUSBÊó±êµÄÉ豸µ½Ö÷»úµÄ´«Êä¹ý³ÌÈí¼þÉϵĹᴩ(»áÉæ¼°µ½²¿·ÖÓ²¼þ µ«ÊDZ¾È˵ĵçµç·֪ʶÓÐÏÞ Éæ¼°µÄÁ¿²»»á¶à)
ѧϰµÄ¿ò¼ÜÈçÏÂ:
1. USB1.1ÐÒé
A. ¿ØÖÆ´«Êä
B. Öжϴ«Êä
2. &n ......
ÉùÃ÷
£º¿ÉÒÔ×ÔÓÉתÔر¾ÎÄ£¬µ«ÇëÎñ±Ø±£Áô±¾ÎĵÄÍêÕûÐÔ¡£
×÷Õß
£ºÕÅ×Ó¼á
email
:zhangzijian@163.com
˵Ã÷
£º±¾ÎÄËùÉ漰ʾÀý¾ùÔÚfedora core3ϵõ½¡£
--------------------------------------------------------------------------------
/proc
ÎļþϵͳϵĶàÖÖÎļþÌṩµÄϵͳÐÅÏ¢²»ÊÇÕë¶Ôij¸öÌض¨½ø³ÌµÄ£¬¶øÊÇÄ ......