Powering the Future of Network Software & Applications The Open Source Data Plane Development Kit Accelerating Network Performance
大åéä»æ°ã«ããASCII.jpã®é£è¼è¨äºããã¼ããããã§ãããï¼å½ä¸ããã»ããµã¼äºæ ãã®äººæ°ã³ã¼ãã¼ãå¿ãå»ãããCPUé»æ´å²ãIntel/AMDãæ¯ãè¿ããããªã失æä½ãã¡ãããæ¸ç±åããã¦7æ10æ¥ã«çºå£²ããããã¨ã¨ãªãã¾ããï¼ CPUé»æ´å²ã¯2011å¹´8æããã4ãµæã«æ¸¡ã£ã¦æ²è¼ãããã³ã¼ãã¼ã§ãã¤ã³ãã«ãAMDã®ããã»ããµã¼ã®ä¸ããããé»æ´å²ãã¨å¼ã°ããã®ã«ãµãããã製å(ãããã¯è£½ååãããªãã£ããã®)ãããã¯ã¢ãããããã¯ã©ã®ãããªèæ¯ã®å ã«ç»å ´ããã©ããã£ãã³ã³ã»ããã§éçºãããããã¦ãªã失æããã®ãã解説ããé£è¼ã§ããããé»æ´å²ã¨ãã£ãããã®CPUã ããï¼ãããªãã¢ã¬ããªãï¼ãã¨ãã£ãè°è«ã交ããããããã§ããã¾ãé£è¼ã®å¥½è©ãåãã¦ãã°ã©ãã£ãã¯ã¹ç·¨ã§ãããGPUé»æ´å²ããæ²è¼ãã¦ããã¾ãã ç»å ´ããããã»ããµã¼ã¯ã80年代åæã®ãiAPX 432ãããã2007å¹´ç»å ´ã®
以åãã®ãµã¤ãã¨ããã°ã«ï¼ä½åº¦ãã¢ã©ã¤ã³ã¡ã³ãã«é¢ããè¨äºãæ¸ãã¾ãã (ãµã¤ãå é¢é£ãã¼ã¸åç §)ï¼ ãã®ããããã¢ã©ã¤ã³ã¡ã³ããã§æ¤ç´¢ãã¦æ¥ã¦ããã人ãå¤ãã®ã§ï¼ éå»ã®è¨äºã«å çä¿®æ£ãã¦ãã®ãã¼ã¸ãæ°ãã«ä½æãã¾ããï¼ å çããç¹ã¯æ¬¡ã®ã¨ããã§ãï¼ ã¢ã©ã¤ã³ã¡ã³ãã¨ã¡ã¢ãªã¢ã¯ã»ã¹åæ°ã®é¢ä¿ãããããããããããï¼ (ã»ãã®å°ã) å³ãå°å ¥ãã¾ããï¼ ããã¼ã¿ãã¢ã©ã¤ã³ããã¦ããªãã¨ã¡ã¢ãªã¢ã¯ã»ã¹åæ°ãå¢ããã ã¨è¨èã§èª¬æãã¦ãããµã¤ãã¯å¤ãã®ã§ããï¼ å³ã§ç¤ºãã¦ããã¨ããã¯ã¾ã è¦ããã¨ããã¾ããï¼ ã¢ã©ã¤ã³ããã¦ããªãã¢ãã¬ã¹ã«ãã¼ã¿ãæ¸ãè¾¼ãå ´åï¼ èªã¿åºãã®å ´å以ä¸ã«ã¡ã¢ãªã¢ã¯ã»ã¹åæ°ããããå¯è½æ§ããããã¨ã追è¨ãã¾ããï¼ ä»¥åã¯ãè¤åãã¼ã¿å (é åï¼æ§é ä½ï¼å ±ç¨ä½) ã®ã¢ã©ã¤ã³ã¡ã³ããã¯ã»ã¨ãã©èªæã®ãã¨ã ã¨æã£ã¦ããã®ã§è»½ãæµãã¦ãã¾ãããï¼ æå¤ãªãã¨ã«ããã解説ãã¦ã
Linuxã«ã¼ãã«*1ã«ã¯ãCPUãæã£ã¦ããåçãªã¯ããã¯å¨æ³¢æ°ãé»å§(対å¿ãã¦ããå ´å)ã®å¤æ´æ©è½ãå©ç¨ããããã®cpufreqã¨ããä»çµã¿ãããã (2014/11/14)æ¬è¨äºã®å 容ã¯ææ°ã§ã¯ãªããããã¾ã¨ãããã¥ã¡ã³ãã®åã»ã¯ã·ã§ã³ãåç §ã CPUãã©ã¤ã ã«ã¼ãã«ã®è¨å® ã¯ããã¯å¨æ³¢æ°ã®æ±ºå® governorã®æåå¤æ´ cpufreqã«é¢ããç¾å¨ã®å種ç¶æ ã®åå¾ ondemand governorã§ã®åä½æã«ããã¦ãCPUã¯ããã¯ãä¸ããCPU使ç¨çã®ãããå¤ cpufreqdã§å®ç¨çãªåçã¯ããã¯å¤æ´ãè¡ã è¨å® è¨å®ã®ãã¹ã ãããã¡ã¤ã«ã®æåå¤æ´ CPUãã©ã¤ãã¯ããã¯ãé»å§ã®å¤æ´ãããæ¹æ³ã¯CPUã«ãã£ã¦éããããCPUã®ç¨®é¡ãã¨ã«ããã¤ã¹ãã©ã¤ããç¨æããã¦ãããcpufreqã使ç¨ããã«ã¯ã 使ç¨ãã¦ããCPUãã¯ããã¯ãé»å§ã®å¤æ´ãããæ©è½ãæã£ã¦ãã¦ãBIOSã§
cpufreqã®å°å ¥å¾ãä¸é¨ã¢ããªã±ã¼ã·ã§ã³*1ã®ä½¿ç¨æãé¤ãã¦ã大é¨åã¯CPU使ç¨çã«åºã¥ãã¦èªåçã«ã¯ããã¯å¨æ³¢æ°ãé»å§ãä¸ãä¸ãããondemandã¨ããåä½ã¢ã¼ã(governor)ã§åããã¦ããã ã¨ãããããã®ã¯ããã¯å¨æ³¢æ°ã®å¤åããªã¢ã«ã¿ã¤ã ã§è¦ã¦ãã*2ã¨ããè² è·ãä¸ããã¨ããã«ã¯ããã¯ãä¸ãããè² è·ãä¸ããã¨ããã«ä¸ãããã®ã¯ããã®ã ãããã¾ãã«ãåå¿ãè¯ããã¦ã¯ããã¯å¤åã®é »åº¦ãç¡é§ã«é«ããªã£ã¦ãã¾ã£ã¦ãã¦ããã¾ããã¼ãã¦ã§ã¢ã«åªããã¨ã¯è¨ããªãæ°ãããã cpufreqã«ã¯ãondemandã¨ä¼¼ãåä½ã¢ã¼ãã«ãconservativeãããã*3ã®ã ããããããã¾ããã¥ã¼ãã³ã°ãããã¨ãã§ããã°ãé »ç¹ãªã¯ããã¯å¤åãããç¨åº¦æãããã¨ã¯å¯è½ãæå ã®ç°å¢ã§ã¯ãCompiz Fusionã®ã¹ã±ã¼ã«ãå種ã¹ã¤ããã£ã®ä½¿ç¨æããã¥ã¼ãã®ãã¦ã¹ã§ã®å転æãªã©ãCPUã®ä½¿ç¨çãä¸
ãã®Core 2 Duo E6600ã®PCã¯ããã¨ã¤ãã£ã±ãªãã«ããã®ã§ãï¼FreeBSDï¼ãã®ãã½ã³ã³ãç¡æå³ã«ç±ããªã£ã¦ã¾ãããï¼ âââ CPUã®æ¶è²»é»åãæ¸ããæ¹æ³ãåèã«ããã£ã¦é»åã調ã¹ããã¨ã«ããã ãã¨ãã¨ãsysctlã§ã¯ã dev.cpu.0.freq: 2400 dev.cpu.0.freq_levels: 2400/88000 1600/56000 dev.acpi_perf.0.freq_settings: 2400/88000 1600/56000 ã¨ãªã£ã¦ããããæ¸ãã¦ããã¨ããã«kldload cpufreqãããã¨ã dev.cpu.0.freq: 2400 dev.cpu.0.freq_levels: 2400/88000 2100/77000 1800/66000 1600/56000 1400/49000 1200/42000 1000/35000
Pythonã§å®æããé³å£°èªèãã®ä»çµã¿ãç¥ã Pythonã§é³å£°ãã¼ã¿ãæ±ãã«ã¯ï¼ã波形表示ããã¬ã¼ã ãã¨ã®ç¹å¾´éè¨ç®ã試ã 2024.12.19
Perl 㧠8ããã CPU ãä½ã - naoyaã®ã¯ã¦ãªãã¤ã¢ãªã¼ octopusãRubyã§å®è£ ãã¦ã¿ã¾ãããIOé¢ä¿ããªãã·ã§ã³ã¾ããã®å¦çã¯çç¥ãã¦ãã¾ããã§ããã ãRubyãããããã°ã©ã ãç®æãã¦ã¿ã¾ãããããã¾ãããªããã¼ãªå®è£ ã¯ãã¦ãã¾ããã ãã¡ã¤ã«: octopus3.rb #!/usr/bin/env ruby # -*- compile-command: "ruby -Ks octopus3.rb" -*- class OctopusVm REG_PC = 7 REG_RET = 6 REG_SP = 5 ZFLAG = 1 OCT_INST = { 0 => 'nop', 1 => 'mov', 2 => 'in', 3 => 'out', 4 => 'movi', 5 => 'addi', 6 => 'subi', 7 => 'muli', 8 => 'di
CPU ãä½ããã¨è¨ã£ã¦ããã¼ãã§ã¯ãªãã½ãããä»®æ³æ©æ¢°ã§ãã 2001 å¹´ãã UNIX USER ã§é£è¼ããã¦ãã西ç°äºããã®ãgccããã°ã©ãã³ã°å·¥æ¿ãããã¾ãããªãããããã¯ãã³ãã¼ãåãå¯ãã¦ååããé çªã«èªãã§ãã¾ããã¨ã¦ãããã«ãªãé£è¼ã§ãã ãã®é£è¼ä¸ã§ç¬¬10åããæ°åã«åãã¦éçºããã¦ãã octopus ã¨ãã 8 ããã CPU ã®ä»®æ³æ©æ¢°ãããã¾ãããªãªã¸ãã«ã¯ C è¨èªã§æ¸ããã¦ããã®ã§ããããã®è¨è¨ãè¦ã¦ãããã¯ä»ã®è¨èªã§ãä½ããã®ã§ã¯ãªãããã¨æã Perl ã«ç§»æ¤ãã¦ã¿ãã¨ãããªãã¨ãåä½ããããã¨ãã§ãã¾ããã以ä¸ã® URL ã«ã³ã¼ããå ¬éãã¾ãã(西ç°ããã«ç¢ºèªãåã£ãã¨ããããªãªã¸ãã«ã®ã½ã¼ã¹ã¯ Public Domain ã¨ã®ãã¨ã§ããããªãªã¸ãã«ã¯ http://www.skyfree.org/jpn/unixuser/ ãããã¦ã³ãã¼ãå¯è½ã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}