Unix/Linux ϵͳ×Ô¶¯»¯¹ÜÀí: ÄÚ´æ¹ÜÀíÆª
2009 Äê 10 ÔÂ 29 ÈÕ
±¾ÎÄÊÇ Unix/Linux ϵͳ¹ÜÀí×Ô¶¯»¯ÏµÁÐÖеÄһƪÎÄÕ£¬Ö÷Òª½éÉÜÁËÄÚ´æ¹ÜÀíËùÉæ¼°µÄÃüÁ²¢Í¨¹ý±àд×Ô¶¯»¯½Å±¾ÊµÏÖÁËÄÚ´æ¹ÜÀíÓë¼à¿ØµÄ×Ô¶¯»¯
ÄÚ´æÊÇ Unix/Linux ÄÚºËËù¹ÜÀíµÄ×îÎªÖØÒªµÄ×ÊÔ´Ö®Ò»£¬ÄÚ´æ¹ÜÀíÊÇϵͳ¹ÜÀíÖзdz£ÖØÒªÒ²ÊÇ×ÔӵĵIJ¿·Ö¡£ÏµÍ³¹ÜÀíÔ±ÐèÒªÕÆÎÕÄÚ´æ¹ÜÀíµÄ»ù±¾¹¤×÷ÔÀíÒÔ¼°Ê¹ÓúÏÊʵŤ¾ßÓë²ßÂÔ¼à¿ØÄÚ´æµÄ¹¤×÷״̬¡£ ±¾ÎĽ«·Ö±ð²ûÊö AIX ºÍ Linux ϵͳÖÐËùÉæ¼°µ½µÄÄÚ´æ¼à¿ØµÄ·½·¨£¬²¢¶ÔÆäÖÐÉæ¼°µ½µÄÄÚºËÄÚ´æ¹ÜÀíµÄÔÀí×ö³õ²½µÄ˵Ã÷¡£
AIX ÄÚ´æ¹ÜÀíÓë¼à¿Ø
ÄÚ´æ¹ÜÀí¸ÅÊö
ÄÚ´æ¹ÜÀíÔÚ²»Í¬µÄ²Ù×÷ϵͳÖлáÓв»Í¬µÄʵÏÖ¡£AIX ϵͳʹÓà VMM(Virtual Memory Manager) ʵÏÖÎïÀíÄÚ´æµÄ¹ÜÀí£¬´¦ÀíÓ¦ÓóÌÐòµÄÄÚ´æ·ÖÅäÇëÇóÓëÄÚ´æ»ØÊÕ¡£
ÄÚ´æºÍ½»»»¿Õ¼äÒ»°ã¶¼ÊÇͨ¹ýÒ³ÃæÀ´½øÐзÖÅäºÍ¹ÜÀí£¬VMM ½«ËùÓеÄÄÚ´æ¶Î»®·ÖΪÈô¸É¸öÒ³Ãæ£¬Power4 оƬ֧³Ö 4K£¬64K£¬ºÍ 16M ´óСµÄÐéÄâÄÚ´æÒ³£¬ Power5 оƬ֧³Ö 4K£¬64K£¬16M,16G ´óСµÄÐéÄâÄÚ´æÒ³£¬Ã¿¸öÒ³ÃæµÄȱʡ´óСÊÇ 4KB¡£ÐéÄâÄÚ´æÒ³ÃæÔ½´ó£¬¶ÔÐèÒª´óÄÚ´æ¿éµÄÓ¦ÓóÌÐò¿ÉÒÔÆðµ½ÓÅ»¯×÷Óã¬Ö÷ÒªÊÇÌá¸ß TLB µÄÃüÖÐÂÊ¡£
µ±ÎÒÃÇÖ´ÐÐÓ¦ÓóÌÐòµÄʱºò£¬ÄÚ´æÖеÄÒ³Ãæ»á±»Öð½¥µÄÕ¼Óã¬ÕâÀïÎÒÃÇÉè¼ÆÁ½¸öÖØÒªµÄ²ÎÊý£º Minfree( ×îС¿ÕÏÐÒ³ÃæµÄ´óС ) ºÍ Maxfree( ×î´ó¿ÕÏÐÒ³ÃæµÄ´óС )¡£µ±¿ÕÏеÄÄÚ´æ´ïµ½ Minfree ´óСµÄʱºò£¬ VMM µÄµ÷Ò³Ëã·¨½«±»»½ÐÑ£¬½«ÄÚ´æÖеÄÒ³Ãæ×ªÒÆµ½½»»»¿Õ¼äÖУ¬ ÖªµÀ¿ÕÏÐÄÚ´æ´ïµ½ Maxfree£¬²ÅÍ£Ö¹µ÷Ò³¡£
ÉÏÃæÖ÷ÒªÊÇ¶Ô AIX ÄÚ´æ¹ÜÀíÖÐËùÉæ¼°µ½µÄµÄ»ù±¾¸ÅÄî×öÁ˼òµ¥µÄ½éÉÜ˵Ã÷£¬¶ÔÓÚÈκÎÓëÄÚ´æÏà¹ØµÄ²Ù×÷£¬Á˽âÕâЩ¸ÅÄî¶¼ÊǷdz£±ØÒªµÄ¡£
ϵͳ¹ÜÀíÔ±ÔÚ½øÐÐÕýÈ·µÄÓÅ»¯»òÕßÎÊÌâ·¢Éú֮ǰ£¬±ØÐëÊ×ÏȼàÊÓϵͳ£¬Ê¹ÓúÏÊʵŤ¾ß²¶»ñ»ù×¼Êý¾Ý£¬²¢ÇÒÖªµÀÈçºÎ½øÐзÖÎö¹¤×÷¡£ÏÂÃæ±ÊÕß½«½éÉÜ AIX ϵͳËùÌṩµÄ¹¤¾ßÀ´¼à¿ØÏµÍ³ÄÚ´æµÄʹÓÃÇé¿ö¡£
ÄÚ´æµ÷ÕûÃüÁî
ÓëÆäËûµÄ×ÓϵͳÏà±È£¬ÄÚ´æµ÷Õû¸üΪÀ§ÄÑ£¬µ«Í¬Ê±ÊÕµ½µÄЧ¹ûÍùÍù¸ü¼ÓÏÔÖø£¬ÌرðÊÇÔÚÄÇЩÉÐδ¶Ô¸÷ÖÖÄÚ´æ²ÎÊý½øÐÐÓÅ»¯µÄÔËÐл·¾³ÖС£ÏµÍ³¹ÜÀíÔ±¿ÉÒÔͨ¹ý vmo ÃüÁ̬µÄµ÷ÕûÄÚ´æ²ÎÊý£¬½øÐÐÄÚ´æÐÔÄÜÓÅ»¯·½ÃæµÄ¸÷ÖÖʵ¼ù¡£
vmo
Vmo ÃüÁîÓÃÀ´¹ÜÀíÐéÄâÄÚ´æ¿Éµ÷ÊԵIJÎÊý¡£ÀýÈçÈç¹ûÎÒÃÇ·¢ÏÖ¿ÕÏÐÄÚ´æ²»×㣬 ¿ÉÒÔʹÓÃÏÂÃæµÄÃüÁîÔö¼Ó Minfree ºÍ Maxfree ²ÎÊý£º
Çåµ¥ 1. ʹÓà vmo ÃüÁîµ÷Õû¿ÕÏеÄÐéÄâÄÚ´æ×îСºÍ×î´óÖµ
# vmo – o minfree=1024 – o maxfree=30070
Setting maxfree to 30070
Setting min
Ïà¹ØÎĵµ£º
ÕýʽʵϰһÖÜ£¬Óеã¸Ð´¥¡£±¾À´¾ÍûָÍûÄܳÉΪʲô¼¼Êõ´óÅ££¬ÓÃ×Ô¼ºµ÷Ù©µÄ»°À´Ëµ¾ÍÊÇ“»ì¿Ú·¹³Ô”¡£²»¹ýÀÏ´ó¶ÔmeµÄÆÚÍûÖµÄÇô¸ß£¬¾Àí¹ÜµÃÕâôÑÏ£¬Ñ¹Á¦ÆÄ´ó¡£¶Ô×Ô¼ºÍ¦Ê§Íû£¬Ã»ÄÜ¿ªºÃÍ·£¬Óеã¶Ô²»ÆðÕâô³É¹¦µÄÀÏ´ó¡£»¹ºÃû׼±¸×öʲô´óÊ£¬Òª²»È»ÕâÐÔ¸ñµÃ·Ñ¶à´óÁ¦Æø²ÅÄÜÖØËÜ¡£¡£¡£
¶¼ÊDZƳöÀ´µÄ£¬±»¾Àíѵºó£¬Ò»Ìì ......
sudo apt-get build-dep firefox
Èô³öÏÖÏÂÃæµÄ´íÎó£º
²»ÄÜÂú×ãÈí¼þ°ü firefox ËùÒªÇóµÄ¹¹½¨ÒÀÀµ¹ØÏµ
Ç뽫 /etc/apt/sources.list ¸ÄΪĬÈϵÄÔ´ ÓоÍÊÇ ×°Íêϵͳºó×Ô´øµÄ£º
#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090421.3)]/ jaunty main restricted
# See http://help.ubuntu ......
Linux C + + Training
Syllabus
________________________________________
1, Linux Operating System
System Environment: Ubuntu GNU / Linux, RedHat Linux AS5,
FreeBSD
Course Requirements: proficient use of commonly used Linux
/ UNIX commands.
Time: 1 week.
______________________________ ......
±¾ÎľÍÓû§ÔÚ×°linuxµÄ¹ý³ÌÖУ¬ËùÓöµ½µÄlinux·ÖÇøÎÊÌâÀ´ÏêϸµØ½éÉÜһϣ¬ÕâÀïÒÔred hat linux7.1ΪÀý¡£
Ê×ÏÈÎÒÃÇÒª¶ÔÓ²ÅÌ·ÖÇøµÄ»ù±¾¸ÅÄî½øÐÐһЩ³õ²½µÄÁ˽⣬ӲÅ̵ķÖÇøÖ÷Òª·ÖΪ»ù±¾·ÖÇø£¨primary partion£©ºÍÀ©³ä·ÖÇø(extension partion)Á½ÖÖ£¬»ù±¾·ÖÇøºÍÀ©³ä·ÖÇøµÄÊýĿ֮ºÍ²»ÄÜ´óÓÚËĸö¡£ÇÒ»ù±¾·ÖÇø¿ÉÒÔÂíÉϱ»Ê¹Óõ«² ......