{"id":3039,"date":"2026-04-12T11:35:00","date_gmt":"2026-04-12T02:35:00","guid":{"rendered":"https:\/\/bokumin.org\/blog\/?p=3039"},"modified":"2026-04-10T09:19:00","modified_gmt":"2026-04-10T00:19:00","slug":"freebsd%e3%81%a7c-state%e3%81%ae%e5%ae%9f%e6%85%8b%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8bacpi%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab","status":"publish","type":"post","link":"https:\/\/bokumin.org\/blog\/2026\/04\/12\/freebsd%e3%81%a7c-state%e3%81%ae%e5%ae%9f%e6%85%8b%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8bacpi%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab\/","title":{"rendered":"FreeBSD\u3067\u5b9f\u969b\u306eC-state\u3092\u78ba\u8a8d\u3059\u308b\uff08ACPI\u30c6\u30fc\u30d6\u30eb\uff09"},"content":{"rendered":"<p><!-- WordPress\u6295\u7a3f\u30b3\u30f3\u30c6\u30f3\u30c4\uff08\u30d6\u30ed\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\uff0f\u30af\u30e9\u30b7\u30c3\u30af\u30a8\u30c7\u30a3\u30bf\u3069\u3061\u3089\u306b\u3082\u5bfe\u5fdc\uff09 --><\/p>\n\n\n<p><strong>Determining C-states using ACPI table analysis on FreeBSD<\/strong><\/p>\n\n\n\n<p>\u524d\u56de\u306fOpenBSD\u3067dmesg\u306eMWAIT\u5024\u304b\u3089C-state\u306e\u5b9f\u614b\u3092\u8aad\u307f\u53d6\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u540c\u3058\u7591\u554f\u3092FreeBSD\u3067\u6398\u308a\u4e0b\u3052\u3066\u307f\u305f\u8a71\u3067\u3059\u3002FreeBSD\u3067\u306f <code>sysctl<\/code> \u3067\u3088\u308a\u8a73\u7d30\u306a\u6570\u5024\u304c\u5f97\u3089\u308c\u308b\u306e\u3067\u3001ACPI\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u76f4\u63a5\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br>\u203b\u4ee5\u524d\u306e\u8a18\u4e8b\u306f\u3053\u3061\u3089\u304b\u3089\u78ba\u8a8d\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-blog-bokumin-org wp-block-embed-blog-bokumin-org\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"wp-embed-custom-wrapper my-6 bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-md transition-shadow duration-300\"><blockquote class=\"wp-embedded-content\" data-secret=\"ZXVzpRShnV\"><a href=\"https:\/\/bokumin.org\/blog\/2026\/04\/09\/openbsd%e3%81%a7%e5%ae%9f%e9%9a%9b%e3%81%aec-state%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b%ef%bc%88mwait%ef%bc%89\/\">OpenBSD\u3067\u5b9f\u969b\u306eC-state\u3092\u78ba\u8a8d\u3059\u308b\uff08MWAIT\uff09<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;OpenBSD\u3067\u5b9f\u969b\u306eC-state\u3092\u78ba\u8a8d\u3059\u308b\uff08MWAIT\uff09&#8221; &#8212; Blog | bokumin.org\" src=\"https:\/\/bokumin.org\/blog\/2026\/04\/09\/openbsd%e3%81%a7%e5%ae%9f%e9%9a%9b%e3%81%aec-state%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b%ef%bc%88mwait%ef%bc%89\/embed\/#?secret=3HM4G1mPPo#?secret=ZXVzpRShnV\" data-secret=\"ZXVzpRShnV\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u306f\u3058\u3081\u306b<\/strong><\/h2>\n\n\n\n<p>OpenBSD\u3068FreeBSD\u306e\u5927\u304d\u306a\u9055\u3044\u306e\u3072\u3068\u3064\u306fC-state\u306e\u53ef\u8996\u6027\u3067\u3059\u3002OpenBSD\u306fdmesg\u3092\u8aad\u307e\u306a\u3044\u3068\u5b9f\u614b\u304c\u898b\u3048\u307e\u305b\u3093\u304c\u3001FreeBSD\u306f <code>sysctl<\/code> \u30b3\u30de\u30f3\u30c9\u3067\u76f4\u63a5\u6570\u5024\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u305d\u306e\u6570\u5024\u306e\u30e9\u30d9\u30eb\u304c\u5b9f\u614b\u3092\u6b63\u78ba\u306b\u53cd\u6620\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u5225\u306e\u8a71\u3067\u3059\u3002\u4eca\u56de\u306f\u305d\u3053\u3092\u78ba\u304b\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5b9f\u884c\u3057\u305f\u74b0\u5883<\/strong><\/h2>\n\n\n\n<p>OS: FreeBSD 14.4-RELEASE<br>CPU: Intel Xeon E5-2650L v4 (Broadwell-EP)<br>\u96fb\u529b\u7ba1\u7406: HWPM (OOB\u30e2\u30fc\u30c9) \u6709\u52b9<\/p>\n\n\n\n<p>E5-2650L v4\u306fTDP\u304c\u4f4e\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30e2\u30c7\u30eb\u3067\u3059\u304c\u3001\u30a2\u30a4\u30c9\u30eb\u6642\u306eC-state\u52d5\u4f5c\u306f\u540c\u4e16\u4ee3\u306e\u4ed6\u306eXeon v4\u3068\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>FreeBSD\u3067\u306eC-state\u78ba\u8a8d<\/strong><\/h2>\n\n\n\n<p>\u307e\u305a <code>sysctl<\/code> \u3067OS\u304c\u8a8d\u8b58\u3057\u3066\u3044\u308bC-state\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$ sysctl dev.cpu.0.cx_supported\ndev.cpu.0.cx_supported: C1\/1\/1 C2\/2\/15 C3\/2\/41<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">$<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">sysctl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">dev.cpu.0.cx_supported<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">dev.cpu.0.cx_supported:<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">C1\/1\/1<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">C2\/2\/15<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">C3\/2\/41<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u8868\u793a\u306e\u8aad\u307f\u65b9\u306f\u540d\u524d\/\u30bf\u30a4\u30d7\/\u30ec\u30a4\u30c6\u30f3\u30b7(\u03bcs)\u3067\u3059\u3002\u3053\u3053\u3067\u6c17\u306b\u306a\u308b\u306e\u304c <strong>C3\u306e\u30ec\u30a4\u30c6\u30f3\u30b7\u300c41\u300d<\/strong> \u3067\u3059\u3002\u4e00\u822c\u7684\u306aACPI C3\u306e\u5fa9\u5e30\u30ec\u30a4\u30c6\u30f3\u30b7\u306f10\u301c20\u03bcs\u7a0b\u5ea6\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u300141\u03bcs\u306f\u305d\u308c\u3088\u308a\u5927\u5e45\u306b\u5927\u304d\u3044\u3067\u3059\u3002Broadwell-EP\u4e16\u4ee3\u306eC6\u306e\u6a19\u6e96\u7684\u306a\u5fa9\u5e30\u30ec\u30a4\u30c6\u30f3\u30b7\u3068\u8fd1\u3044\u5024\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u6bb5\u968e\u3067\u5b9f\u969b\u306fC6\u307d\u3044\u306a\u3042\u306a\u3093\u3066\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u524d\u56de\u306eOpenBSD\u3068\u540c\u3058\u69cb\u56f3\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>ACPI\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u5b9f\u614b\u3092\u78ba\u8a8d\u3059\u308b<\/strong><\/h2>\n\n\n\n<p>FreeBSD\u3067\u306f <code>acpica-tools<\/code> \u3092\u4f7f\u3063\u3066ACPI\u30c6\u30fc\u30d6\u30eb\u3092\u30c0\u30f3\u30d7\u30fb\u30c7\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c4\u30fc\u30eb\u306e\u6e96\u5099<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>sudo pkg install acpica-tools<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">sudo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pkg<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">acpica-tools<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">ACPI\u30c6\u30fc\u30d6\u30eb\u306e\u30c0\u30f3\u30d7\u3068\u5909\u63db<\/h3>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u591a\u6570\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\/tmp\u4ee5\u4e0b\u3067\u4f5c\u696d\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># \u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u3067\u30c0\u30f3\u30d7\nsudo acpidump -o acpi_data.bin\n\n# \u5404\u30c6\u30fc\u30d6\u30eb\u306b\u5206\u5272\nacpixtract -a acpi_data.bin\n\n# \u30d0\u30a4\u30ca\u30ea(.dat)\u3092ASL\u30bd\u30fc\u30b9(.dsl)\u306b\u5909\u63db\niasl -d *.dat<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\"># \u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u3067\u30c0\u30f3\u30d7<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">sudo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">acpidump<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-o<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">acpi_data.bin<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\"># \u5404\u30c6\u30fc\u30d6\u30eb\u306b\u5206\u5272<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">acpixtract<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-a<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">acpi_data.bin<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\"># \u30d0\u30a4\u30ca\u30ea(.dat)\u3092ASL\u30bd\u30fc\u30b9(.dsl)\u306b\u5909\u63db<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">iasl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-d<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">*<\/span><span style=\"color: #CE9178\">.dat<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5909\u63db\u5f8c\u3001\u96fb\u6e90\u7ba1\u7406\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b <code>ssdt1.dsl<\/code> \u306e\u4e2d\u304b\u3089\u30ec\u30a4\u30c6\u30f3\u30b7\u502441\uff0816\u9032\u6570\u3067 <code>0x29<\/code>\uff09\u3092\u624b\u304c\u304b\u308a\u306b\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>grep -B 10 \"0x29\" ssdt1.dsl<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">grep<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-B<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">10<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;0x29&quot;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">ssdt1.dsl<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u767a\u898b\u3057\u305fASL\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"\" style=\"font-size:.875rem;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Register (FFixedHW,\n    0x01,               \/\/ Bit Width\n    0x02,               \/\/ Bit Offset\n    0x0000000000000020, \/\/ Address (MWAIT Hint)\n    0x03,               \/\/ Access Size\n    )\n},\n0x02,\n0x29, \/\/ Latency\uff0816\u9032\u65700x29 = 10\u9032\u657041\uff09<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">Register<\/span><span style=\"color: #D4D4D4\"> (FFixedHW,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #DCDCAA\">0x01,<\/span><span style=\"color: #D4D4D4\">               <\/span><span style=\"color: #CE9178\">\/\/<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Bit<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Width<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #DCDCAA\">0x02,<\/span><span style=\"color: #D4D4D4\">               <\/span><span style=\"color: #CE9178\">\/\/<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Bit<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Offset<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #DCDCAA\">0x0000000000000020,<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/\/<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Address<\/span><span style=\"color: #D4D4D4\"> (MWAIT <\/span><span style=\"color: #CE9178\">Hint<\/span><span style=\"color: #D4D4D4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #DCDCAA\">0x03,<\/span><span style=\"color: #D4D4D4\">               <\/span><span style=\"color: #CE9178\">\/\/<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Access<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Size<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    )<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">0x02,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">0x29,<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/\/<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Latency\uff0816\u9032\u65700x29<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">=<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">10<\/span><span style=\"color: #CE9178\">\u9032\u657041\uff09<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>2\u3064\u306e\u6570\u5024\u306b\u6ce8\u76ee\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MWAIT Hint = <code>0x20<\/code><\/strong>\uff1a\u4e0a\u4f4d\u30cb\u30d6\u30eb\u304c <code>0x2x<\/code> \u2192 C6\u30b9\u30c6\u30fc\u30c8\u3078\u306e\u79fb\u884c\u3092\u610f\u5473\u3057\u307e\u3059\uff08\u524d\u56de\u306eOpenBSD\u8a18\u4e8b\u3068\u540c\u3058\u8aad\u307f\u65b9\u3067\u3059\uff09<\/li>\n\n\n\n<li><strong>Latency = <code>0x29<\/code>\uff08= 41\uff09<\/strong>\uff1a<code>sysctl<\/code> \u304c\u5831\u544a\u3057\u3066\u3044\u305f\u5024\u3068\u5b8c\u5168\u306b\u4e00\u81f4<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<strong>FreeBSD\u304c\u300cC3\u300d\u3068\u8868\u793a\u3057\u3066\u3044\u308b\u30b9\u30c6\u30fc\u30c8\u306f\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30ec\u30d9\u30eb\u3067\u306fC6\u3078\u306e\u547d\u4ee4\uff08MWAIT 0x20\uff09\u304c\u9001\u3089\u308c\u3066\u3044\u308b<\/strong>\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002OpenBSD\u3067 <code>0x21<\/code> \u3092\u78ba\u8a8d\u3057\u305f\u3068\u304d\u3068\u540c\u3058\u69cb\u9020\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>MWAIT\u30d2\u30f3\u30c8\u5024\u306e\u65e9\u898b\u8868<\/strong><\/h2>\n\n\n\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u3082\u89e6\u308c\u307e\u3057\u305f\u304c\u3001\u6539\u3081\u3066\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u30d2\u30f3\u30c8\u5024(\u4e0a\u4f4d)<\/td><td>\u5bfe\u5fdc\u3059\u308bIntel\u5b9f\u88c5\u306eC-state<\/td><\/tr><tr><td>0x0x<\/td><td>C1-state<\/td><\/tr><tr><td>0x1x<\/td><td>C3-state<\/td><\/tr><tr><td>0x2x<\/td><td>C6-state<\/td><\/tr><tr><td>0x3x<\/td><td>C7-state<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>OS\u304c\u8868\u793a\u3059\u308b\u300cC1\/C2\/C3\u300d\u3068\u3044\u3046\u30e9\u30d9\u30eb\u306fACPI\u898f\u683c\u4e0a\u306e\u5206\u985e\u3067\u3042\u308a\u3001\u5b9f\u969b\u306b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3078\u9001\u3089\u308c\u308b\u547d\u4ee4\uff08MWAIT\u30d2\u30f3\u30c8\uff09\u3068\u306f\u5225\u7269\u3067\u3059\u3002\u3053\u306e\u70b9\u306fIntel\u306eSDM\u306b\u3082\u660e\u8a18\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u88dc\u8db3 HWPM\u306b\u3064\u3044\u3066<\/strong><\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u74b0\u5883\u3067\u306f <strong>HWPM\uff08Hardware P-State Management\uff09\u3092OOB\u30e2\u30fc\u30c9<\/strong>\u3067\u6709\u52b9\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e2\u30fc\u30c9\u3067\u306fCPU\u81ea\u8eab\u304cP-state\uff08\u52d5\u4f5c\u5468\u6ce2\u6570\uff09\u3092\u81ea\u5f8b\u7684\u306b\u5236\u5fa1\u3059\u308b\u305f\u3081\u3001dmesg\u306b <code>est<\/code>\uff08Enhanced SpeedStep\uff09\u30c9\u30e9\u30a4\u30d0\u306e\u30a2\u30bf\u30c3\u30c1\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u6b63\u5e38\u306a\u6319\u52d5\u3067\u3059\u3002<\/p>\n\n\n\n<p>FreeBSD\u306fLinux\u306e <code>intel_pstate<\/code> \u30c9\u30e9\u30a4\u30d0\u306b\u76f8\u5f53\u3059\u308bHWPM\u5b8c\u5168\u5bfe\u5fdc\u5b9f\u88c5\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3001OOB\u30e2\u30fc\u30c9\uff08OS\u304c\u4ecb\u5165\u3057\u306a\u3044\u5b8c\u5168\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u81ea\u5f8b\u5236\u5fa1\uff09\u304c\u73fe\u5b9f\u7684\u306a\u9078\u629e\u306b\u306a\u308a\u307e\u3059\u3002Native\u30e2\u30fc\u30c9\u306fFreeBSD\u3067powerd\u304c\u52d5\u3044\u3066\u3044\u308b\u3068\u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u3067\u3057\u304b\u8d77\u52d5\u3057\u306a\u3044\u30b1\u30fc\u30b9\u3082\u78ba\u8a8d\u3057\u3066\u3044\u308b\u305f\u3081\u3001FreeBSD\u3067\u4f7f\u3046\u306a\u3089OOB\u306e\u307b\u3046\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u307e\u3068\u3081<\/strong><\/h2>\n\n\n\n<p>FreeBSD\u3067\u306f <code>sysctl dev.cpu.0.cx_supported<\/code> \u306e\u30ec\u30a4\u30c6\u30f3\u30b7\u5024\u304c\u624b\u304c\u304b\u308a\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u5024\u304c\u4f1d\u7d71\u7684\u306aACPI C3\uff0810\u301c20\u03bcs\uff09\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u3001ACPI\u30c6\u30fc\u30d6\u30eb\u3092\u6398\u308a\u4e0b\u3052\u308b\u3053\u3068\u3067\u5b9f\u614b\u304c\u898b\u3048\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OS\u306e\u8868\u793a\u540d\uff08C1\/C2\/C3\uff09\u306f\u3042\u304f\u307e\u3067ACPI\u30e9\u30d9\u30eb<\/li>\n\n\n\n<li>\u5b9f\u969b\u306e\u547d\u4ee4\u306fMWAIT\u30d2\u30f3\u30c8\u5024\u3067\u6c7a\u307e\u308b<\/li>\n\n\n\n<li>\u30d2\u30f3\u30c8\u5024\u306e\u4e0a\u4f4d\u30cb\u30d6\u30eb\u304cC6\uff080x2x\uff09\u306a\u3089\u3001\u5341\u5206\u306b\u6df1\u3044\u7701\u96fb\u529b\u72b6\u614b\u306b\u5165\u3063\u3066\u3044\u308b<\/li>\n\n\n\n<li>ACPI\u30c6\u30fc\u30d6\u30eb\u306e\u30c0\u30f3\u30d7\u306fFreeBSD\u3067\u3082 <code>acpica-tools<\/code> \u3067\u624b\u8efd\u306b\u884c\u3048\u308b<\/li>\n<\/ul>\n\n\n\n<p>OpenBSD\u306fdmesg\u3092\u8aad\u3080\u3060\u3051\u3067\u6e08\u307f\u307e\u3057\u305f\u304c\u3001FreeBSD\u306fsysctl\u3068ACPI\u30c6\u30fc\u30d6\u30eb\u3068\u3044\u3046\u4e8c\u6bb5\u69cb\u3048\u3067\u3001\u3088\u308a\u6df1\u304f\u78ba\u8a8d\u3067\u304d\u308b\u3068\u3044\u3046\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002\u8ab0\u304b\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u304a\u308f\u308a<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u53c2\u8003URL<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.intel.com\/content\/www\/us\/en\/developer\/articles\/technical\/intel-sdm.html\" target=\"_blank\" rel=\"noreferrer noopener\">Intel\u00ae 64 and IA-32 Architectures Software Developer&#8217;s Manual<\/a> (Volume 2B: MWAIT instruction)<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/torvalds\/linux\/blob\/master\/drivers\/idle\/intel_idle.c\" target=\"_blank\" rel=\"noreferrer noopener\">github: Linux Kernel Source: intel_idle.c<\/a> (Broadwell C-states definition)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.kernel.org\/doc\/html\/latest\/admin-guide\/pm\/cpuidle.html\" target=\"_blank\" rel=\"noreferrer noopener\">Linux Kernel Documentation: CPU Idle Time Management<\/a><\/li>\n\n\n\n<li>FreeBSD man: sysctl(8), acpidump(8)\u306a\u3069\u306a\u3069<\/li>\n\n\n\n<li><a href=\"#\">OpenBSD\u3067\u5b9f\u969b\u306eC-state\u3092\u78ba\u8a8d\u3059\u308b\uff08MWAIT\uff09<\/a>\uff08\u524d\u56de\u306e\u8a18\u4e8b\uff09<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Determining C-states using ACPI table analysis on FreeBSD \u524d\u56de\u306fOpenBSD\u3067dmesg\u306eMWAIT\u5024\u304b\u3089C-state\u306e\u5b9f\u614b\u3092\u8aad\u307f\u53d6\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[212,108,42],"tags":[232,229],"class_list":["post-3039","post","type-post","status-publish","format-standard","hentry","category-cpu","category-freebsd","category-hardware","tag-acpica-tools","tag-c-state"],"_links":{"self":[{"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/posts\/3039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/comments?post=3039"}],"version-history":[{"count":10,"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/posts\/3039\/revisions"}],"predecessor-version":[{"id":3051,"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/posts\/3039\/revisions\/3051"}],"wp:attachment":[{"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/media?parent=3039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/categories?post=3039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bokumin.org\/blog\/wp-json\/wp\/v2\/tags?post=3039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}