LinuxÉ豸Çý¶¯ÖеÄ×èÈûÓë·Ç×èÈûI/O
×èÈûÓë·Ç×èÈûI/O
×èÈû²Ù×÷ÊÇÖ¸ÔÚÖ´ÐÐÉ豸²Ù×÷ʱÈô²»ÄÜ»ñµÃ×ÊÔ´Ôò¹ÒÆð½ø³Ì£¬Ö±µ½Âú×ã¿É²Ù×÷µÄÌõ¼þºóÔÙ½øÐвÙ×÷¡£
ÒòΪ×èÈûµÄ½ø³Ì»á½øÈëÐÝÃß״̬£¬Òò´Ë£¬±ØÐëÈ·±£ÓÐÒ»¸öµØ·½Äܹ»»½ÐÑÐÝÃߵĽø³Ì¡£»½Ðѽø³ÌµÄµØ·½×î´ó¿ÉÄÜ·¢ÉúÔÚÖжÏÀïÃ棬ÒòΪӲ¼þ×ÊÔ´»ñµÃµÄͬʱÍùÍù°éËæ×ÅÒ»¸öÖжϡ£
×¢Ò⣺Çý¶¯³ÌÐòÐèÒªÌṩ×èÈû£¨µÈ´ý¶ÓÁУ¬Öжϣ©ºÍ·Ç×èÈû·½Ê½£¨ÂÖѯ£¬Ò첽֪ͨ£©·ÃÎÊÉ豸¡£
ÐÝÃß(±»×èÈû)µÄ½ø³Ì´¦ÓÚÒ»¸öÌØÊâµÄ²»¿ÉÖ´ÐÐ״̬¡£Õâµã·Ç³£ÖØÒª£¬·ñÔò£¬Ã»ÓÐÕâÖÖÌØÊâ״̬µÄ»°£¬µ÷¶È³ÌÐò¾Í¿ÉÄÜÑ¡³öÒ»¸ö±¾²»Ô¸Òâ±»Ö´ÐеĽø³Ì£¬¸üÔã¸âµÄÊÇ£¬ÐÝÃ߾ͱØÐëÒÔÂÖѯµÄ·½Ê½ÊµÏÖÁË¡£½ø³ÌÐÝÃßÓи÷ÖÖÔÒò£¬µ«¿Ï¶¨¶¼ÊÇΪÁ˵ȴýһЩʼþ¡£Ê¼þ¿ÉÄÜÊÇÒ»¶Îʱ¼ä¡¢´ÓÎļþI/O¶Á¸ü¶àÊý¾Ý£¬»òÕßÊÇij¸öÓ²¼þʼþ¡£Ò»¸ö½ø³Ì»¹ÓпÉÄÜÔÚ³¢ÊÔ»ñµÃÒ»¸öÒѾռÓõÄÄÚºËÐźÅÁ¿Ê±±»ÆȽøÈëÐÝÃß¡£ÐÝÃßµÄÒ»¸ö³£¼ûÔÒò¾ÍÊÇÎļþI/O -- Èç½ø³Ì¶ÔÒ»¸öÎļþÖ´ÐÐÁËread()²Ù×÷£¬¶øÕâÐèÒª´Ó´ÅÅÌÀï¶ÁÈ¡¡£»¹ÓУ¬½ø³ÌÔÚ»ñÈ¡¼üÅÌÊäÈëµÄʱºòÒ²ÐèÒªµÈ´ý¡£ÎÞÂÛÄÄÖÖÇé¿ö£¬Äں˵IJÙ×÷¶¼Ïàͬ:½ø³Ì°ÑËü×Ô¼º±ê¼Ç³ÉÐÝÃß״̬£¬°Ñ×Ô¼º´Ó¿ÉÖ´ÐжÓÁÐÒƳö£¬·ÅÈëµÈ´ý¶ÓÁУ¬È»ºóµ÷ÓÃschedu ......
http://hi.baidu.com/lu_xinzhong/blog/item/4ff92b1725dec505c83d6d09.html
»Ø¹ö±í¿Õ¼ä´óС
-- ´´½¨Ò»¸öеÄС¿Õ¼äµÄUNDO TABLESPACE
Create UNDO TABLESPACE UNDOTBS2 DATAFILE '/u01/app/oracle/oradata/orcl/UNDOTBS02.DBF' SIZE 100M REUSE AUTOEXTEND ON;
-- ÉèÖÃеıí¿Õ¼äΪϵͳUNDO_TABLESPACE
Alter SYSTEM SET UNDO_TABLESPACE=UNDOTBS2;
-- Drop ¾ÉµÄ±í¿Õ¼ä
Drop TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES; (Íê³Éºóɾ³ý±í¿Õ¼äºÍÊý¾Ý/u01/app/oracle/oradata/orcl/UNDOTBS01.DBF)
Select * from DBA_TABLESPACES;
È»ºó½øÐгöϲÙ×÷£º
-- ´´½¨Ò»¸öеÄС¿Õ¼äµÄUNDO TABLESPACE
Create UNDO TABLESPACE UNDOTBS1 DATAFILE '/u01/app/oracle/oradata/orcl/UNDOTBS01.DBF' SIZE 100M REUSE AUTOEXTEND ON;
-- ÉèÖÃеıí¿Õ¼äΪϵͳUNDO_TABLESPACE
Alter SYSTEM SET UNDO_TABLESPACE=UNDOTBS1;
-- Drop ¾ÉµÄ±í¿Õ¼ä
Drop TABLESPACE UNDOTBS2 INCLUDING CONTENTS AND DATAFILES;
--²é¿´ËùÓбí¿Õ¼äµÄÇé¿ö
Select * from DBA_TABLESPACES;
Íê³Éºóɾ³ý/u01/app/oracle/oradata/orcl/UNDOTBS02.DBF¡£
Èç¹ûÁÙʱ±í¿Õ¼äºÜ´ó´¦ÀíµÄ·½·¨ÀàËÆ¡£ ......
http://hi.baidu.com/lu_xinzhong/blog/item/4ff92b1725dec505c83d6d09.html
»Ø¹ö±í¿Õ¼ä´óС
-- ´´½¨Ò»¸öеÄС¿Õ¼äµÄUNDO TABLESPACE
Create UNDO TABLESPACE UNDOTBS2 DATAFILE '/u01/app/oracle/oradata/orcl/UNDOTBS02.DBF' SIZE 100M REUSE AUTOEXTEND ON;
-- ÉèÖÃеıí¿Õ¼äΪϵͳUNDO_TABLESPACE
Alter SYSTEM SET UNDO_TABLESPACE=UNDOTBS2;
-- Drop ¾ÉµÄ±í¿Õ¼ä
Drop TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES; (Íê³Éºóɾ³ý±í¿Õ¼äºÍÊý¾Ý/u01/app/oracle/oradata/orcl/UNDOTBS01.DBF)
Select * from DBA_TABLESPACES;
È»ºó½øÐгöϲÙ×÷£º
-- ´´½¨Ò»¸öеÄС¿Õ¼äµÄUNDO TABLESPACE
Create UNDO TABLESPACE UNDOTBS1 DATAFILE '/u01/app/oracle/oradata/orcl/UNDOTBS01.DBF' SIZE 100M REUSE AUTOEXTEND ON;
-- ÉèÖÃеıí¿Õ¼äΪϵͳUNDO_TABLESPACE
Alter SYSTEM SET UNDO_TABLESPACE=UNDOTBS1;
-- Drop ¾ÉµÄ±í¿Õ¼ä
Drop TABLESPACE UNDOTBS2 INCLUDING CONTENTS AND DATAFILES;
--²é¿´ËùÓбí¿Õ¼äµÄÇé¿ö
Select * from DBA_TABLESPACES;
Íê³Éºóɾ³ý/u01/app/oracle/oradata/orcl/UNDOTBS02.DBF¡£
Èç¹ûÁÙʱ±í¿Õ¼äºÜ´ó´¦ÀíµÄ·½·¨ÀàËÆ¡£ ......
LinuxÉ豸Çý¶¯ÖеÄÒ첽֪ͨÓëÒì²½I/O
Ò첽֪ͨµÄ¸ÅÄîÓë×÷ÓÃ
Ò첽֪ͨµÄÒâ˼ÊÇ£ºÒ»µ©É豸¾ÍÐ÷,ÔòÖ÷¶¯Í¨ÖªÓ¦ÓóÌÐò,ÕâÑùÓ¦ÓóÌÐò¸ù±¾¾Í²»ÐèÒª²éѯÉ豸״̬,ÕâÒ»µã·Ç³£ÀàËÆÓÚÓ²¼þÉÏ"ÖжÏ"µÄ¸ÅÄî,±È½Ï׼ȷµÄ³ÆνÊÇ"ÐźÅÇý¶¯µÄÒì²½I/O"¡£
LinuxÐźÅ
LinuxϵͳÖУ¬Ò첽֪ͨʹÓÃÐźÅÀ´ÊµÏÖ¡£ÐźÅÒ²¾ÍÊÇÒ»ÖÖÈí¼þÖжϡ£
ÐźŵIJúÉú£ºkill raise alarm
Óû§°´ÏÂijЩÖն˼ü£»
Ó²¼þÒì³££»
ÖÕÖ¹½ø³ÌÐźţ»
Èí¼þÒì³£¡£
ÐźŵĴ¦Àí£º
ºöÂÔ¸ÃÐźţ¬µ«SIGSTOP SIGKILL²»¿ÉºöÂÔ£»
²¶×½¸ÃÐźţ¬²¢´¦Àí£»
Ö´ÐÐĬÈϲÙ×÷¡£
ÐźŵĽÓÊÕ
²¶×½Ðźţ¬°²×°ÐźŴ¦Àíº¯Êý£ºvoid (*signal(int signum, void(*handler)(int)))(int);
Ðźź¯ÊýµÄÔÐÍΪ£ºvoid handler(int signo);
½ø³ÌÖ´ÐÐʱ£¬ctrl+c·¢³öSIGINTÐźţ¬kill·¢³öSIGTERMÐźš£
¸Ä±ä½ø³Ì½ÓÊÕµ½Ìض¨ÐźźóµÄÐÐΪ£ºint sigaction(int signum, const struct sigaction *act,struct sigacton *oldact);
µÚÒ»¸ö²ÎÊý¿ÉÒÔΪ³ýSIGKILL¼°SIGSTOPÍâµÄÈκÎÒ»¸öÌض¨ÓÐЧµÄÐźš£ÈôµÚ¶þ¡¢Èý¸ö²ÎÊý¶¼ÎªNULL£¬ÄÇô¸Ãº¯Êý¿ÉÓÃÓÚ¼ì²éÐźŵÄÓÐЧÐÔ¡£
ÔÚÓû§¿ ......
¹úÍâ
¡¡¡¡http://lwn.net/
¡¡¡¡http://www.tldp.org/
¡¡¡¡https://rhn.redhat.com/
¡¡¡¡http://www.justlinux.com/
¡¡¡¡http://www.linuxtoday.com/
¡¡¡¡http://www.linuxquestions.org/
¡¡¡¡http://www.fokus.gmd.de/linux/
¡¡¡¡http://www.linux-tutorial.info/
¡¡¡¡http://www.freebsdforums.org/forums/
¡¡¡¡http://www.netfilter.org/documentation/
¡¡¡¡http://www-106.ibm.com/developerworks/linux/
¡¡¡¡http://www.redhat.com/docs/ redhat¹Ù·½Îĵµ£¬redhatÓû§±Ø¿´
¡¡¡¡http://www.redhat.com/apps/support/errata/ redhat°²È«ÐÔ¾¯¸æ¡¢Èí¼þ¸üкÍÔöÇ¿£¬½¨ÒéÿÖÜÖÁÉÙ²éÔÄÒ»´Î
redhat linuxÏÂÔصØÖ·
¡¡¡¡ftp://ftp.redhat.com/pub/redhat/linux
¡¡¡¡http://redhat.com/download/mirror.html
redhat ·¢ÐаæÈ«Çò¹Ù·½¾µÏñÕ¾
¡¡¡¡http://freesoft.online.sh.cn/ ¹úÄÚ¸ßËÙÏÂÔØ
¡¡¡¡http://www.linuxeden.com/
¡¡¡¡http://www.freshrpms.net/
¡¡¡¡http://www.linux.cz/apt-rpm/ - Red Hat linux 7.x repositories (with all freshrpms included too!)
¡¡¡¡http://apt-rpm.tuxfamily.org/ - Red Hat linux 6.2, 7.x and 8.0 repositories
¡¡¡¡http:// ......
“Sudo” ÊÇUnix/Linuxƽ̨ÉϵÄÒ»¸ö·Ç³£ÓÐÓõŤ¾ß£¬ËüÔÊÐíϵͳ¹ÜÀíÔ±·ÖÅä¸øÆÕͨÓû§Ò»Ð©ºÏÀíµÄ“ȨÀû”£¬ÈÃËûÃÇÖ´ÐÐһЩֻÓг¬¼¶Óû§»òÆäËûÌØÐíÓû§²ÅÄÜÍê³ÉµÄÈÎÎñ£¬±ÈÈ磺ÔËÐÐһЩÏñmount£¬halt£¬suÖ®ÀàµÄÃüÁ»òÕß±à¼Ò»Ð©ÏµÍ³ÅäÖÃÎļþ£¬Ïñ/etc/mtab£¬ /etc/samba/smb.confµÈ¡£ÕâÑùÒÔÀ´£¬¾Í²»½ö¼õÉÙÁËrootÓû§µÄµÇ½´ÎÊýºÍ¹ÜÀíʱ¼ä£¬Ò²Ìá¸ßÁËϵͳ°²È«ÐÔ¡£
¡¡¡¡Ò». sudoµÄÌصã
¡¡¡¡sudo°çÑݵĽÇɫע¶¨ÁËËüÒªÔÚ°²È«·½Ãæ¸ñÍâ½÷É÷£¬·ñÔò¾Í»áµ¼Ö·Ƿ¨Óû§¾ðÈ¡rootȨÏÞ¡£Í¬Ê±£¬Ëü»¹Òª¼æ¹ËÒ×ÓÃÐÔ£¬ÈÃϵͳ¹ÜÀíÔ±Äܹ»¸üÓÐЧ£¬¸ü·½±ãµØʹÓÃËü¡£sudoÉè¼ÆÕßµÄ×ÚÖ¼ÊÇ£º¸øÓû§¾¡¿ÉÄÜÉÙµÄȨÏÞµ«ÈÔÔÊÐíÍê³ÉËûÃǵŤ×÷¡£ËùÒÔ£¬sudo
ÓÐÒÔÏÂÌص㣺
¡¡¡¡# 1. sudoÄܹ»ÏÞÖÆÖ¸¶¨Óû§ÔÚÖ¸¶¨Ö÷»úÉÏÔËÐÐijЩÃüÁî¡£
¡¡¡¡# 2. sudo¿ÉÒÔÌṩÈÕÖ¾£¬ÖÒʵµØ¼Ç¼ÿ¸öÓû§Ê¹ÓÃsudo×öÁËЩʲô£¬²¢ÇÒÄܽ«ÈÕÖ¾´«µ½ÖÐÐÄÖ÷»ú»òÕßÈÕÖ¾·þÎñÆ÷¡£
¡¡¡¡# 3. sudoΪϵͳ¹ÜÀíÔ±ÌṩÅäÖÃÎļþ£¬ÔÊÐíϵͳ¹ÜÀíÔ±¼¯ÖеعÜÀíÓû§µÄʹÓÃȨÏÞºÍʹÓõÄÖ÷»ú¡£ËüĬÈϵĴæ·ÅλÖÃÊÇ/etc/sudoers¡£
¡¡¡¡# 4.sudoʹÓÃʱ¼ä´ÁÎļþÀ´Íê³ÉÀàËÆ“ ......
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢Ðа汾×îÉÙµÄÃüÁîÒ²ÓÐ200¶à¸ö¡£ÕâÀï±ÊÕ߰ѱȽÏÖØÒªºÍʹÓÃƵÂÊ×î¶àµÄÃüÁ°´ÕÕËüÃÇÔÚϵͳÖеÄ×÷Ó÷ֳÉÏÂÃæÁù¸ö²¿·ÖÒ»Ò»½éÉÜ¡£±¾ÎÄÖ÷Òª²Î¿¼²ÜÔªÆäÏÈÉúµÄ¡¶Linux±ØѧµÄ60¸öÃüÁî¡·¡£
¡ô °²×°ºÍµÇ¼ÃüÁlogin¡¢shutdown¡¢halt¡¢reboot¡¢install¡¢mount¡¢umount¡¢chsh¡¢exit¡¢last£»
¡ô Îļþ´¦ÀíÃüÁfile¡¢mkdir¡¢grep¡¢dd¡¢find¡¢mv¡¢ls¡¢diff¡¢cat¡¢ln£»
¡ô ϵͳ¹ÜÀíÏà¹ØÃüÁdf¡¢top¡¢free¡¢quota¡¢at¡¢lp¡¢adduser¡¢groupadd¡¢kill¡¢crontab£»
¡ô ÍøÂç²Ù×÷ÃüÁifconfig¡¢ip¡¢ping¡¢netstat¡¢telnet¡¢ftp¡¢route¡¢rlogin¡¢rcp¡¢finger¡¢mail¡¢ nslookup£»
¡ô ϵͳ°²È«Ïà¹ØÃüÁpasswd¡¢su¡¢umask¡¢chgrp¡¢chmod¡¢chown¡¢chattr¡¢sudo ps¡¢who£»
¡ô ÆäËüÃüÁtar¡¢unzip¡¢gunzip¡¢unarj¡¢mtools¡¢man¡¢unendcode¡¢uudecode¡£
LinuxÃüÁîÕûÀí£¨1£© ......
×ܼǼÊý:5772; ×ÜÒ³Êý:962; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] 4
[5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ