éå¶ä½¿ç¨å°CPULimitå¨LinuxçCPUç¨æ³
ä½ å¯è½å·²ç»ç¥éå¦ä½æ£æ¥ä»»ä½è¿ç¨çCPUå©ç¨çã ç¶èï¼æ å¿ä»»ä½è¿ç¨ä¸æ¶èäºè¿å¤çCPUåï¼ ä½ åºè¯¥ç¥éï¼ä½ å¯ä»¥æ§å¶ä»»ä½è¿ç¨çCPUå©ç¨çã å°CPULimitæ¯ä¸ä¸ªå 费软件ï¼ä»¥éå¶ä»»ä½è¿ç¨çCPUç±CPUéå¶å¨ã è¿éæ¯æç½ç«exceptsï¼
çå°CPULimitæ¯ä¸ä¸ªç®åçæ¹æ¡ï¼è¯å¾éå¶è¿ç¨çCPU使ç¨çï¼ä»¥ç¾åæ¯è¡¨ç¤ºï¼å¨æ²¡æCPUæ¶é´ï¼ã è¿æ¯é常æç¨çæ§å¶æ¹å¤çä½ä¸ï¼å½ä½ ä¸å¸æä»ä»¬åäºè¿å¤çCPUã å®ä¸éåè¡å¨niceå¼æå ¶ä»è°åº¦ä¼å 级çä¸è¥¿ï¼ä½çæ£ç CPU使ç¨çã æ¤å¤ï¼å®è½å¤ä½¿èªå·±éåºæ´ä½ç³»ç»è´è½½ï¼å¨æåè¿ éã
å®æ¯å¦ä½å·¥ä½
请注æï¼ä½ ä¸éè¦è¯»è¿ä¸æ®µï¼ä¸ºäºä½¿ç¨å°CPULimitï¼ä½ å¯ä»¥å®å
¨å°è·³è¿å®ï¼å¦æä½ ä¸æå
´è¶£çè°æ´å°CPULimitã
æ以ï¼ä½ æ¯å¥½å¥å°æ³ç¥éå°CPULimitçç§å¯ å½ç¶ï¼æ²¡æä»ä¹ç§å¯ï¼å¦æä½ æ¯ä¸ä¸ªCå¼åï¼ä½æä¼å°½éç»å¤§å®¶è§£éã å®æçå°CPULimitå·¥ä½å¨ç¨æ·ç©ºé´ï¼å æ¤å®ä¸ä¼å¹²æ°ä¸Linuxè°åº¦ã åºæ¬ä¸ï¼å¯æç»æåç®æ çè¿ç¨ä¸ï¼æ¨å¯ä»¥æå®PIDï¼å称ï¼æå½ä»¤è¡ï¼å¹¶éè¿åéSIGSTOPåSIGCONTä¿¡å·æ¢å¤ã ä¿¡å·éè¿å°CPULimitåéå¨éå½çæ¶åï¼æ ¹æ®ç¨æ·æå®çéå¶åé
读çè¿ç¨ä¸ï¼ä»/ procç»è®¡ã
ç³»ç»éæ±
å°CPULimitåºè¯¥è¿è¡å¨æ¯ä¸ä¸ªLinux 2.2ææ´é«ã æ®æ¥éç±å¤ä¸ªç¨æ·ï¼å°CPULimitæ£å¸¸çè³SMP硬件ä¸ï¼ä½èèï¼å¦æä½ æå¤ä¸ªCPUï¼CPU使ç¨çï¼è§ä¸æï¼çå«ä¹æ¯æå·®å«ä¸å¤§ã
å¦æä½ å¯ä»¥ä¿®æ¹ççå°CPULimit使å
¶è¿è¡å¨å¦ä¸ä¸ªæä½ç³»ç»çæºä»£ç ï¼è¯·éç¥æï¼è¿æ ·æå°±å¯ä»¥åå¸ä½ ç代ç ã æ认为å¯ä¸çé便æºå¼ä»£ç éåè¿ç¨å表ï¼å¹¶å¾å°è¿ç¨çç»è®¡æ°æ®ã
å®è£
ä½ å¯ä»¥ä»ç½ç«ä¸ä¸è½½ææ°çã ç°å¨ææ°çæ¯1.1 ã
æ¨ä¹å¯ä»¥ä¸è½½ä»SVNæºï¼
svnç»å¸htââtps://cpulimit.svn.sourceforge.net/svnroot/cpulimit/trunkå°CPULimitç
ç¶åæåæºï¼å¹¶ç¨makeç¼è¯ï¼
zxfå°CPULimit-.tar.gz
CDå°CPULimit-
使
ç¨æ³
éå¶çè¿ç¨ä¸ï¼ æ´æ³¾æµè³20ï¼ çCPUå¯æ§è¡æ件çå称ï¼
å°CPULimit EXE bigloop-20éå¶
å°CPULimit EXE / usr / binä¸/ç®é¦é20
éå¶ä¸ä¸ªè¿ç¨çPIDè³25ï¼ çCPUï¼
å°CPULimit PID 3982-55éå¶
éè¿å½ä»¤è¡å¯å¨ä¸ä¸ªè¿ç¨ï¼å¹¶æå®éå¶å¨30ï¼ ï¼ä» å¼åçæ¬ï¼ï¼ï¼
å°CPULimité30ç/ etc / rc.dä¸/ rc.boincå¼å§
è½½å ¥ä¸...
ç¸å ³æç« ï¼
è¿æ¯ä¸ä¸ªä¼å¤§çæ³æ³ã æè§è¿å¤ªå¤çç½ç«é½æåï¼ç±äºè¿åº¦ä½¿ç¨æå¡å¨çå¤çå¨ã 主æºå客æ·ï¼è¿æ ·å¯ä»¥èçå¾å¤æ¶é´ï¼éº»ç¦åéé±ã =ï¼
è½½å ¥ä¸...