ºìÁªLinuxÃÅ»§
Linux°ïÖú

AIX ϵͳ²ÎÊýÅäÖÃ

·¢²¼Ê±¼ä:2006-12-21 00:56:18À´Ô´:ºìÁª×÷Õß:ztonline
AIXÄÚºËÊôÓÚ¶¯Ì¬Äںˣ¬ºËÐIJÎÊý»ù±¾ÉÏ¿ÉÒÔ×Ô¶¯µ÷Õû£¬Òò´Ëµ±ÏµÍ³°²×°Íê±Ïºó,Ó¦¿¼ÂÇÐ޸ĵIJÎÊýÒ»°ãÈçÏÂ:
Ò»¡¢µ¥»ú»·¾³
1¡¢ÏµÍ³Óû§µÄ×î´óµÇ¼Êýmaxlogin
maxloginµÄ¾ßÌå´óС¿É¸ù¾ÝÓû§ÊýÉ趨£¬¿ÉÒÔͨ¹ýsmitty chlicenseÃüÁîÐ޸ģ¬¸Ã²ÎÊý¼Ç¼ÓÚ/etc/security/login.cfgÎļþ£¬ÐÞ¸ÄÔÚϵͳÖØÐÂÆô¶¯ºóÉúЧ¡£
2¡¢ÏµÍ³Óû§µÄlimits²ÎÊý
ÕâЩ²ÎÊýλÓÚ/etc/security/limitsÎļþÖУ¬¿ÉÒÔ°ÑÕâЩ²ÎÊýÉèΪ-1,¼´ÎÞÏÞÖÆ£¬¿ÉÒÔÓÃvi ÐÞ¸Ä/etc/security/limitsÎļþ£¬ËùÓÐÐÞ¸ÄÔÚÓû§ÖØеǼºóÉúЧ¡£
default:
fsize = 2097151 ----¡·¸ÄΪ-1
core = 2097151
cpu = -1
data = 262144 ----¡·¸ÄΪ-1
rss = 65536
stack = 65536
nofiles = 2000
3¡¢Paging Space
¼ì²épaging spaceµÄ´óС£¬ÔÚÎïÀíÄÚ´æ<2Gʱ£¬Ó¦ÖÁÉÙÉ趨ΪÎïÀíÄÚ´æµÄ1.5±¶£¬ÈôÎïÀíÄÚ´æ>2G£¬¿É×÷Êʵ±µ÷Õû¡£Í¬Ê±ÔÚ´´½¨paging spaceʱ, Ó¦¾¡Á¿·ÖÅäÔÚ²»Í¬µÄÓ²ÅÌÉÏ£¬Ìá¸ßÆäÐÔÄÜ¡£ÀûÓÃsmitty chpsÐÞ¸ÄÔ­ÓÐpaging spaceµÄ´óС»òsmitty mkpsÔö¼ÓÒ»¿épaging space¡£
4¡¢ÏµÍ³ºËÐIJÎÊýÅäÖÃ
ÀûÓÃlsattr -Elsys0 ¼ì²émaxuproc, minpout, maxpoutµÈ²ÎÊýµÄ´óС¡£maxuprocΪÿ¸öÓû§µÄ×î´ó½ø³ÌÊý,ͨ³£Èç¹ûϵͳÔËÐÐDB2»òORACLEÊÇÓ¦½«maxuprocµ÷Õû£¬Default£º128¡¢µ÷Õûµ½500£¬maxuprocÔö¼Ó¿ÉÒÔÂíÉÏÆð×÷Ó㬽µµÍÐèÒªAIXÖØÆð¡£µ±Ó¦ÓÃÉæ¼°´óÁ¿µÄ˳Ðò¶Áд¶øÓ°Ïìǰ̨³ÌÐòÏìӦʱ¼äʱ£¬¿É¿¼Âǽ«maxpoutÉèΪ33, minpoutÉèΪ16£¬ÀûÓÃsmitty chgsysÀ´ÉèÖá£
5¡¢Îļþϵͳ¿Õ¼äµÄÉ趨
Ò»°ãÀ´Ëµ£¬ÏµÍ³µÄÎļþϵͳ/¡¢/usr¡¢/var¡¢/tmpµÄʹÓÃÂʲ»Òª³¬¹ý80%£¬/tmp½¨ÒéÖÁÉÙΪ300M£¬ÎļþϵͳÂú¿Éµ¼ÖÂϵͳ²»ÄÜÕý³£¹¤×÷£¬ÓÈÆäÊÇAIXµÄ»ù±¾Îļþϵͳ£¬Èç/ (¸ùÎļþϵͳ)ÂúÔò»áµ¼ÖÂÓû§²»ÄܵǼ¡£ÓÃdf ²é¿´¡£
# df -k (²é¿´AIXµÄ»ù±¾Îļþϵͳ)
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 24576 1452 95% 2599 22% /
/dev/hd2 614400 28068 96% 22967 15% /usr
/dev/hd9var 8192 4540 45% 649 32% /var
/dev/hd3 167936 157968 6% 89 1% /tmp
/dev/hd1 16384 5332 68% 1402 35% /home
ÀûÓÃsmitty chfsÀ©Õ¹ÎļþϵͳµÄ¿Õ¼ä¡£
6¡¢¼¤»îSSA Fast-Write Cache
ÀûÓÃsmitty ssafastwÀ´¼¤»îÿһ¸öÂß¼­ÅÌhdisknµÄFast-Write Cache£ºÑ¡ÔñÓ²Å̺󣬰ÑEnable Fast-WriteÒ»Ïî¸ÄΪYesºó»Ø³µ¼´¿É¡£
7¡¢¼¤»îAIO
AIOͨ³£Ö»¶ÔÎļþϵͳÆð×÷Ó㬶ÔÂãÉ豸ûÓÐ×÷Óá£×î´óΪ10X²¢ÐдÅÅÌÊý<80,×îСΪ×î´óµÄÒ»°ë¡£
¢Ù¡¢¶¨ÒåϵͳÖеÄAIOÉ豸
smit aio -> Configure Defined Asynchronous I/O È»ºó»Ø³µÖ´ÐУ»
¢Ú¡¢¼¤»îϵͳÖеÄAIOÉ豸
smit aio -> Change / Show Characteristics of Asynchronous I/O»Ø³µ³öÏÖAIOÅäÖöԻ°¿ò£¬½«¶Ô»°¿òÖС²STATE to be configured at system restart¡³ÓòÑ¡ÔñΪ¡°available¡±£¬È»ºó»Ø³µÖ´ÐУ»
×¢£ºÏµÍ³»áÌáʾֻÓÐÔÚÖØÆðºó²ÅÄÜÉúЧ¡£
8¡¢rootvg¾µÏñ
ÒòΪrootvgËð»µÏµÍ³½«ÎÞ·¨ÔËÐУ¬¼´Ê¹Í¨¹ý±¸·Ý´Å´ø»Ö¸´£¬Ò²»áÔì³Éϵͳͣ»ú£¬Òò´ËÔÚ´ÅÅÌ¿Õ¼ä³äÔ£µÄÇé¿öÏ£¬¿É¿¼ÂǶÔrootvg×÷¾µÏñ£¬Í¬Ê±ÔÚ½¨Á¢rootvg¾µÏñʱӦ¾¡Á¿Ê¹ÓÃÁ¬½ÓÔÚ²»Í¬SCSI ÉϵÄÓ²ÅÌÒÔ×öµ½¸ºÔؾùºâ¡£ÀûÓÃsmitty mirrorvgÐ޸ġ£
¶þ¡¢Ë«»ú»·¾³
ÔÚË«»ú»·¾³ÖУ¬³ýÁË¿¼ÂÇÉÏÊö²ÎÊýÉèÖÃÍ⣬»¹Ð迼ÂÇ£º
1¡¢ High water mark for pending write I/Os per file(maxpout) ºÍLow water mark for pending write I/Os per file
ËüÃÇȱʡֵΪ0£¬ÔÚË«»ú»·¾³ÖÐÒ»°ãÓ¦ÉèHigh water markΪ33,Low water markΪ24£¬ÕâÁ½¸ö²ÎÊý¿ÉÓÃsmitty chgsysÀ´ÉèÖá£
2¡¢ syncd daemonµÄÊý¾ÝË¢ÐÂƵÂÊ
¸ÃÖµ±íʾˢÐÂÄÚ´æÊý¾Ýµ½Ó²Å̵ÄƵÂÊ£¬È±Ê¡Îª60£¬Ò»°ã¿É¸ÄΪ20£¬Ò²¿É¸ù¾Ýʵ¼ÊÇé¿ö¸ü¸Ä¡£¸Ã²ÎÊýͨ¹ývi /sbin/rc.boot¸ü¸Ä£¬ÆäÖÐÒ»ÐÐÈçÏ£º
nohup /usr/sbin/syncd 60 >/dev/null 2>&1 &
¸ÄΪ£º
nohup /usr/sbin/syncd 20 >/dev/null 2>&1 &
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ