linux׼ʱÆ÷ÔõôÉó²é
Éó²é linux ׼ʱÆ÷µÄÒªÁìÓУºÉó²é /proc/timer_list ÎļþÒÔ»ñÈ¡ËùÓÐÔ˶¯×¼Ê±Æ÷ÐÅÏ¢¡£Éó²é /proc/interrupts ÎļþÏàʶ׼ʱÆ÷ÖÐÖ¹ÐÅÏ¢¡£Ê¹Óà top ÏÂÁîÉó²éÿ¸öÀú³ÌµÄ׼ʱÆ÷ʹÓÃÇéÐΡ£Ê¹Óà ps -l ÏÂÁîÉó²éÿ¸öÀú³ÌµÄ׼ʱÆ÷ʹÓÃÇéÐΡ£Ê¹Óà dmesg ÏÂÁîÉó²éÄں˻º³åÇøµÄ׼ʱÆ÷ÊÂÎñÐÅÏ¢¡£Ê¹Óà timerstat ¹¤¾ßÉó²éµ¥¸ö׼ʱÆ÷µÄÏêϸÐÅÏ¢¡£
ÔõÑùÉó²é Linux ׼ʱÆ÷
Éó²é Linux ׼ʱÆ÷µÄÒªÁìÓÐÐí¶à£¬ÒÔÏÂÊÇһЩ³£¼ûµÄÒªÁ죺
1. /proc/timer_list
´ËÎļþ°üÀ¨ÓйØϵͳÉÏËùÓÐÔ˶¯×¼Ê±Æ÷µÄÐÅÏ¢¡£ËüÏÔʾÁË׼ʱÆ÷ËùÊôµÄÀú³Ì¡¢µ½ÆÚʱ¼ä¡¢ÒÔ¼°´¦Àí³ÌÐòÃû³Æ¡£
2. /proc/interrupts
´ËÎļþ°üÀ¨ÓйØϵͳÉÏËùÓÐÖÐÖ¹µÄÐÅÏ¢£¬°üÀ¨×¼Ê±Æ÷ÖÐÖ¹¡£ËüÏÔʾÁËÖÐÖ¹ºÅ¡¢Ð§ÀͳÌÐòÃû³Æ¡¢ÒÔ¼°µ½ÏÖÔÚΪֹÊÕµ½µÄÖÐÖ¹´ÎÊý¡£
3. top ÏÂÁî
top ÏÂÁîÊÇÒ»¸ö½»»¥Ê½Àú³Ì¼à¿ØÆ÷£¬Ëü¿ÉÒÔÏÔʾÓйØϵͳÉÏÕýÔÚÔËÐÐÀú³ÌµÄÐÅÏ¢¡£Ëü°üÀ¨ÓйØÿ¸öÀú³ÌµÄ CPU ʹÓÃÇéÐΡ¢ÄÚ´æʹÓÃÇéÐΡ¢ºÍ׼ʱÆ÷ʹÓÃÇéÐεÄÐÅÏ¢¡£
4. ps ÏÂÁî
ps ÏÂÁîÓÃÓÚÏÔʾϵͳÊÜÆÇ°ÕýÔÚÔËÐеÄÀú³ÌµÄÐÅÏ¢¡£Í¨¹ýʹÓà -l Ñ¡ÏÄú¿ÉÒÔÉó²éÓйØÿ¸öÀú³ÌµÄÏêϸͳ¼ÆÐÅÏ¢£¬°üÀ¨×¼Ê±Æ÷ʹÓÃÇéÐΡ£
5. dmesg ÏÂÁî
dmesg ÏÂÁîÓÃÓÚÏÔʾÄں˻º³åÇøµÄÈÕÖ¾ÐÂÎÅ¡£Ëü¿ÉÄÜ°üÀ¨ÓйØ׼ʱÆ÷ÊÂÎñµÄÐÅÏ¢£¬ÀýÈç׼ʱÆ÷½¨Éè»ò´¥·¢¡£
ΪÁËÉó²éÌض¨×¼Ê±Æ÷µÄÏêϸÐÅÏ¢£¬¿ÉÒÔʹÓà timerstat ¹¤¾ß¡£´Ë¹¤¾ß¿ÉÒÔÏÔʾÓйص¥¸ö׼ʱÆ÷µÄÏêϸÐÅÏ¢£¬ÀýÈçµ½ÆÚʱ¼ä¡¢´¦Àí³ÌÐòÃû³Æ£¬ÒÔ¼°Ê£Óàʱ¼ä¡£
ÒÔÉϾÍÊÇlinux׼ʱÆ÷ÔõôÉó²éµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡