{"id":5424,"date":"2015-12-16T15:38:04","date_gmt":"2015-12-16T06:38:04","guid":{"rendered":"http:\/\/www.kekyo.net\/?p=5424"},"modified":"2016-12-22T14:02:04","modified_gmt":"2016-12-22T05:02:04","slug":"%e3%83%a1%e3%83%a2%e3%83%aa%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e3%80%81%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/www.kekyo.net\/2015\/12\/16\/5424","title":{"rendered":"\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3001\u3068\u306f"},"content":{"rendered":"
\u3053\u306e\u6295\u7a3f\u306f\u300cWindows & Microsoft\u6280\u8853 \u57fa\u790e Advent Calendar 2015\u300d<\/a>\u306e16\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n \u672c\u7a3f\u3067\u306f\u3001Windows\uff08\u5e83\u304f\u4e00\u822c\u306eOS\u3067\u3082\u3001\u57fa\u790e\u7684\u306a\u77e5\u8b58\u3068\u3057\u3066\u306f\u9069\u5408\u3059\u308b\uff09\u306e\u3001\u300c\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u300d\u306e\u53d6\u308a\u6271\u3044\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\u3002\u7279\u306b\u3001\u30b3\u30fc\u30c9\u304b\u3089\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3068\u306f\u3069\u3046\u3044\u3046\u3053\u3068\u306a\u306e\u304b\u304c\u3061\u3087\u3063\u3068\u3067\u3082\u660e\u3089\u304b\u306b\u306a\u308c\u3070\u826f\u3044\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n .NET\u74b0\u5883\u3067\u3042\u3063\u305f\u308a\u3001C++\u3067\u5404\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u30b3\u30fc\u30c9\u3067\u3042\u3063\u305f\u308a\u3001\u901a\u5e38\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3068\u300c\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30bb\u30b9\u7a7a\u9593\u300d\u3067\u52d5\u304f\u30b3\u30fc\u30c9\u304c\u30d3\u30eb\u30c9\u3055\u308c\u307e\u3059\u3002C#\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u3070\u3001new\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001\u300c\u3069\u3053\u304b\u306b\u3042\u308b\u30e1\u30e2\u30ea\u300d\u3092\u9069\u91cf\u78ba\u4fdd\u3057\u3001\u305d\u308c\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n \u3053\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306f\u3069\u306e\u3088\u3046\u306b\u6c7a\u307e\u3063\u3066\u304f\u308b\u306e\u304b\uff1f \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\uff1a<\/p>\n \u306f\u3001\u914d\u5217\u306e\u578b\u304cbyte\u306a\u306e\u3067\u3001\u8981\u7d20\u6570\uff1d\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3068\u306a\u308b\u4e8b\u304c\u5206\u304b\u308a\u307e\u3059\uff08\u914d\u5217\u7ba1\u7406\u306b\u4f7f\u7528\u3059\u308b\u4ed8\u52a0\u7684\u306a\u30e1\u30e2\u30ea\u306a\u3069\u3092\u9664\u304f\uff09\u3002\u4ed6\u306e\u578b\u3067\u3042\u308c\u3070\u3001\u305d\u308c\u305e\u308c\u306e\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u30b9\u30da\u30fc\u30b9\u300d\u3068\u547c\u3070\u308c\u308b\u30b5\u30a4\u30ba\u3060\u3051\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002.NET\u74b0\u5883\u306e\u5834\u5408\u3001\u30af\u30e9\u30b9\uff08\u53c2\u7167\u578b\uff09\u306e\u5834\u5408\u306f\u3082\u3063\u3068\u4e8b\u60c5\u306f\u8907\u96d1\u3067\u3059\u304c\u3001\u306a\u3093\u306b\u305b\u3088\u3001\u305d\u306e\u4f7f\u7528\u91cf\u306f\u4e88\u6e2c\u53ef\u80fd\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n \u4e00\u822c\u306b\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u898b\u7a4d\u3082\u308b\u306e\u304c\u5927\u5909\u306a\u4f5c\u696d\u3067\u3042\u308b\u3068\u898b\u3089\u308c\u3066\u3044\u308b\u7406\u7531\u306e\u4e00\u3064\u306f\u3001\u3053\u3046\u3044\u3063\u305f\u500b\u3005\u306e\u30e1\u30e2\u30ea\u78ba\u4fdd\u91cf\uff08\u3068\u89e3\u653e\u91cf\uff09\u304c\u30c8\u30fc\u30bf\u30eb\u3067\u3069\u306e\u3050\u3089\u3044\u306a\u306e\u304b\u3092\u7a4d\u7b97\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\u304b\u3089\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002\u4e0a\u306b\u6319\u3052\u305f\u3088\u3046\u306a\u3001\u30b3\u30fc\u30c9\u3092\u898b\u305f\u3060\u3051\u3067\u4e00\u76ee\u77ad\u7136\u306e\u5834\u5408\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c\u3001<\/p>\n \u306e\u3088\u3046\u306a\u3001\u5b9f\u88c5\u304c\u30ab\u30d7\u30bb\u30eb\u5316\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306f\u3069\u306e\u3050\u3089\u3044\u3067\u3057\u3087\u3046\u304b\uff1f \u30d7\u30ed\u30b0\u30e9\u30e0\u5168\u4f53\uff08\u4f8b\u3048\u3070\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u3069\u306e\u3050\u3089\u3044\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u304b\u3068\u8a00\u3046\u306e\u306f\u3001\u3053\u306e\u4f8b\u304c\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u3055\u308c\u305f\u3082\u306e\u3068\u3057\u3066\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n \u4ed6\u306b\u3082\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u898b\u7a4d\u3082\u308a\u3092\u96e3\u3057\u304f\u3057\u3066\u3044\u308b\u8981\u56e0\u306f\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u5b9f\u969b\u3001\u3042\u307e\u308a\u7406\u89e3\u3055\u308c\u3066\u3044\u306a\u3044\u3001\u91cd\u8981\u306a\u5074\u9762\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u3001\u3053\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306b\u3064\u3044\u3066\u6398\u308a\u4e0b\u3052\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n \u8d64\u67a0\u3067\u793a\u3057\u305f\u90e8\u5206\u306b\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u7d71\u8a08\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n \u4f55\u6545\u3001\u3053\u306e\u3088\u3046\u306b\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u793a\u3059\u6307\u6a19\u304c\u6ca2\u5c71\u3042\u308b\u306e\u304b\u3068\u8a00\u3046\u3068\u3001\u300c\u4eee\u60f3\u30e1\u30e2\u30ea\u6280\u8853\u300d\u304c\u5b58\u5728\u3059\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n \u4eee\u60f3\u30e1\u30e2\u30ea\u6280\u8853\u306f\u3001\u6587\u5b57\u901a\u308a\u3001\u30e1\u30e2\u30ea\u3092\u4eee\u60f3\u5316\u3057\u307e\u3059\u3002\u30e1\u30e2\u30ea\u3092\u4eee\u60f3\u5316\u3059\u308b\u3068\u4f55\u304c\u5b09\u3057\u3044\u306e\u304b\u3068\u8a00\u3046\u3068\u30012\u3064\u306e\u898b\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n \u30da\u30fc\u30b8\u30f3\u30b0\u3068\u306f\u3001\u7269\u7406\u30e1\u30e2\u30ea\u3092\u3042\u308b\u4e00\u5b9a\u306e\u30b5\u30a4\u30ba\uff08\u73fe\u4ee3\u306eOS\u306f\u307b\u307c4KB\u3092\u57fa\u6e96\u3068\u3059\u308b\uff09\u3067\u533a\u5207\u308a\u3001\u3053\u308c\u30921\u30da\u30fc\u30b8\u3068\u3057\u3066\u3001\u3053\u306e\u5358\u4f4d\u3067\u30e1\u30e2\u30ea\u306e\u7ba1\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u306e\u30da\u30fc\u30b8\u3092\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u300c\u5272\u308a\u4ed8\u3051\u308b\u300d\u4e8b\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n \u3053\u306e\u56f3\u4e2d\u306b\u3001\u7dd1\u306e\u7dda\u3067\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30da\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u5358\u4e00\u306e\u7269\u7406\u30e1\u30e2\u30ea\u7a7a\u9593\u3092\u3001\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\u304b\u3089\u540c\u6642\u306b\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30b9\u30c8\u304c\u307b\u307c0\u306e\u5171\u6709\u30e1\u30e2\u30ea\u304c\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n \u307e\u305f\u3001\u308f\u3056\u3068\u3089\u3057\u304f\u3001\u30d7\u30ed\u30bb\u30b9123\u3068456\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306e\u540c\u3058\u4f4d\u7f6e\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u4f4d\u7f6e\u304c\u540c\u4e00\u3067\u306a\u304f\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u3053\u306e\u56f3\u3067\u540c\u4e00\u306e\u5834\u6240\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u305f\u4f8b\u3092\u793a\u3057\u305f\u306e\u306f\u3001Windows\u306ePE\u30ed\u30fc\u30c0\u30fc\uff08EXE\u3084DLL\u3092\u30e1\u30e2\u30ea\u306b\u30ed\u30fc\u30c9\u3059\u308b\u51e6\u7406\uff09\u304c\u3053\u306e\u624b\u6cd5\u3092\u4f7f\u3046\u305f\u3081\u3067\u3059\u3002EXE\u3084DLL\u3092\u30e1\u30e2\u30ea\u306b\u30ed\u30fc\u30c9\u3059\u308b\u3068\u304d\u3001\u57fa\u672c\u7684\u306b\u300c\u30b3\u30fc\u30c9\u300d\u306f\u4e0d\u5909\u3067\u3059\uff08\u81ea\u5df1\u66f8\u304d\u63db\u3048\u3068\u8a00\u3046\u624b\u6cd5\u3082\u3042\u308a\u307e\u3059\u304c\uff09\u3002PE\u30ed\u30fc\u30c0\u30fc\u306f\u30ed\u30fc\u30c9\u6642\u306b\u30ea\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u51e6\u7406\u3068\u547c\u3070\u308c\u308b\u51e6\u7406\u3092\u884c\u3063\u3066\u3001\u30b3\u30fc\u30c9\u3092\u5c11\u3057\u4fee\u6b63\u3057\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u306f\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306e\u540c\u3058\u4f4d\u7f6e\u306b\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u5834\u5408\u306b\u9650\u308a\u3001\u5168\u304f\u540c\u3058\u3088\u3046\u306b\u4fee\u6b63\u3055\u308c\u307e\u3059\u3002\u3068\u8a00\u3046\u4e8b\u306f\u3001\u65e2\u306b\u7269\u7406\u30e1\u30e2\u30ea\u4e0a\u306b\u30ea\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u51e6\u7406\u6e08\u307f\u306e\u30b3\u30fc\u30c9\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u5358\u306b\u305d\u306e\u30da\u30fc\u30b8\u3092\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u306e\u540c\u3058\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308c\u3070\u3001\u518d\u5229\u7528\u51fa\u6765\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n \u3053\u306e\u56f3\u304b\u3089\u3001\u30d7\u30ed\u30bb\u30b9\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u308b\u4eee\u60f3\u30e1\u30e2\u30ea\u306f\u3001\u5fc5\u305a\u3057\u3082\u7269\u7406\u30e1\u30e2\u30ea\u4e0a\u306b\u9023\u7d9a\u3067\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u3082\u3001\u6607\u9806\u3067\u4e26\u3093\u3067\u3044\u308b\u5fc5\u8981\u3082\u306a\u3044\u4e8b\u306b\u3082\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u88cf\u3092\u8fd4\u305b\u3070\u3001Windows\u30ab\u30fc\u30cd\u30eb\u306f\u3001\u7269\u7406\u30e1\u30e2\u30ea\u4e0a\u3067\u3044\u3064\u3067\u3082\u3053\u308c\u3092\u597d\u304d\u306a\u3088\u3046\u306b\u518d\u914d\u7f6e\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u3066\u3001\u3057\u304b\u3082\u5404\u30d7\u30ed\u30bb\u30b9\u306f\u305d\u306e\u4e8b\u3092\u77e5\u3089\u306a\u3044\uff08\u611f\u77e5\u3067\u304d\u306a\u3044\uff09\u3068\u8a00\u3046\u4e8b\u3067\u3059\u3002<\/p>\n \u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u306f\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u6280\u8853\u3092\u4f7f\u3063\u3066\u3001\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306a\u3069\u306e\u5916\u90e8\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4e00\u6642\u7684\u306b\u4f7f\u7528\u30e1\u30e2\u30ea\u60c5\u5831\u3092\uff08\u30da\u30fc\u30b8\u5358\u4f4d\u3067\uff09\u9000\u907f\u3057\u305f\u308a\u5fa9\u5143\u3057\u305f\u308a\u3059\u308b\u4e8b\u3067\u3001\u307e\u308b\u3067\u642d\u8f09\u30e1\u30e2\u30ea\u4ee5\u4e0a\u306e\u30e1\u30e2\u30ea\u304c\u4f7f\u7528\u53ef\u80fd\u3067\u3042\u308b\u304b\u306e\u3088\u3046\u306b\u898b\u305b\u304b\u3051\u307e\u3059\u3002\u3053\u306e\u6280\u8853\u306f\u3001Windows\u30ab\u30fc\u30cd\u30eb\u3084\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u304c\u300c\u81ea\u52d5\u7684\u300d\u306b\u884c\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3053\u306e\u64cd\u4f5c\u3092\u76f4\u63a5\u8a8d\u8b58\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\uff08Process Explorer\u306e\u3088\u3046\u306b\u3001\u7d71\u8a08\u60c5\u5831\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u3059\uff09\u3002<\/p>\n \u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u306f\u3001\u7269\u7406\u30e1\u30e2\u30ea\u3068\u30c7\u30a3\u30b9\u30af\u3068\u306e\u9593\u3067\u9000\u907f\u30fb\u5fa9\u5143\u3092\u884c\u3046\u4e8b\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d7\u30ed\u30bb\u30b9\u304b\u3089\u898b\u3048\u308b\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u304b\u3089\u3001\u76f4\u63a5\u30c7\u30a3\u30b9\u30af\u304c\u898b\u3048\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001MapViewOfFile API<\/a>\u306e\u3088\u3046\u306a\u3001\u30d5\u30a1\u30a4\u30eb\u30de\u30c3\u30d4\u30f3\u30b0\u6280\u8853\u306b\u304a\u3044\u3066\u3082\u540c\u69d8\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u3092\u6210\u7acb\u3055\u305b\u308b\u306b\u306f\u3001\u5fc5\u305a\u5bfe\u5fdc\u3059\u308b\u7269\u7406\u30e1\u30e2\u30ea\u304c\u5fc5\u8981\u3067\u3059\uff08\u539f\u7406\u4e0a\u306f\u4e0d\u53ef\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5b9f\u7528\u7684\u3067\u306f\u306a\u3044\u305f\u3081\uff09\u3002<\/p>\n \u52d5\u4f5c\u4e2d\u306e\u5404\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30bb\u30b9\u540c\u58eb\u306f\u3001\u7279\u5225\u306a\u624b\u9806\u3092\u8e0f\u307e\u306a\u3044\u9650\u308a\u306f\u4e0d\u53ef\u4fb5\u3067\u3059\u3002\u4e0d\u53ef\u4fb5\u3068\u306f\u3001\u4e92\u3044\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u30e1\u30e2\u30ea\u7a7a\u9593\u5185\u3092\u8997\u304d\u898b\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u3053\u3068\u3092\u6307\u3057\u307e\u3059\uff08\u524d\u8ff0\u306e\u5171\u6709\u3055\u308c\u305f\u30da\u30fc\u30b8\u3092\u9664\u304f\uff09\u3002<\/p>\n \u5404\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u305d\u308c\u305e\u308c\u304c\u81ea\u8eab\u306b\u5c02\u7528\u306b\u7528\u610f\u3055\u308c\u305f\u30e1\u30e2\u30ea\u3092\u300c\u500b\u5225\u306b\u300d\u5341\u5206\u306b\u6301\u3063\u3066\u3044\u308b\u304b\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002\u307e\u308b\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u6bce\u306b\u5c02\u7528\u306e\u7269\u7406\u30e1\u30e2\u30ea\u304c\u5b58\u5728\u3059\u308b\u304b\u306e\u3088\u3046\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u5f53\u305f\u308a\u524d\u3067\u3059\u304c\u305d\u3093\u306a\u4e8b\u306f\u3042\u308a\u5f97\u307e\u305b\u3093\u3002\u4eee\u60f3\u30e1\u30e2\u30ea\u6280\u8853\u304c\u3001\u672c\u7269\u306e\u7269\u7406\u30e1\u30e2\u30ea\u304b\u3089\u3001\u4e00\u90e8\u306e\u30da\u30fc\u30b8\u3092\u3001\u305d\u308c\u305e\u308c\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u5206\u3051\u4e0e\u3048\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n \u30bb\u30d1\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u884c\u308f\u308c\u308b\u524d\u63d0\u306b\u7acb\u3064\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9\u306f\u5e38\u306b\u540c\u3058\u30e1\u30e2\u30ea\u74b0\u5883\u3067\u52d5\u304f\u3053\u3068\u3092\u60f3\u5b9a\u51fa\u6765\u308b\u306e\u3067\u3001\u7ba1\u7406\u304c\u7c21\u7565\u5316\u3055\u308c\u307e\u3059\u3002\u304b\u3064\u3066\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u540c\u4e00\u306e\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u540c\u5c45\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u30e1\u30e2\u30ea\u3092\u5206\u5272\u3057\u3066\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306e\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u305f\u4eba\u306e\u8cac\u4efb\u3067\u3057\u305f\u3002<\/p>\n # \u30ea\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u547c\u3073\u307e\u3059\u304c\u3001\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u306f\u81ea\u52d5\u30ea\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u3082\u53ef\u80fd\u306a\u306e\u3067\u3001\u3053\u306e\u70b9\u3067\u306e\u5229\u70b9\u306f\u8584\u308c\u3064\u3064\u3042\u308a\u307e\u3059\u3002 \u3053\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aC#\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3001Win32\u306e\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066API\u3092\u4f7f\u7528\u3057\u3066\u307f\u307e\u3059\u3002C++\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3082\u7d50\u679c\u306f\u307b\u3068\u3093\u3069\u540c\u3058\u3067\u3059\u3002Win32 API\u3092\u76f4\u63a5\u4f7f\u7528\u3059\u308b\u4e8b\u3067\u3001.NET\u306e\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30bf\u3084\u30d2\u30fc\u30d7\u30de\u30cd\u30fc\u30b8\u30e3\u3001Visual C++\u306e\u30e9\u30f3\u30bf\u30a4\u30e0\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u884c\u3046\u8ffd\u52a0\u306e\u64cd\u4f5c\u3067\u7d50\u679c\u304c\u5206\u304b\u308a\u306b\u304f\u304f\u306a\u308b\u3053\u3068\u3092\u56de\u907f\u3057\u307e\u3059\u3002<\/p>\n \u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001VirtualAlloc API\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d7\u30ed\u30bb\u30b9\u5185\u306b30GB\u306e\u30e1\u30e2\u30ea\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u306eProcess Explorer\u306e\u69d8\u5b50\u3092\u898b\u3066\u307f\u307e\u3059\uff08\u30c6\u30b9\u30c8\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u306f16GB\u306e\u7269\u7406\u30e1\u30e2\u30ea\u3092\u642d\u8f09\u3057\u305fWindows 10 x64\u3067\u3059\uff09\u3002<\/p>\n \u203b\u305d\u308c\u305e\u308c\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3067\u4e00\u65e6\u505c\u6b62\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n \u66f4\u306b\u3001VirtualAlloc\u306e\u51e6\u7406\u306f\u4e00\u77ac\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002\u307e\u308b\u3067\u3001Windows\u30ab\u30fc\u30cd\u30eb\u306f\u3001\u30e1\u30e2\u30ea\u3092\u5272\u308a\u5f53\u3066\u305f\u300c\u3075\u308a\u300d\u3092\u3057\u3066\u3001\u5b9f\u969b\u306b\u306f\u4f55\u3082\u3057\u3066\u3044\u306a\u3044\u304b\u306e\u3088\u3046\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u3001\u30e1\u30e2\u30ea\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u3092\u5ba3\u8a00\u3059\u308b\uff08\u5fc5\u305a\u3057\u3082\u7269\u7406\u30e1\u30e2\u30ea\u306b\u95a2\u9023\u3065\u304b\u306a\u3044\uff09\u4e8b\u3092\u300c\u30b3\u30df\u30c3\u30c8\u3059\u308b\uff08Committed bytes\uff09\u300d\u3068\u8a00\u3044\u307e\u3059\u3002<\/p>\n [2]\u306e\u51e6\u7406\u306f\u3001VirtualAlloc\u3067\u8fd4\u3055\u308c\u305f\u30dd\u30a4\u30f3\u30bf\u304c\u3001\u672c\u5f53\u306b\u6b63\u3057\u3044\u5024\u3092\u8fd4\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u5ff5\u306e\u305f\u3081\u5b9f\u969b\u306b\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\uff08\u30e9\u30a4\u30c8\uff09\u3057\u3066\u3044\u307e\u3059\u3002Parallel.ForEach\u3092\u4f7f\u3063\u3066\u3044\u308b\u7406\u7531\u306f\u5f8c\u3067\u8aac\u660e\u3057\u307e\u3059\u304c\u3001\u8981\u3059\u308b\u306b\u9ad8\u901f\u5316\u3067\u3059\uff08\u540c\u6642\u306b4\u30b3\u30a2\u30674\u5206\u5272\u3057\u305f\u9818\u57df\u306b\u30e9\u30a4\u30c8\u3059\u308b\uff09\u3002<\/p>\n VirtualAlloc\u304c\u8fd4\u3057\u305f\u30dd\u30a4\u30f3\u30bf\u304c\u4e0d\u8aa0\u5b9f\u306a\u3082\u306e\u3067\u3042\u308c\u3070\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4f55\u3089\u304b\u306e\u4f8b\u5916\uff08AccessViolationException\u306a\u3069\uff09\u3092\u767a\u751f\u3055\u305b\u3066\u6b7b\u306c\u3067\u3057\u3087\u3046\u3002\u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u306f\u30a8\u30e9\u30fc\u7121\u304f\u6210\u529f\u3057\u307e\u3059\u3002\u4f46\u3057\u3001\u300c\u3068\u3066\u3064\u3082\u306a\u304f\u9045\u3044\u300d\u306e\u3067\u3059\u3002<\/p>\n \u2460\u306e\u6700\u521d\u306b\u8d77\u304d\u305f\u3053\u3068\u304c\u3001\u3053\u306e\u56f3\u3067\u3059\u3002\u7269\u7406\u30e1\u30e2\u30ea\u7a7a\u9593\u306e\u672a\u4f7f\u7528\u306e\u30da\u30fc\u30b8\u304c\u3001\u5168\u3066\u30d7\u30ed\u30bb\u30b9\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u7269\u7406\u30e1\u30e2\u30ea\u7a7a\u9593\u304c\u5168\u3066\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u305f\u305f\u3081\u3001\u7269\u7406\u30e1\u30e2\u30ea\u306e\u7a7a\u304d\u304c\u7121\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u8981\u6c42\u3057\u3066\u3044\u308b\u4eee\u60f3\u30e1\u30e2\u30ea\u306f30GB\u306a\u306e\u3067\u4e0d\u8db3\u3057\u3066\u304a\u308a\u3001\u3069\u3046\u3084\u3063\u3066\u3082\u3053\u308c\u4ee5\u4e0a\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\u3002<\/p>\n \u3053\u306e\u56f3\u3067\u306f\u3001\u4eca\u307e\u3055\u306b\u5927\u91cf\u306e\u30a2\u30af\u30bb\u30b9\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u3067\u306f\u306a\u304f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u59cb\u6642\u306b\u78ba\u4fdd\u3057\u305f\u7269\u7406\u30e1\u30e2\u30ea\uff08\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u3067\u306e\u7dd1\u8272\u67a0\uff09\u304c\u9078\u629e\u3055\u308c\u305f\u3068\u4eee\u5b9a\u3057\u3066\u3001\u3053\u308c\u3089\u304c\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3001\u5bfe\u5fdc\u3059\u308b\u7269\u7406\u30e1\u30e2\u30ea\u306e\u30da\u30fc\u30b8\u306f\u300c\u672a\u4f7f\u7528(Unused)\u300d\u3068\u3057\u3066\u30de\u30fc\u30af\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n \u30d7\u30ed\u30bb\u30b9\u5185\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u3067\u3001\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3055\u308c\u305f\u30da\u30fc\u30b8\uff08\u7dd1\u8272\u67a0\uff09\u306f\u3001\u300c\u305d\u3053\u306b\u30e1\u30e2\u30ea\u306f\u5b58\u5728\u3059\u308b\u4e8b\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u3001\u5b9f\u969b\u306f\u30c7\u30a3\u30b9\u30af\u306b\u5b58\u5728\u3057\u3066\u3044\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u7269\u7406\u30e1\u30e2\u30ea\u306f\u5b58\u5728\u3057\u306a\u3044\u300d\u72b6\u614b\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u5b9f\u5bb3\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30d7\u30ed\u30bb\u30b9\u5185\u306e\u30b3\u30fc\u30c9\u304c\u3053\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3044\u3046\u3061\u306f\u3001\u3053\u306e\u4e8b\u5b9f\u3092\u77e5\u308b\u8005\u306f\uff08\u30d7\u30ed\u30bb\u30b9\u5185\u306b\u306f\uff09\u5c45\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u3053\u306e\u72b6\u614b\u306f\u3001\u4e01\u5ea6VirtualAlloc\u3067\u30e1\u30e2\u30ea\u3092\u78ba\u4fdd\u3057\u305f\u76f4\u5f8c\u306e\u72b6\u614b\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n \u304c\u3001\u307e\u3060\u307e\u3060\u8db3\u308a\u306a\u3044…<\/p>\n \u4eee\u306b\u3067\u3059\u304c\u3001\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u30a2\u30db\u3060\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u73fe\u5728\u30a2\u30af\u30bb\u30b9\u304c\u983b\u7e41\u306b\u767a\u751f\u3057\u3066\u3044\u308b\u30da\u30fc\u30b8\u3092\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3057\u3001\u3059\u3050\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u3066\u30b9\u30ef\u30c3\u30d7\u30a4\u30f3\u3059\u308b\u3068\u3044\u3046\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u3068\u3066\u3064\u3082\u306a\u304f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4f4e\u4e0b\u3092\u5f15\u304d\u8d77\u3053\u3059\u539f\u56e0\u3068\u306a\u308a\u307e\u3059\u3002\u3060\u304b\u3089\u3001\u3069\u306e\u30da\u30fc\u30b8\u3092\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3055\u305b\u308b\u306e\u304b\u3068\u3044\u3046\u6c7a\u5b9a\u30ed\u30b8\u30c3\u30af\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n # \u4f8b\u3048\u3070\u3001\u5358\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u72b6\u614b\u3067\u3042\u308c\u3070\u3001\u5fa9\u5143\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30da\u30fc\u30b8\u306e\u89e3\u653e\u306f\u30c7\u30a3\u30b9\u30af\u306b\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3092\u5fc5\u8981\u3068\u3057\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306a\u30da\u30fc\u30b8\u304c\u3042\u308c\u3070\u3001\u512a\u5148\u7684\u306b\u89e3\u653e\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002EXE\u3084DLL\u3067\u3042\u308c\u3070\u3001\u56fa\u5b9a\u30c7\u30fc\u30bf\u3084\u30ea\u30bd\u30fc\u30b9\u30c7\u30fc\u30bf\uff08COFF\u306e.rdata\u3084.rsrc\u30bb\u30af\u30b7\u30e7\u30f3\uff09\u306a\u3069\u304c\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n \u3042\u3068\u306f\u3001\u3053\u308c\u3092\u3072\u305f\u3059\u3089\u7e70\u308a\u8fd4\u3057\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u4eee\u60f3\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u6b62\u3081\u308b\uff08\u5b9f\u884c\u3092\u5b8c\u4e86\u3059\u308b\uff09\u307e\u3067\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u6e80\u8db3\u3055\u305b\u308c\u3070\u3088\u3044\u306e\u3067\u3059\u3002<\/p>\n \u7d50\u5c40\u3001\u554f\u984c\u3068\u306a\u308b\u306e\u306f\u3069\u3053\u3067\u3057\u3087\u3046\u304b\uff1f \u7269\u7406\u30e1\u30e2\u30ea\u3092\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3055\u305b\u3066\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3001\u30b9\u30ef\u30c3\u30d7\u30a4\u30f3\u3067\u5fa9\u5143\u3055\u305b\u308b\u6642\u3001\u3053\u3053\u304c\u6700\u3082\u6642\u9593\u306e\u304b\u304b\u308b\u51e6\u7406\u3067\u3042\u308b\u305f\u3081\u3001\u30b9\u30ef\u30c3\u30d7\u51e6\u7406\u3067\u5fd9\u3057\u304f\u306a\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u5fdc\u7b54\u6027\u304c\u60aa\u304f\u306a\u308b\u306e\u3067\u3059\u3002<\/p>\n \u3053\u308c\u304c\u3001\u30e1\u30e2\u30ea\u306e\u4eee\u60f3\u5316\u306b\u3088\u308b\u6069\u6075\u3067\u3001\u300c\u4e0d\u8981\u300d\u306a\u3001\u4f7f\u7528\u4e2d\u306e\u30e1\u30e2\u30ea\u306e\u60c5\u5831\u3092\u4e00\u65e6\u30c7\u30a3\u30b9\u30af\u306b\u9000\u907f\u3057\u3001\u3053\u308c\u306b\u3088\u308a\u7269\u7406\u30e1\u30e2\u30ea\u7a7a\u9593\u3092\u672a\u4f7f\u7528\u72b6\u614b\u306b\u3057\u3001\u65b0\u305f\u306b\u5fc5\u8981\u306b\u306a\u3063\u305f\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u518d\u914d\u7f6e\u3057\u3066\u4f7f\u7528\u53ef\u80fd\u306b\u3059\u308b\u64cd\u4f5c\u3067\u3059\u3002\u3053\u306e\u64cd\u4f5c\u306fWindows\u30ab\u30fc\u30cd\u30eb\u304c\u5185\u90e8\u3067\u884c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u5168\u304f\u305d\u3093\u306a\u4e8b\u3092\u611f\u77e5\u305b\u305a\u3001\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3092\u7d99\u7d9a\u3057\u307e\u3059\u3002<\/p>\n \u4f46\u3057\u3001\u30c7\u30a3\u30b9\u30af\u3078\u306e\u9000\u907f\u3068\u3001\u3042\u3068\u3067\u5fa9\u5143\u3059\u308b\u305f\u3081\u306b\u8aad\u307f\u51fa\u3059\u64cd\u4f5c\u306f\u3001\u5f53\u7136\u975e\u5e38\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u305d\u308c\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u30b9\u30ed\u30fc\u30c0\u30a6\u30f3\u3057\u305f\u539f\u56e0\u3067\u3059\u3002\u307e\u305f\u3001Parallel.ForEach\u3067\u66f8\u304d\u8fbc\u307f\u51e6\u7406\u3092\u4e26\u5217\u5316\u3057\u305f\u306e\u306f\u3001\u3053\u306e\u9000\u907f\u51e6\u7406\u3092\u5fd9\u3057\u304f\u3066\u305d\u306e\u307b\u304b\u306e\u51e6\u7406\u3092\u884c\u3046\u4f59\u88d5\u304c\u306a\u3044\u3088\u3046\u306b\u4ed5\u5411\u3051\u308b\u305f\u3081\u3067\u3059\u3002\u3082\u3057\u3001\u30c7\u30a3\u30b9\u30af\u304c\u975e\u5e38\u306b\u9ad8\u901f\u3067\u3042\u3063\u305f\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u30b9\u30ed\u30fc\u30c0\u30a6\u30f3\u305b\u305a\u3001\u66f4\u306b\u306f\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u304c\u9ad8\u901f\u306b\u884c\u308f\u308c\u308b\u3053\u3068\u3067\u3001\u7269\u7406\u30e1\u30e2\u30ea\u3092\u4e0a\u9650\u307e\u3067\u6d88\u8cbb\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u3063\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n \u3053\u3053\u307e\u3067\u306e\u5b9f\u9a13\u3067\u3001\u7269\u7406\u30e1\u30e2\u30ea\uff08Physical Memory\uff09\u306e\u4f7f\u7528\u91cf\u3092\u773a\u3081\u3066\u3044\u3066\u3082\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6d88\u8cbb\u3059\u308b\u30e1\u30e2\u30ea\u91cf\u3068\u3044\u3046\u306e\u306f\u5168\u304f\u4e88\u6e2c\u51fa\u6765\u306a\u3044\u4e8b\u304c\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u306e\u7d50\u679c\u304b\u3089\u2461\u304c\u30e1\u30e2\u30ea\u6d88\u8cbb\u306e\u898b\u7a4d\u3082\u308a\u3068\u3057\u3066\u4f55\u3092\u610f\u5473\u3059\u308b\u306e\u304b\u3092\u8003\u3048\u308b\u306e\u306f\u3001\u7121\u610f\u5473\u3067\u3042\u308b\u3053\u3068\u3082\u60f3\u50cf\u3067\u304d\u307e\u3059\u3002\u2461\u3067\u4f55\u6545\u7269\u7406\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u304c\u4f4e\u4e0b\u3057\u305f\u306e\u304b\u3001\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u8003\u5bdf\u3068\u306f\u4f55\u306e\u95a2\u4fc2\u3082\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n # \u5927\u91cf\u306e\u7269\u7406\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3057\u305f\u5f8c\u306b\u3001\u7269\u7406\u30e1\u30e2\u30ea\u306e\u30da\u30fc\u30b8\u304c\u89e3\u653e\u3055\u308c\u308b\u6319\u52d5\u306f\u3001Windows\u30ab\u30fc\u30cd\u30eb\u306e\u6700\u9069\u5316\u51e6\u7406\u306b\u3088\u308b\u3082\u306e\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u30e1\u30e2\u30ea\u4e0d\u8db3\u304c\u6df1\u523b\u306a\u72b6\u6cc1\u3067\u306f\u3001\u7d20\u65e9\u304f\u7a7a\u304d\u7269\u7406\u30e1\u30e2\u30ea\u3092\u78ba\u4fdd\u3057\u305f\u65b9\u304c\u826f\u3044\u3068\u601d\u308f\u308c\u308b\u305f\u3081\u3001\u7a4d\u6975\u7684\u306b\u5148\u56de\u308a\u3057\u3066\u89e3\u653e\u3059\u308b\u624b\u6cd5\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n \u524d\u7bc0\u306e\u3088\u3046\u306a\u3001\u8d85\u9ad8\u8ca0\u8377\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u4f5c\u3057\u3066\u3044\u3066\u3082\u3001\u307b\u304b\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u7570\u5e38\u7d42\u4e86\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3082\u3061\u308d\u3093\u3001\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u306b\u4f7f\u7528\u3059\u308b\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u6b8b\u3063\u3066\u3044\u308c\u3070\u3001\u306e\u8a71\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u3042\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u3053\u306e\u3088\u3046\u306b\u5927\u91cf\u306e\u30da\u30fc\u30b8\u306b\u5bfe\u3057\u3066\u8aad\u307f\u66f8\u304d\u3057\u3066\u3044\u305f\u3089\u3001\u307b\u304b\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u308b\u30da\u30fc\u30b8\u306f\u3069\u3046\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n \u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u52d5\u4f5c\u304c\u30b7\u30b9\u30c6\u30e0\u306e\u5168\u3066\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u5bfe\u3057\u3066\u884c\u308f\u308c\u308b\u3068\u8003\u3048\u308c\u3070\u308f\u304b\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u898b\u3066\u300d\u4f7f\u7528\u983b\u5ea6\u306e\u4f4e\u3044\u30da\u30fc\u30b8\u3092\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3057\u3066\u884c\u304f\u306e\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001Windows\u306e\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u7528\u4e8b\u304c\u3042\u308b\u307e\u3067\u5f85\u6a5f\u3057\u305f\u307e\u307e\u3067\u3042\u308b\u4e8b\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306a\u30d7\u30ed\u30bb\u30b9\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u306f\u3001\u5bfe\u5fdc\u3059\u308b\u7269\u7406\u30e1\u30e2\u30ea\u304c\u3044\u3064\u3082\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3057\u3066\u3044\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u4f55\u6545\u306a\u3089\u300c\u6642\u3005\u3057\u304b\u52d5\u4f5c\u305b\u305a\u3001\u305d\u306e\u6642\u306b\u3060\u3051\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u300d\u304b\u3089\u3067\u3059\u3002<\/p>\n \u3057\u304b\u3057\u3001\u73fe\u5728\u306eWindows\u306f\u3001\u305d\u3082\u305d\u3082\u7269\u7406\u30e1\u30e2\u30ea\u306b\u4f59\u88d5\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u7a4d\u6975\u7684\u306b\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u306f\u884c\u308f\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3059\u308b\u306b\u306f\u30c7\u30a3\u30b9\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e0d\u5fc5\u8981\u3068\u5224\u65ad\u3055\u308c\u305f\u3068\u304d\u306f\u300c\u6687\u300d\u3060\u3068\u8003\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u81ea\u4f53\u554f\u984c\u306b\u306a\u308a\u307e\u305b\u3093\u304c\u3001\u3044\u3056\u52d5\u304d\u59cb\u3081\u305f\u6642\u306b\u30da\u30fc\u30b8\u304c\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u3068\u30b9\u30ef\u30c3\u30d7\u30a4\u30f3\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u3053\u308c\u306f\u9ad8\u30b3\u30b9\u30c8\u3067\u3042\u308b\u305f\u3081\u3001\u5fdc\u7b54\u6027\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\n \u524d\u7bc0\u306e\u691c\u8a3c\u306b\u3088\u308a\u3001\u7269\u7406\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u3092\u898b\u3066\u3044\u3066\u3082\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306f\u5206\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u8a71\u3092\u3057\u307e\u3057\u305f\u306d\uff1f<\/p>\n \u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u306f\u3001\u3042\u308b\u6642\u9593\u306b\u304a\u3044\u3066\u3001\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u7269\u7406\u30e1\u30e2\u30ea\u306e\u7dcf\u5bb9\u91cf\uff08\u7dcf\u30da\u30fc\u30b8\u6570\uff09\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u3053\u306e\u5024\u306f\u300c\u7269\u7406\u30e1\u30e2\u30ea\u91cf\u300d\u3092\u8868\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u3088\uff01\uff01\uff01<\/p>\n \u300c\u4e00\u4f53\u4f55\u3092\u898b\u3066\u3044\u305f\u3093\u3060\u4ffa\u305f\u3061\u306f…\u300d<\/strong><\/span>\u3068\u601d\u3063\u3066\u3044\u305f\u3060\u3051\u307e\u3057\u305f\u304b\uff1f<\/p>\n # \u307b\u3068\u3093\u3069\u3053\u308c\u304c\u8a00\u3044\u305f\u304b\u3063\u305f (\u00b4\u0414\uff40)<\/p>\n \u3053\u308c\u306f\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u76f4\u5f8c\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u304c\u3001\u5404\u30d7\u30ed\u30bb\u30b9\u306e\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u304c\u8ed2\u4e26\u307f\u4f4e\u3044\u5024\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u307e\u308a\u306b\u5927\u91cf\u306e\u7269\u7406\u30e1\u30e2\u30ea\u3092\u5fc5\u8981\u3068\u3057\u305f\u305f\u3081\u3001\u307b\u304b\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u305f\u7269\u7406\u30e1\u30e2\u30ea\u3082\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3055\u308c\u3066\u6d41\u7528\u3055\u308c\u305f\u7d50\u679c\u3067\u3059\u3002\u304b\u308d\u3046\u3058\u3066\u6b8b\u3063\u3066\u3044\u308b\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u306f\u3001\u300c\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30da\u30fc\u30b8\u300d\u3068\u5224\u65ad\u3055\u308c\u305f\u306e\u3067\u3057\u3087\u3046\u3002<\/p>\n # \u4f8b\u3048\u3070\u3001\u30a6\u30a4\u30f3\u30c9\u30a6\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306a\u3069\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u304c\u914d\u7f6e\u3055\u308c\u305f\u30da\u30fc\u30b8\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u767a\u751f\u3057\u305f\u3089\u3059\u3050\u306b\u52d5\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u5bfe\u5fdc\u3059\u308b\u30da\u30fc\u30b8\u306f\u4fdd\u6301\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3057\u3087\u3046\u3002\u4ed6\u306b\u3082\u30ed\u30c3\u30af\u3055\u308c\u305f\u30da\u30fc\u30b8\u306e\u53ef\u80fd\u6027\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u8ff0\u3079\u307e\u305b\u3093\u3002<\/p>\n \u3055\u3066\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u306e\u7d71\u8a08\u5024\u3067\u3059\u304c\u3001\u307e\u3042\u3001\u5168\u304f\u7121\u610f\u5473\u306a\u6307\u6a19\u3068\u8a00\u3046\u308f\u3051\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u5024\u304c\u666e\u6bb5\u304b\u3089\u5927\u304d\u3044\u3068\u8a00\u3046\u4e8b\u306f\u3001\u30e1\u30e2\u30ea\u53c2\u7167\u306e\u5c40\u6240\u6027\u304c\u4f4e\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u5834\u5408\u306f\u300130GB\u306e\u30e1\u30e2\u30ea\u3092\u4e38\u3005\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u306e\u3067\u4ed5\u65b9\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u7279\u306b\u601d\u3044\u5f53\u305f\u308b\u7bc0\u3082\u306a\u304f\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u304c\u5927\u304d\u3044\u5834\u5408\u3001\u52b9\u7387\u304c\u826f\u304f\u306a\u3044\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u3063\u3066\u3044\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n \u5927\u3052\u3055\u306a\u305f\u3068\u3048\u3067\u3059\u304c\u3001\u914d\u5217\u3067\u4fdd\u6301\u3059\u308c\u3070\u6e08\u3080\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u3001\u308f\u3056\u308f\u3056\u30ea\u30f3\u30af\u30ea\u30b9\u30c8\u3067\u4fdd\u6301\u3057\u305f\u308a\u3059\u308b\u3068\u3001\u30da\u30fc\u30b8\u306b\u307e\u305f\u304c\u3063\u3066\u30c7\u30fc\u30bf\u304c\u5206\u6563\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u3001\u5c11\u306a\u3044\u6d88\u8cbb\u91cf\u3067\u3082\u8907\u6570\u30da\u30fc\u30b8\u3092\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u6d88\u8cbb\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n \u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u304c\u5927\u304d\u3044\u3068\u3001\u305d\u308c\u3060\u3051\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306e\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001CPU\u5185\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3082\u53ce\u307e\u3089\u306a\u304f\u306a\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3059\u308b\u539f\u56e0\u3068\u306a\u308a\u307e\u3059\u3002\u3060\u304b\u3089\u3001\u305d\u306e\u4e88\u5146\u3092\u898b\u6975\u3081\u308b\u76ee\u7684\u3067\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u3092\u4f7f\u3046\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n \u79c1\u305f\u3061\u306f\u30b7\u30b9\u30c6\u30e0\u5c0e\u5165\u306b\u969b\u3057\u3066\u3001PC\u3084\u30b5\u30fc\u30d0\u30fc\u306b\u5fc5\u8981\u306a\u306e\u7269\u7406\u30e1\u30e2\u30ea\u91cf\u306e\u898b\u7a4d\u3082\u308a\u3092\u3059\u308b\u308f\u3051\u3067\u3059\u304c\uff08\u5b9f\u969b\u306e\u3068\u3053\u308d\u3001\u3042\u307e\u308a\u3084\u308a\u305f\u304f\u306f\u306a\u3044\uff09\u3001\u4e00\u4f53\u4f55\u3092\u57fa\u6e96\u306b\u898b\u7a4d\u3082\u308b\u306e\u304b\u3001\u3068\u8a00\u3046\u4e8b\u306f\u5341\u5206\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n \u898b\u7a4d\u3082\u308a\u306e\u65b9\u6cd5\u306e\u4e00\u3064\u3068\u3057\u3066\u3001\u539f\u5247\u7684\u306b\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u3084\u30da\u30fc\u30b8\u30f3\u30b0\u3092\u767a\u751f\u3055\u305b\u306a\u3044\u307b\u3069\u306e\u7269\u7406\u30e1\u30e2\u30ea\u3092\u642d\u8f09\u3059\u308b\u3001\u3068\u8003\u3048\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306a\u3089\u3070\u3001System Commits\u304cPhysical Memory\u3092\u8d85\u3048\u306a\u3044\u3050\u3089\u3044\u306b\u7269\u7406\u30e1\u30e2\u30ea\u3092\u4e57\u305b\u308c\u3070\u826f\u3044\u308f\u3051\u3067\u3001\u57fa\u6e96\u3068\u3057\u3066\u306f\u30a2\u30ea\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u57fa\u6e96\u3092\u9069\u7528\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u76f4\u89b3\u7684\u306a\u6d88\u8cbb\u91cf\u304b\u3089\u306f\u7a0b\u9060\u3044\u7a0b\u306e\u5927\u91cf\u306e\u30e1\u30e2\u30ea\u304c\u5fc5\u8981\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u308c\u306f\u3001Committed bytes\u3088\u308a\u3082\u30d7\u30ed\u30bb\u30b9\u306e\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u304c\u6975\u7aef\u306b\u5c0f\u3055\u304f\u306a\u308b\u3088\u3046\u306a\u3001\u30e1\u30e2\u30ea\u53c2\u7167\u5c40\u6240\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5f53\u3066\u306f\u307e\u308a\u307e\u3059\u3002<\/p>\n \u81ea\u5206\u304c\u898b\u7a4d\u3082\u308a\u3092\u884c\u306a\u304a\u3046\u3068\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u679c\u305f\u3057\u3066\u524d\u8005\u306e\u3088\u3046\u306a\u6975\u7aef\u306a\u30e1\u30e2\u30ea\u91cf\u4f9d\u5b58\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u306e\u304b\u3001\u305d\u308c\u3068\u3082\u3001\u30e1\u30e2\u30ea\u53c2\u7167\u5c40\u6240\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u306e\u304b\uff1f \u3042\u308b\u3044\u306f\u305d\u306e\u4e2d\u9593\u306a\u306e\u304b\uff1f \u4eca\u307e\u3067\u793a\u3057\u305f\u4eee\u60f3\u30e1\u30e2\u30ea\u306e\u51e6\u7406\u3092\u524d\u63d0\u306b\u3001\u305d\u308c\u306f\u3069\u3046\u3084\u3063\u305f\u3089\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304b\uff1f<\/p>\n \u3069\u3046\u3057\u3066\u3082\u898b\u7a4d\u3082\u3063\u3066\u304f\u308c\u3068\u8a00\u308f\u308c\u308c\u3070\u3001\u305d\u308a\u3083\u3001\u8a08\u6e2c\u3059\u308b\u3057\u304b\u306a\u3044\u3067\u3059\u3088\u306d\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u305d\u306e\u3082\u306e\u3092\u5b9f\u74b0\u5883\u306b\u8fd1\u3044\u74b0\u5883\u3067\u52d5\u304b\u3059\u304b\u3001\u3042\u308b\u3044\u306f\u305d\u308c\u306b\u8fd1\u3057\u3044\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9\u3067\uff08\u305d\u308c\u3063\u3066\u3001\u30b3\u30b9\u30c8\u639b\u304b\u308b\u4f5c\u696d\u3067\u3059\u3088\u306d\u3002\u691c\u8a3c\u306b\u898b\u5408\u3046\u306e\uff1f\uff09\u3002\u306a\u306e\u3067\u3001\u79c1\u306f\u3001\u524d\u63d0\u3082\u660e\u3089\u304b\u3067\u306f\u306a\u3044\u78ba\u5b9a\u7684\u306a\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u898b\u7a4d\u3082\u308a\u3092\u898b\u308b\u3068\u7591\u3063\u3066\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n \u300c\u306a\u306b\u3053\u306e\u6570\u5b57\uff01\u3069\u3063\u304b\u3089\u6765\u305f\u3093\u3060\u3088\u3063\uff01\uff01\u300d<\/p>\n \u6b21\u306f\u3001__yossy__\u3055\u3093\u3001\u304a\u306d\u304c\u3044\u3057\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":" \u3053\u306e\u6295\u7a3f\u306f\u300cWindows & Microsoft\u6280\u8853 \u57fa\u790e Advent Calendar 2015\u300d\u306e16\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u672c\u7a3f\u3067\u306f\u3001Windows\uff08\u5e83\u304f\u4e00\u822c\u306eOS\u3067\u3082\u3001\u57fa\u790e\u7684\u306a\u77e5\u8b58\u3068\u3057\u3066\u306f\u9069\u5408\u3059\u308b\uff09\u306e\u3001\u300c … \u7d9a\u304d\u3092\u8aad\u3080 \u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3001\u3068\u306f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2,9],"tags":[35,34,30,33,28,31,32,27,29],"class_list":["post-5424","post","type-post","status-publish","format-standard","hentry","category-net","category-wdk","tag-allocation","tag-memory","tag-paging","tag-physical","tag-process","tag-swapping","tag-virtual","tag-windows","tag-workingset"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4VeB3-1pu","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/posts\/5424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/comments?post=5424"}],"version-history":[{"count":60,"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/posts\/5424\/revisions"}],"predecessor-version":[{"id":5498,"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/posts\/5424\/revisions\/5498"}],"wp:attachment":[{"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/media?parent=5424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/categories?post=5424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kekyo.net\/wp-json\/wp\/v2\/tags?post=5424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n\u666e\u901a\u306e\u4eba\u3001\u666e\u901a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u666e\u901a\u306e\u30d7\u30ed\u30bb\u30b9<\/h2>\n
\r\nvar data = new byte[10 * 1000 * 1000];\r\n<\/pre>\n
\r\n\/\/ \u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u793a\u3059\u6b63\u898f\u8868\u73fe\uff08Dobon.net\u304b\u3089\uff09\r\nvar regex = new Regex(@"\\A(?:[a-z]:|{1})(?:{1}[^{0}]+)+\\z");\r\n<\/pre>\n
\nWindows\u306b\u304a\u3051\u308b\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u6307\u6a19<\/h2>\n
<\/a>\u3053\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u3001Process Explorer<\/a>\u306e\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u8868\u793a\u3067\u3059\u3002<\/p>\n
\n
\n\u4eee\u60f3\u30e1\u30e2\u30ea\u6280\u8853\u3068\u306f<\/h2>\n
\u30da\u30fc\u30b8\u30f3\u30b0\u30fb\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u51e6\u7406<\/h3>\n
<\/a>\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u7269\u7406\u30e1\u30e2\u30ea\u306e\u7dcf\u91cf\u3092\u8d85\u3048\u3066\u3001\u66f4\u306b\u591a\u304f\u306e\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u51e6\u7406\u3092\u3001\u30da\u30fc\u30b8\u30f3\u30b0\u3084\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u3068\u8a00\u3044\u307e\u3059\u3002<\/p>\n
<\/a>\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u7269\u7406\u30e1\u30e2\u30ea\u304c8GB\u3068\u3057\u307e\u3059\u3002\u3082\u3057\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u6280\u8853\u304c\u7121\u3044\u5834\u5408\u306f\u3001\u3069\u3046\u9811\u5f35\u3063\u3066\u30828GB\u3092\u8d85\u3048\u308b\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3059\u308b\u4e8b\u306f\u51fa\u6765\u307e\u305b\u3093\u30028GB\u3068\u3044\u3046\u3068\u3001\u8907\u6570\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\uff09\u304c\u540c\u6642\u306b\u30e1\u30e2\u30ea\u3092\u8981\u6c42\u3059\u308b\u306e\u3067\u3001\u7c21\u5358\u306b\u4f7f\u3044\u5207\u3063\u3066\u3057\u307e\u3046\u6050\u308c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u30e1\u30e2\u30ea\u7a7a\u9593\u306e\u30bb\u30d1\u30ec\u30fc\u30b7\u30e7\u30f3<\/h3>\n
\n# \u307e\u305f\u3001.NET\u306e\u3088\u3046\u306b\u30e1\u30e2\u30ea\u306e\u7ba1\u7406\u304c\u30e9\u30f3\u30bf\u30a4\u30e0\u306b\u3088\u3063\u3066\u5b8c\u5168\u306b\u652f\u914d\u7684\u306b\u884c\u308f\u308c\u308b\u74b0\u5883\u3067\u306f\u3001\u5b89\u5168\u306e\u305f\u3081\u306b\u30e1\u30e2\u30ea\u7a7a\u9593\u3092\u5206\u5272\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u5408\u3044\u306f\u591a\u5c11\u8584\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n
\n\u30e1\u30e2\u30ea\u306e\u78ba\u4fdd\u3068\u306f<\/h2>\n
\r\n[Flags]\r\nprivate enum AllocationType : uint\r\n{\r\n\tCOMMIT = 0x1000,\r\n\tRESERVE = 0x2000,\r\n}\r\n\r\n[Flags]\r\nprivate enum MemoryProtection : uint\r\n{\r\n\tREADWRITE = 0x04,\r\n}\r\n\r\n[DllImport("kernel32.dll", SetLastError = true)]\r\nprivate static extern UIntPtr VirtualAlloc(\r\n\tUIntPtr lpAddress,\r\n\tUIntPtr dwSize,\r\n\tAllocationType flAllocationType,\r\n\tMemoryProtection flProtect);\r\n\r\npublic static unsafe void Main(string[] args)\r\n{\r\n\t\/\/ [1]: \u4eee\u60f3\u30e1\u30e2\u30ea\u9818\u57df\u3092\u5272\u308a\u5f53\u3066\u308b\r\n\tvar size = 30UL*1000*1000*1000;\r\n\tvar p = VirtualAlloc(\r\n\t\tUIntPtr.Zero,\r\n\t\tnew UIntPtr(size),\r\n\t\tAllocationType.COMMIT | AllocationType.RESERVE,\r\n\t\tMemoryProtection.READWRITE);\r\n\tif (p == UIntPtr.Zero)\r\n\t{\r\n\t\tMarshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());\r\n\t}\r\n\r\n\t\/\/ [2]: \u5272\u308a\u5f53\u3066\u305f\u30e1\u30e2\u30ea\u9818\u57df\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\r\n\tvar pBase = (byte*)p.ToPointer();\r\n\tvar count = size \/ 4;\r\n\tParallel.ForEach(\r\n\t\tEnumerable.Range(0, 4),\r\n\t\tbaseIndex =>\r\n\t\t{\r\n\t\t\tvar pRangeBase = (ulong*)(pBase + count * (ulong)baseIndex);\r\n\t\t\tfor (ulong index = 0; index < (count \/ 8); index++)\r\n\t\t\t{\r\n\t\t\t\t*(pRangeBase + index) = ulong.MaxValue;\r\n\t\t\t}\r\n\t\t});\r\n}\r\n<\/pre>\n
<\/a>\u3053\u308c\u306f\u3001[1]\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u306e\u5272\u308a\u5f53\u3066\u304c\u5b8c\u4e86\u3057\u305f\u76f4\u5f8c\u306e\u72b6\u614b\u3067\u3059\u3002Commit Charge\u53ca\u3073\u3001\u4e0a\u6bb5\u306e”System Commit”\u306e\u30b0\u30e9\u30d5\u304c36GB\u306b\u8df3\u306d\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\u3002VirtualAlloc API\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u300c\u4eee\u60f3\u30e1\u30e2\u30ea\u300d\u306e\u5272\u308a\u5f53\u3066\u304c\u884c\u308f\u308c\u305f\u306e\u3067\u3059\u3002\u7269\u7406\u30e1\u30e2\u30ea\u306f16GB\u306a\u306e\u3067\u3001\u660e\u3089\u304b\u306b\u305d\u308c\u4ee5\u4e0a\u306e\u30e1\u30e2\u30ea\u304c\u300c\u5b58\u5728\u3059\u308b\u300d\u304b\u306e\u3088\u3046\u306b\u6271\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u3001VirtualAlloc\u306e\u623b\u308a\u5024\u306b\u306f\u3001\u30e1\u30e2\u30ea\u306e\u8aad\u307f\u66f8\u304d\u306b\u4f7f\u7528\u53ef\u80fd\u306a\u3001\u6709\u52b9\u306a\u30dd\u30a4\u30f3\u30bf\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n
<\/a>\u3068\u3001\u540c\u6642\u306b\u8208\u5473\u6df1\u3044\u3053\u3068\u3082\u308f\u304b\u308a\u307e\u3059\u3002Physical Memory\u306e\u4f7f\u7528\u91cf\uff08Total – Available\uff09\u53c8\u306f\u3001\u4e0a\u6bb5\u306e”Physical Memory”\u306e\u30b0\u30e9\u30d5\u306f\u3001\u5168\u304f\u5909\u5316\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u3002\u3053\u308c\u306f\u3064\u307e\u308a\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3001\u30dd\u30a4\u30f3\u30bf\u307e\u3067\u53d6\u5f97\u3067\u304d\u3066\u8aad\u307f\u66f8\u304d\u53ef\u80fd\u306a\u72b6\u614b\u3067\u3042\u308b\u306e\u306b\u3001\u5168\u304f\u7269\u7406\u30e1\u30e2\u30ea\u306e\u5272\u308a\u5f53\u3066\u306b\u5909\u5316\u304c\u306a\u3044\u3001\u3088\u308a\u76f4\u63a5\u7684\u306b\u8a00\u3046\u306a\u3089\u3070\u300c\u7269\u7406\u30e1\u30e2\u30ea\u306f\u6d88\u8cbb\u3057\u3066\u3044\u306a\u3044\u300d\u306e\u3067\u3059\u3002<\/p>\n
<\/a>\u3053\u306e\u72b6\u614b\u304b\u3089\u3001[2]\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306e\u69d8\u5b50\u304c\u3053\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002<\/p>\n
\n
<\/a>\u4eee\u60f3\u30e1\u30e2\u30ea\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u9014\u7aef\u306b\u3001\u7269\u7406\u30e1\u30e2\u30ea\u3092\u6d88\u8cbb\u3057\u306f\u3058\u3081\u3001\u307b\u307c\u5b9f\u88c5\u30e1\u30e2\u30ea\u91cf\u4e0a\u9650\u306e16GB\u307e\u3067\u4f7f\u3044\u5207\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u4e8b\u304b\u3089\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u306f\u5b9f\u969b\u306b\u4f7f\u7528\u3059\u308b\u307e\u3067\u3001\u7269\u7406\u30e1\u30e2\u30ea\u3092\u6d88\u8cbb\u3057\u306a\u3044\u4e8b\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u306e\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u306f\u3001\u3044\u3064\u3067\u3082\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30e1\u30e2\u30ea\u304c\u305d\u3053\u306b\u5b58\u5728\u3059\u308b\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u4f7f\u3046\u307e\u3067\u306f\u7269\u7406\u30e1\u30e2\u30ea\u306b\u30ce\u30fc\u30bf\u30c3\u30c1\u3067\u3059\u3002<\/p>\n
<\/a>\u3053\u3053\u3067\u3001\u30b9\u30ef\u30c3\u30d4\u30f3\u30b0\u304c\u59cb\u307e\u308a\u307e\u3059\u3002\u7269\u7406\u30e1\u30e2\u30ea\u4e0a\u3067\u300c\u4f7f\u7528\u983b\u5ea6\u306e\u4f4e\u3044\u300d\u30da\u30fc\u30b8\u304c\u691c\u7d22\u3055\u308c\u3001\u3053\u308c\u3089\u306e\u30da\u30fc\u30b8\u304c\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u51fa\u3055\u308c\u307e\u3059\uff08\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3068\u8a00\u3046\uff09\u3002\u4f7f\u7528\u983b\u5ea6\u304c\u4f4e\u3044\u3001\u3068\u306f\u3001\u4f8b\u3048\u3070\u3067\u3059\u304c\u3001LRU\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u5f93\u3063\u3066\u5224\u65ad\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002Windows\u306e\u5834\u5408\u306f\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u975e\u516c\u958b\u3067\u3042\u308b\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306b\u30da\u30fc\u30b8\u304c\u6c7a\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n
<\/a>\u3055\u3066\u3001\u3053\u308c\u3067\u5e7e\u3089\u304b\u7269\u7406\u30e1\u30e2\u30ea\u306b\u7a7a\u304d\u304c\u51fa\u6765\u305f\u306e\u3067\u3001\u4eee\u60f3\u30e1\u30e2\u30ea\u7a7a\u9593\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n
<\/a>\u305d\u3046\u3059\u308b\u3068\u3001\u300c\u66f4\u306b\u300d\u3001\u7269\u7406\u30e1\u30e2\u30ea\u4e0a\u3067\u300c\u4f7f\u7528\u983b\u5ea6\u306e\u4f4e\u3044\u300d\u30da\u30fc\u30b8\u304c\u691c\u7d22\u3055\u308c\u3001\u3053\u308c\u3089\u306e\u30da\u30fc\u30b8\u304c\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u51fa\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u660e\u3089\u304b\u306b\u4f7f\u7528\u983b\u5ea6\u304c\u4f4e\u3044\u30da\u30fc\u30b8\u306f\u3082\u3046\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u76f4\u8fd1\u3067\u306f\u30b9\u30bf\u30fc\u30c8\u76f4\u5f8c\u306b\u30e9\u30a4\u30c8\u3057\u305f\u30da\u30fc\u30b8\u304c\u3001\u4f7f\u7528\u983b\u5ea6\u304c\u4f4e\u3044\u3068\u8a00\u3048\u306a\u304f\u3082\u306a\u3044\u3067\u3059\u3002\u3082\u3046\u4e00\u5ea6\u8a00\u3044\u307e\u3059\u304c\u3001\u3069\u306e\u30da\u30fc\u30b8\u304c\u4f7f\u7528\u983b\u5ea6\u304c\u4f4e\u3044\u3068\u5224\u65ad\u3059\u308b\u306e\u304b\u306f\u975e\u516c\u958b\u306e\u305f\u3081\u3001\u5b9f\u969b\u306b\u306f\u3053\u3053\u3067\u8ff0\u3079\u305f\u3088\u3046\u306a\u5224\u65ad\u57fa\u6e96\u3067\u306f\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3068\u306b\u304b\u304f\u4f55\u3089\u304b\u306e\u65b9\u6cd5\u3067\u72a0\u7272\uff08\uff1f\uff09\u3068\u306a\u308b\u30da\u30fc\u30b8\u3092\u6c7a\u5b9a\u3057\u3001\u3053\u308c\u3092\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u51fa\u3057\u3066\u30b9\u30ef\u30c3\u30d7\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002<\/p>\n
\u30e1\u30e2\u30ea\u78ba\u4fdd\u306e\u307e\u3068\u3081<\/h3>\n
\n\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u8a00\u3046\u540d\u306e\u4ea1\u970a<\/h2>\n
<\/a>Windows\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u7d71\u8a08\u306b\u300c\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u300d\u3068\u3044\u3046\u6570\u5024\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306fProcess Explorer\u3067\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u305f\u3082\u306e\u3067\u3059\u3002\u6a19\u6e96\u306e\u30bf\u30b9\u30af\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u3082\u300c\u30e1\u30e2\u30ea\u300d\u3068\u3044\u3046\u3042\u3084\u3075\u3084\u306a\u30ab\u30e9\u30e0\u540d\u3067\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u306e\u6570\u5024\u304c\u30d7\u30ed\u30bb\u30b9\u304c\u4f7f\u7528\u3059\u308b\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3060\u3068\u601d\u3063\u3066\u3044\u308b\u65b9\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
<\/a>\u3053\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u3001ProcessExplorer\u3067\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8868\u793a\u3055\u305b\u305f\u3082\u306e\u3067\u3059\u3002\u8d64\u67a0\u5185\u306b\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u306e\u7d71\u8a08\u5024\u304c\u51fa\u3066\u3044\u307e\u3059\u3002\u304c\u3001\u3053\u306e\u67a0\u3092\u3088\u304f\u898b\u3066\u4e0b\u3055\u3044\u3002”Physical Memory”\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n
<\/a>\u5b9f\u969b\u3001\u5148\u307b\u3069\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u300c\u4ee5\u5916\u300d\u306e\u5404\u30d7\u30ed\u30bb\u30b9\u306e\u30ef\u30fc\u30ad\u30f3\u30b0\u30bb\u30c3\u30c8\u306e\u63a8\u79fb\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u3068\u3066\u3082\u9762\u767d\u3044\u73fe\u8c61\u304c\u76ee\u6483\u3067\u304d\u307e\u3059\u3002<\/p>\n
\n\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u898b\u7a4d\u3082\u308b\u3001\u3068\u8a00\u3046\u4e8b<\/h2>\n
\n