{"id":3023,"date":"2025-10-31T17:19:07","date_gmt":"2025-10-31T08:19:07","guid":{"rendered":"https:\/\/blog.id774.net\/entry\/?p=3023"},"modified":"2025-10-31T17:39:35","modified_gmt":"2025-10-31T08:39:35","slug":"%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%a1%e3%83%a2%e3%83%aa%e8%aa%bf%e6%9f%bb%e7%b5%8c%e7%b7%af%e3%81%ae%e8%a8%98%e9%8c%b2","status":"publish","type":"post","link":"https:\/\/blog.id774.net\/entry\/2025\/10\/31\/3023\/","title":{"rendered":"\u958b\u767a\u74b0\u5883\u306b\u304a\u3051\u308b\u30e1\u30e2\u30ea\u8abf\u67fb\u7d4c\u7def\u306e\u8a18\u9332"},"content":{"rendered":"<p><a href=\"https:\/\/blog.id774.net\/entry\/2025\/08\/31\/2974\/\">\u4e3b\u8981\u306a\u74b0\u5883<\/a>\u306e\u3046\u3061\u958b\u767a\u74b0\u5883\u306e\u4e00\u90e8\u306b\u304a\u3044\u3066\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u304c\u9ad8\u304f\u898b\u3048\u308b\u72b6\u6cc1\u304c\u3042\u3063\u305f\u305f\u3081\u3001\u672c\u5f53\u306b\u4e0d\u8db3\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u691c\u8a3c\u3057\u305f\u3002\u3053\u306e\u74b0\u5883\u306f <a href=\"https:\/\/blog.id774.net\/entry\/2025\/08\/13\/2940\/\">Debian 13<\/a> \u3067\u7269\u7406\u30e1\u30e2\u30ea\u306b\u3064\u3044\u3066\u306f\u4ed6\u3088\u308a\u5bb9\u91cf\u304c\u5c11\u306a\u304f 2GB \u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002\u30b0\u30e9\u30d5\u4e0a\u306f\u903c\u8feb\u3057\u3066\u898b\u3048\u3066\u3082\u3001Linux \u30ab\u30fc\u30cd\u30eb\u306f\u7a7a\u304d\u30e1\u30e2\u30ea\u3092\u7a4d\u6975\u7684\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4f7f\u3046\u305f\u3081\u3001\u898b\u305f\u76ee\u3060\u3051\u3067\u306f\u5224\u65ad\u3067\u304d\u306a\u3044\u3002\u672c\u7a3f\u3067\u306f\u3001\u7591\u5ff5\u3092\u6301\u3063\u3066\u304b\u3089\u7d42\u4e86\u5224\u5b9a\u306b\u81f3\u308b\u307e\u3067\u306b\u5b9f\u969b\u306b\u6253\u9375\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3068\u305d\u306e\u8aad\u307f\u53d6\u308a\u306e\u7d4c\u7def\u3092\u8a18\u9332\u3059\u308b\u3002<\/p>\n<hr>\n<h2>\u8abf\u67fb\u306e\u8d77\u70b9<\/h2>\n<p>Munin \u306e\u30e1\u30e2\u30ea\u30b0\u30e9\u30d5\u3067\u5e38\u6642 85\u301c90% \u7a0b\u5ea6\u306e\u4f7f\u7528\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u3002<a href=\"https:\/\/blog.id774.net\/entry\/2025\/10\/27\/3021\/\">\u30b9\u30ef\u30c3\u30d7<\/a>\u3082\u6570\u767e MB \u304c\u4f7f\u308f\u308c\u3066\u304a\u308a\u3001\u8996\u899a\u7684\u306b\u306f\u300c\u30e1\u30e2\u30ea\u304c\u304b\u3064\u304b\u3064\u300d\u306b\u898b\u3048\u305f\u3002\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u306b\u8abf\u67fb\u3092\u958b\u59cb\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u672c\u5f53\u306b\u5b9f\u30e1\u30e2\u30ea\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u306e\u304b<\/li>\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u542b\u3081\u305f\u8868\u793a\u306e\u305f\u3081\u9ad8\u304f\u898b\u3048\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u304b<\/li>\n<li>\u30b9\u30ef\u30c3\u30d7\u304c\u903c\u8feb\u3067\u306f\u306a\u304f\u6574\u7406\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u304b<\/li>\n<\/ul>\n<hr>\n<h2>1. \u57fa\u672c\u72b6\u614b\u306e\u78ba\u8a8d<\/h2>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">free -h<br \/>\nvmstat 1 5<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>free \u306e\u7d50\u679c\u3067\u306f\u3001total \u306f\u7d04 1.9 GiB\u3001used \u306f\u7d04 530 MiB\u3001free \u306f\u7d04 850 MiB\u3001buff\/cache \u306f\u7d04 780 MiB\u3001available \u306f\u7d04 1.4 GiB \u3067\u3042\u3063\u305f\u3002swap \u306f 2.0 GiB \u4e2d \u7d04 190 MiB \u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<p>vmstat \u3067\u306f si \u3068 so \u304c 0 \u3067\u63a8\u79fb\u3057\u3001\u30b9\u30ef\u30c3\u30d7\u5165\u51fa\u529b\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002CPU idle \u3082 98\u301c100% \u306b\u5f35\u308a\u4ed8\u3044\u3066\u304a\u308a\u3001\u8ca0\u8377\u8d77\u56e0\u3067\u30e1\u30e2\u30ea\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3068\u5224\u65ad\u3067\u304d\u308b\u3002<\/p>\n<hr>\n<h2>2. \u30d7\u30ed\u30bb\u30b9\u5225\u306e\u4f7f\u7528\u91cf\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">ps aux --sort=-%mem | head -20<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u30e1\u30e2\u30ea\u3092\u591a\u304f\u4f7f\u3063\u3066\u3044\u305f\u306e\u306f\u6b21\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u3042\u308b\u3002<\/p>\n<ul>\n<li>systemd-journald \u7d04 160 MB<\/li>\n<li>mariadbd \u7d04 110 MB<\/li>\n<li>fail2ban-server \u7d04 76 MB<\/li>\n<li>php-fpm \u306e\u5404\u30d7\u30ed\u30bb\u30b9 \u7d04 40 MB<\/li>\n<li>memcached \u7d04 14 MB<\/li>\n<li>apache2 \u306e\u30ef\u30fc\u30ab\u30d7\u30ed\u30bb\u30b9\u7fa4 \u6570\u5341 MB<\/li>\n<\/ul>\n<p>\u3044\u305a\u308c\u3082\u5e38\u99d0\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u60f3\u5b9a\u7bc4\u56f2\u5185\u3067\u3042\u308a\u3001\u5358\u4f53\u3067\u7570\u5e38\u306a\u81a8\u5f35\u3092\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306f\u306a\u304b\u3063\u305f\u3002\u3053\u306e\u6642\u70b9\u3067\u300c\u7279\u5b9a\u30d7\u30ed\u30bb\u30b9\u306e\u30ea\u30fc\u30af\u304c\u539f\u56e0\u300d\u3068\u3044\u3046\u7dda\u306f\u307b\u307c\u6d88\u3048\u305f\u3002<\/p>\n<hr>\n<h2>3. \u30b9\u30ef\u30c3\u30d7\u306e\u5b9f\u4f53\u3092\u8abf\u3079\u308b<\/h2>\n<p>\u6b21\u306b\u3001\u5b9f\u969b\u306b\u3069\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u30b9\u30ef\u30c3\u30d7\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u304b\u3092 \/proc \u304b\u3089\u76f4\u63a5\u8aad\u3093\u3060\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">grep -H VmSwap \/proc\/[0-9]*\/status | sort -k2 -n | tail -20<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u306e\u7d50\u679c\u3001mariadbd \u304c\u7d04 92 MB\u3001memcached \u304c\u7d04 13 MB \u3092\u30b9\u30ef\u30c3\u30d7\u306b\u9000\u907f\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3002\u305d\u306e\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u306f 1\u301c8 MB \u7a0b\u5ea6\u3067\u3042\u308a\u3001\u3044\u305a\u308c\u3082\u300c\u9577\u304f\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u306a\u3044\u30da\u30fc\u30b8\u3092\u5f8c\u308d\u306b\u56de\u3057\u305f\u300d\u7a0b\u5ea6\u3067\u3042\u308b\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u91cf\u306e\u7dcf\u8a08\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">grep VmSwap \/proc\/[0-9]*\/status 2&gt;\/dev\/null | awk '{ sum += $2 } END { print sum\/1024 &quot; MB&quot; }<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u3053\u3067\u7d04 166 MB \u3068\u3044\u3046\u5024\u304c\u5f97\u3089\u308c\u305f\u3002\u3053\u308c\u306f swapon \u3067\u898b\u3048\u305f\u4f7f\u7528\u91cf\u3068\u304a\u304a\u3080\u306d\u4e00\u81f4\u3057\u3066\u3044\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">swapon --show<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3089\u306b\u3088\u308a\u3001\u30b9\u30ef\u30c3\u30d7\u304c\u300c\u30e1\u30e2\u30ea\u4e0d\u8db3\u3067\u3042\u3075\u308c\u3066\u66f8\u3044\u3066\u3044\u308b\u300d\u306e\u3067\u306f\u306a\u304f\u300c\u4f7f\u3063\u3066\u3044\u306a\u3044\u30da\u30fc\u30b8\u3092\u5c11\u3057\u3060\u3051\u5f8c\u308d\u3078\u9000\u907f\u3057\u3066\u3044\u308b\u300d\u72b6\u614b\u3067\u3042\u308b\u3068\u5224\u5b9a\u3067\u304d\u305f\u3002<\/p>\n<hr>\n<h2>4. \u30e1\u30e2\u30ea\u69cb\u6210\u3092\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u8aad\u3080<\/h2>\n<p>\u30e1\u30e2\u30ea\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u81a8\u3089\u3093\u3067\u3044\u308b\u306e\u304b\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u3001\/proc\/meminfo \u3092\u62bd\u51fa\u3057\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">cat \/proc\/meminfo | grep -E 'MemTotal|MemFree|Buffers|Cached|SReclaimable|Shmem'<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Cached \u3068 SReclaimable \u3092\u8db3\u3059\u3068 700 MB \u53f0\u5f8c\u534a\u3068\u306a\u308a\u3001\u5168\u4f53\u306e 3\u301c4 \u5272\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3002Linux \u306f\u7a7a\u304d\u30e1\u30e2\u30ea\u3092\u904a\u3070\u305b\u308b\u3088\u308a\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u57cb\u3081\u308b\u8a2d\u8a08\u3067\u3042\u308b\u305f\u3081\u3001\u3053\u306e\u72b6\u614b\u306f\u6b63\u5e38\u3067\u3042\u308b\u3002<\/p>\n<hr>\n<h2>5. \u30ab\u30fc\u30cd\u30eb\u306e\u30e1\u30e2\u30ea\u30dd\u30ea\u30b7\u30fc\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u30b9\u30ef\u30c3\u30d7\u306b\u5bfe\u3057\u3066\u3069\u306e\u7a0b\u5ea6\u7a4d\u6975\u7684\u304b\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3069\u306e\u7a0b\u5ea6\u843d\u3068\u3059\u304b\u306f vm \u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6c7a\u307e\u308b\u305f\u3081\u3001\u3053\u3053\u3082\u8abf\u67fb\u3057\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">cat \/proc\/sys\/vm\/swappiness<br \/>\ncat \/proc\/sys\/vm\/vfs_cache_pressure<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>swappiness \u306f 60\u3001vfs_cache_pressure \u306f 100 \u3067\u3042\u3063\u305f\u3002\u3053\u308c\u306f Debian \u306e\u6a19\u6e96\u7684\u306a\u5024\u3067\u3042\u308a\u3001\u7ba1\u7406\u8005\u304c\u7279\u5225\u306a\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3092\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u793a\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u4eca\u56de\u306e\u6319\u52d5\u306f\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u30dd\u30ea\u30b7\u30fc\u306e\u307e\u307e\u3067\u3053\u3046\u306a\u3063\u3066\u3044\u308b\u300d\u3068\u8aac\u660e\u3067\u304d\u308b\u3002<\/p>\n<hr>\n<h2>6. \u30da\u30fc\u30b8\u30d5\u30a9\u30eb\u30c8\u3068\u30b9\u30ef\u30c3\u30d7\u5c65\u6b74\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u73fe\u5728\u306f\u843d\u3061\u7740\u3044\u3066\u3044\u3066\u3082\u3001\u904e\u53bb\u306b\u30b9\u30ef\u30c3\u30d7\u304c\u6fc0\u3057\u304f\u52d5\u3044\u3066\u3044\u305f\u53ef\u80fd\u6027\u306f\u3042\u308b\u3002\u305d\u3053\u3067\u3001\u30da\u30fc\u30b8\u30d5\u30a9\u30eb\u30c8\u3068\u30b9\u30ef\u30c3\u30d7\u306b\u95a2\u4fc2\u3059\u308b\u30ab\u30a6\u30f3\u30bf\u3092 \/proc\/vmstat \u304b\u3089\u629c\u304d\u51fa\u3057\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">cat \/proc\/vmstat | grep -E 'pgfault|pgmajfault|pswpin|pswpout'<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>pswpin \u3068 pswpout \u306f 40 \u4e07\u56de\u53f0\u3067\u3042\u3063\u305f\u304c\u3001\u3053\u308c\u306f\u8d77\u52d5\u4ee5\u6765\u306e\u7d2f\u7a4d\u5024\u3067\u3042\u308b\u3002vmstat \u5b9f\u884c\u4e2d\u306f si\/so \u304c 0 \u3067\u3042\u3063\u305f\u305f\u3081\u3001\u73fe\u5728\u306f\u30b9\u30ef\u30c3\u30d7\u5165\u51fa\u529b\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u3002pgmajfault \u3082\u7dcf\u30da\u30fc\u30b8\u30d5\u30a9\u30eb\u30c8\u306b\u5bfe\u3057\u3066\u306f\u3054\u304f\u5c0f\u3055\u304f\u3001RAM \u5185\u3067\u307b\u307c\u5b8c\u7d50\u3057\u3066\u3044\u308b\u3068\u5224\u65ad\u3057\u305f\u3002<\/p>\n<hr>\n<h2>7. \u6642\u7cfb\u5217\u306e\u5b89\u5b9a\u6027\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u30e1\u30e2\u30ea\u304c\u4e00\u5b9a\u306b\u4fdd\u305f\u308c\u3066\u3044\u308b\u304b\u3001\u5468\u671f\u7684\u306a\u30b9\u30d1\u30a4\u30af\u304c\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b sar \u3092\u4f7f\u3063\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">sar -r 1 5<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>1 \u79d2\u3054\u3068\u306b 5 \u56de\u63a1\u53d6\u3057\u305f\u3068\u3053\u308d\u3001kbavail \u306f 1.47 GB \u524d\u5f8c\u3067\u5b89\u5b9a\u3057\u3066\u304a\u308a\u3001%memused \u3082 14% \u53f0\u3067\u63fa\u308c\u306a\u304b\u3063\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u300c\u4e00\u6642\u7684\u306b\u89e3\u653e\u3055\u308c\u305f\u306e\u3067\u306f\u306a\u304f\u3001\u3082\u3068\u3082\u3068\u4f59\u88d5\u304c\u3042\u308b\u300d\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3002<\/p>\n<hr>\n<h2>8. \u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u6319\u52d5\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u983b\u7e41\u306b\u4f7f\u3046 \/bin \u3084 \/usr\/bin \u306e\u30d0\u30a4\u30ca\u30ea\u304c\u3001\u547c\u3073\u51fa\u3059\u305f\u3073\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u8aad\u3093\u3067\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u3044\u3046\u7591\u554f\u3082\u5408\u308f\u305b\u3066\u691c\u8a3c\u3057\u305f\u3002\u307e\u305a\u306f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u914d\u7f6e\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">sudo filefrag -v \/bin\/ls<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\/bin\/ls \u306f 1 extent \u306e\u307f\u3067\u3042\u308a\u3001\u65ad\u7247\u5316\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u3055\u3089\u306b\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u8f09\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b \/proc\/kpageflags \u3092\u53c2\u7167\u3057\u3088\u3046\u3068\u3057\u305f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">sudo grep $(sudo filefrag -v \/bin\/ls | awk '\/physical\/{print $4; exit}') \/proc\/kpageflags<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u306e\u3068\u304d\u306f\u8a72\u5f53\u306a\u3057\u3068\u306a\u308a\u3001\u3053\u306e\u77ac\u9593\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u5916\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3002\u305f\u3060\u3057\u3053\u308c\u306f\u300c\u4f7f\u308f\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u304b\u3089\u843d\u3061\u3066\u3044\u305f\u3060\u3051\u300d\u3067\u3042\u308a\u3001\u4e00\u5ea6\u5b9f\u884c\u3059\u308c\u3070\u518d\u3073\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u8f09\u308b\u3002<\/p>\n<p>\u4ee5\u4e0a\u306b\u3088\u308a\u3001\/bin \u4ee5\u4e0b\u306e\u3088\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u306f\u4e00\u5ea6\u5b9f\u884c\u3055\u308c\u308c\u3070\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u8f09\u3063\u3066\u30c7\u30a3\u30b9\u30af\u3092\u518d\u5ea6\u8aad\u307e\u306a\u3044\u3053\u3068\u3001\u305d\u3057\u3066\u8aad\u307f\u53d6\u308a\u306f <a href=\"https:\/\/blog.id774.net\/entry\/2025\/10\/27\/3022\/\">SSD \u306e\u6469\u8017\u8981\u56e0<\/a>\u306b\u306f\u306a\u3089\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u305f\u3002\u6469\u8017\u306e\u4e3b\u56e0\u306f\u66f8\u304d\u8fbc\u307f\u3067\u3042\u308b\u3002<\/p>\n<hr>\n<h2>9. \u3053\u3053\u307e\u3067\u306e\u8aad\u307f\u53d6\u308a<\/h2>\n<p>\u3053\u3053\u307e\u3067\u306e\u7d50\u679c\u3092\u307e\u3068\u3081\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<ul>\n<li>free \u3068 vmstat \u306e\u6bb5\u968e\u3067 available \u304c\u5927\u304d\u304f\u3001\u5b9f\u30e1\u30e2\u30ea\u306f\u8db3\u308a\u3066\u3044\u308b\u3002<\/li>\n<li>\u30b9\u30ef\u30c3\u30d7\u306f 190 MB \u5f31\u3092\u9759\u7684\u306b\u4f7f\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u3001si\/so \u306f\u52d5\u3044\u3066\u3044\u306a\u3044\u3002<\/li>\n<li>\/proc \u304b\u3089\u96c6\u8a08\u3057\u305f VmSwap \u306e\u5408\u8a08\u3068 swapon \u306e\u8868\u793a\u304c\u6574\u5408\u3057\u3066\u304a\u308a\u3001\u89b3\u6e2c\u306f\u6b63\u3057\u3044\u3002<\/li>\n<li>\/proc\/meminfo \u304b\u3089\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u898b\u304b\u3051\u4e0a\u306e\u4f7f\u7528\u7387\u3092\u62bc\u3057\u4e0a\u3052\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3002<\/li>\n<li>\u30ab\u30fc\u30cd\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3042\u308a\u3001\u7279\u5225\u306b\u30b9\u30ef\u30c3\u30d7\u3092\u5f37\u5236\u3059\u308b\u8a2d\u5b9a\u306b\u306f\u306a\u3063\u3066\u3044\u306a\u3044\u3002<\/li>\n<li>sar \u306b\u3088\u308b\u6642\u7cfb\u5217\u3067\u3082\u5b89\u5b9a\u3057\u3066\u304a\u308a\u3001\u77ac\u9593\u7684\u306a\u903c\u8feb\u3067\u306f\u306a\u304b\u3063\u305f\u3002<\/li>\n<li>\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u53d6\u308a\u304c SSD \u3092\u6469\u8017\u3055\u305b\u3066\u3044\u308b\u308f\u3051\u3067\u3082\u306a\u304b\u3063\u305f\u3002<\/li>\n<\/ul>\n<hr>\n<h2>\u7dcf\u5408\u8a55\u4fa1<\/h2>\n<table>\n<tr>\n<th>\u89b3\u70b9<\/th>\n<th>\u72b6\u6cc1<\/th>\n<th>\u8a55\u4fa1<\/th>\n<\/tr>\n<tr>\n<td>\u5b9f\u30e1\u30e2\u30ea<\/td>\n<td>available \u7d04 1.4 GiB \u3092\u7dad\u6301<\/td>\n<td>\u4f59\u88d5\u3042\u308a<\/td>\n<\/tr>\n<tr>\n<td>\u30b9\u30ef\u30c3\u30d7 I\/O<\/td>\n<td>vmstat \u3067\u5e38\u6642 0<\/td>\n<td>\u903c\u8feb\u3067\u306f\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u91cf<\/td>\n<td>\u7d04 190 MB\uff08MariaDB \u304c\u4e2d\u5fc3\uff09<\/td>\n<td>\u9577\u671f\u30a2\u30a4\u30c9\u30eb\u6574\u7406\u3067\u6b63\u5e38<\/td>\n<\/tr>\n<tr>\n<td>\u30ad\u30e3\u30c3\u30b7\u30e5<\/td>\n<td>700 MB \u53f0\u5f8c\u534a<\/td>\n<td>Linux \u306e\u8a2d\u8a08\u3069\u304a\u308a<\/td>\n<\/tr>\n<tr>\n<td>\u30ab\u30fc\u30cd\u30eb\u8a2d\u5b9a<\/td>\n<td>swappiness 60, vfs_cache_pressure 100<\/td>\n<td>\u6a19\u6e96<\/td>\n<\/tr>\n<tr>\n<td>\u8ca0\u8377<\/td>\n<td>CPU idle 98\u301c100%<\/td>\n<td>\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306a\u3057<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h2>\u7d50\u8ad6\u3068\u4eca\u5f8c\u306e\u89b3\u6e2c\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p>\u3053\u306e Debian 13 \u306e RAM 2GB \u958b\u767a\u74b0\u5883\u306f\u3001\u73fe\u72b6\u306e\u30b5\u30fc\u30d3\u30b9\u69cb\u6210\u306b\u5bfe\u3057\u3066\u4e0d\u8db3\u3057\u3066\u3044\u306a\u3044\u3002Munin \u306b\u3088\u308b\u9ad8\u3044\u4f7f\u7528\u7387\u8868\u793a\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u542b\u3093\u3067\u3044\u308b\u3060\u3051\u3067\u3042\u308a\u3001\u5b9f\u30e1\u30e2\u30ea\u306f\u5341\u5206\u306b\u6b8b\u3063\u3066\u3044\u308b\u3002\u3057\u305f\u304c\u3063\u3066\u30ab\u30fc\u30cd\u30eb\u304c\u4fdd\u6301\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5b9a\u671f\u7684\u306b\u624b\u52d5\u3067\u6d88\u3059\u3088\u3046\u306a\u904b\u7528\u3084\u904e\u5ea6\u306a\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u4e0d\u8981\u3067\u3042\u308b\u3002\u306a\u304a\u30ab\u30fc\u30cd\u30eb\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4eba\u70ba\u7684\u306b\u6d88\u3059\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u64cd\u4f5c\u3092\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">sudo sh -c 'echo 3 &gt; \/proc\/sys\/vm\/drop_caches'<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u4e00\u65b9\u3067\u3001\u72b6\u6cc1\u304c\u5909\u5316\u3057\u305f\u5834\u5408\u306b\u5099\u3048\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9a\u70b9\u3067\u5b9f\u884c\u3059\u308c\u3070\u540c\u69d8\u306e\u8a3a\u65ad\u304c\u3059\u3050\u306b\u3067\u304d\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">free -h<br \/>\nvmstat 1 5<br \/>\nps aux --sort=-%mem | head -20<br \/>\ngrep -H VmSwap \/proc\/[0-9]*\/status | sort -k2 -n | tail -20<br \/>\ngrep VmSwap \/proc\/[0-9]*\/status 2&gt;\/dev\/null | awk '{ sum += $2 } END { print sum\/1024 &quot; MB&quot; }<br \/>\ncat \/proc\/meminfo | grep -E 'MemTotal|MemFree|Buffers|Cached|SReclaimable|Shmem'<br \/>\ncat \/proc\/vmstat | grep -E 'pgfault|pgmajfault|pswpin|pswpout'<br \/>\nsar -r 1 5<br \/>\nswapon --show<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3089\u3092\u5b9f\u884c\u3057\u3066\u304a\u3051\u3070\u3001\u6b21\u306b\u300c\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u3044\u306e\u3067\u306f\u300d\u3068\u3044\u3046\u61f8\u5ff5\u304c\u751f\u3058\u3066\u3082\u3001\u539f\u56e0\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u672c\u5f53\u306e\u903c\u8feb\u304b\u3092\u3059\u3050\u306b\u5207\u308a\u5206\u3051\u3089\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u8981\u306a\u74b0\u5883\u306e\u3046\u3061\u958b\u767a\u74b0\u5883\u306e\u4e00\u90e8\u306b\u304a\u3044\u3066\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u304c\u9ad8\u304f\u898b\u3048\u308b\u72b6\u6cc1\u304c\u3042\u3063\u305f\u305f\u3081\u3001\u672c\u5f53\u306b\u4e0d\u8db3\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u691c\u8a3c\u3057\u305f\u3002\u3053\u306e\u74b0\u5883\u306f Debian 13 \u3067\u7269\u7406\u30e1\u30e2\u30ea\u306b\u3064\u3044\u3066\u306f\u4ed6\u3088\u308a\u5bb9\u91cf\u304c\u5c11\u306a\u304f 2GB \u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002\u30b0\u30e9 &#8230; <a title=\"\u958b\u767a\u74b0\u5883\u306b\u304a\u3051\u308b\u30e1\u30e2\u30ea\u8abf\u67fb\u7d4c\u7def\u306e\u8a18\u9332\" class=\"read-more\" href=\"https:\/\/blog.id774.net\/entry\/2025\/10\/31\/3023\/\" aria-label=\"\u958b\u767a\u74b0\u5883\u306b\u304a\u3051\u308b\u30e1\u30e2\u30ea\u8abf\u67fb\u7d4c\u7def\u306e\u8a18\u9332 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,14],"tags":[],"class_list":["post-3023","post","type-post","status-publish","format-standard","hentry","category-diary","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/3023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/comments?post=3023"}],"version-history":[{"count":0,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/3023\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/media?parent=3023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/categories?post=3023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/tags?post=3023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}