{"id":134567,"date":"2026-06-05T11:23:23","date_gmt":"2026-06-05T02:23:23","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=134567"},"modified":"2026-06-05T11:23:23","modified_gmt":"2026-06-05T02:23:23","slug":"wsl2-virtiofs-speedup","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/wsl2-virtiofs-speedup\/","title":{"rendered":"WSL 2\u3001Windows \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30a2\u30af\u30bb\u30b9\u304c\u5927\u5e45\u6539\u5584\u3078"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/09\/s_20220914_115442.jpg\" alt=\"S 20220914 115442\" title=\"s_20220914_115442.jpg\" border=\"0\" width=\"1183\" height=\"713\" \/><\/p>\n<p>WSL 2\u3092\u4f7f\u3063\u3066Windows\u3068Linux\u3092\u884c\u304d\u6765\u3057\u306a\u304c\u3089\u4f5c\u696d\u3057\u3066\u3044\u308b\u4eba\u306b\u3068\u3063\u3066\u3001\u30d5\u30a1\u30a4\u30ebI\/O\u306e\u901f\u5ea6\u306f\u5e38\u306b\u6c17\u306b\u306a\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<p>2026\u5e745\u6708\u3001WSL 2\u306b\u65b0\u3057\u3044\u6539\u5584\u304c\u5165\u308a\u3001virtiofs\u3092\u4f7f\u3063\u305f\u30af\u30ed\u30b9OS\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u304c\u3055\u3089\u306b\u9ad8\u901f\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Hayden Barnes\u6c0f\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u300c<a href=\"https:\/\/www.boxofcables.dev\/wsl2-per-device-swiotlb-pools-for-virtiofs-and-virtioproxy\/\">WSL 2 is getting faster Windows file system access<\/a>\u300d\u306b\u3088\u308b\u3068\u3001\u3053\u308c\u307e\u3067\u6b8b\u3063\u3066\u3044\u305f\u6700\u5f8c\u306e\u5927\u304d\u306a\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u304c\u89e3\u6d88\u3055\u308c\u3001Windows\u5074\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u304c\u3088\u308a\u30b9\u30e0\u30fc\u30ba\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>WSL\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306f\u3069\u3046\u9032\u5316\u3057\u3066\u304d\u305f\u306e\u304b<\/h2>\n<p>WSL\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306f\u6642\u4ee3\u306b\u5408\u308f\u305b\u3066\u9032\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u521d\u671f\u306eWSL 1\u306e\u9803\u306f\u3001Linux\u30d7\u30ed\u30bb\u30b9\u304cWindows\u30ab\u30fc\u30cd\u30eb\u4e0a\u3067\u76f4\u63a5\u52d5\u304f\u4ed5\u7d44\u307f\u3060\u3063\u305f\u305f\u3081\u3001\/mnt\/c\u306a\u3069\u306eWindows\u30c9\u30e9\u30a4\u30d6\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306fNTFS\u306b\u307b\u307c\u76f4\u7d50\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u304c\u591a\u3044\u4f5c\u696d\u3067\u3082\u9ad8\u901f\u306b\u52d5\u4f5c\u3057\u3066\u3044\u305f\u306e\u306f\u3053\u306e\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001WSL 2(2019\u5e74)\u3067\u306f\u8efd\u91cfVM\u4e0a\u3067\u672c\u7269\u306eLinux\u30ab\u30fc\u30cd\u30eb\u3092\u52d5\u304b\u3059\u65b9\u5f0f\u306b\u5909\u308f\u308a\u3001\u4e92\u63db\u6027\u3084Linux\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u6027\u80fd\u306f\u5411\u4e0a\u3057\u305f\u4e00\u65b9\u3067\u3001Windows\u5074\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306fPlan 9(9P)\u30d7\u30ed\u30c8\u30b3\u30eb\u7d4c\u7531\u306b\u306a\u308a\u307e\u3057\u305f\u30029P\u306f\u52d5\u4f5c\u306f\u5b89\u5b9a\u3057\u3066\u3044\u308b\u3082\u306e\u306e\u30011\u56de\u306e\u64cd\u4f5c\u3054\u3068\u306b64 KB\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30b5\u30a4\u30ba\u5236\u9650\u304c\u3042\u308a\u3001\u5c0f\u3055\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u5927\u91cf\u306b\u6271\u3046\u51e6\u7406\u3067\u306f\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u76ee\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067Microsoft\u306fvirtiofs\u3092\u5b9f\u9a13\u7684\u306b\u5c0e\u5165\u3057\u3001\u5171\u6709\u30e1\u30e2\u30ea\u30d9\u30fc\u30b9\u306e\u9ad8\u901f\u306a\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u3092\u6bb5\u968e\u7684\u306b\u6539\u5584\u3057\u3066\u304d\u307e\u3057\u305f\u30022021\u5e74\u4ee5\u964d\u3001\u30c7\u30d0\u30a4\u30b9\u518d\u5229\u7528\u3084mmap\u306e\u6539\u5584\u306a\u3069\u304c\u9032\u307f\u3001\u4eca\u56de\u306eDMA\u5c64\u306e\u6700\u9069\u5316\u3067\u3055\u3089\u306b\u4e00\u6b69\u524d\u9032\u3057\u305f\u5f62\u3067\u3059\u3002<\/p>\n<h2>\u4eca\u56de\u306e\u6539\u5584\u30dd\u30a4\u30f3\u30c8: \u30c7\u30d0\u30a4\u30b9\u3054\u3068\u306eDMA\u30d7\u30fc\u30eb<\/h2>\n<p>Hyper-V\u4e0a\u306eVM\u3067\u306f\u3001DMA\u3092\u884c\u3046\u969b\u306b4GB\u4ee5\u4e0b\u306e\u9818\u57df\u306b\u78ba\u4fdd\u3055\u308c\u305fSWIOTLB\u30d7\u30fc\u30eb(\u30d0\u30a6\u30f3\u30b9\u30d0\u30c3\u30d5\u30a1)\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u308c\u307e\u3067\u306fWSL 2\u5185\u306e\u3059\u3079\u3066\u306evirtio\u30c7\u30d0\u30a4\u30b9\u304c\u3053\u306e\u30d7\u30fc\u30eb\u3092\u5171\u6709\u3057\u3066\u304a\u308a\u3001\/mnt\/c\u3084\/mnt\/d\u306evirtiofs\u3001\u3055\u3089\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u307e\u3067\u540c\u3058\u9818\u57df\u3092\u53d6\u308a\u5408\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>2026\u5e745\u6708\u306b\u30de\u30fc\u30b8\u3055\u308c\u305f<a href=\"https:\/\/github.com\/microsoft\/WSL\/pull\/40654\">PR#40654<\/a>\u306b\u3088\u3063\u3066\u3001\u5404virtio\u30c7\u30d0\u30a4\u30b9\u304c\u5c02\u7528\u306eDMA\u30d7\u30fc\u30eb\u3092\u6301\u3064\u3088\u3046\u306b\u306a\u308a\u3001\u30c9\u30e9\u30a4\u30d6\u9593\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u306e\u7af6\u5408\u304c\u89e3\u6d88\u3055\u308c\u3001I\/O\u304c\u8a70\u307e\u308a\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6539\u5584\u3067\u6069\u6075\u304c\u5927\u304d\u3044\u306e\u306f\u3001Windows \u5074\u306b\u3042\u308b\u30b3\u30fc\u30c9\u3092 Linux \u5074\u3067\u30d3\u30eb\u30c9\u3059\u308b\u3088\u3046\u306a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001<code>C:\\Users\\you\\code<\/code> \u306b\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092 <code>\/mnt\/c<\/code> \u304b\u3089 <code>cargo build<\/code> \u3084 <code>npm install<\/code> \u3067\u51e6\u7406\u3059\u308b\u5834\u5408\u3001\u81a8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u6539\u5584\u3067\u3001\u3053\u306e\u300c\u30af\u30ed\u30b9 OS I\/O\u300d\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u304c\u3055\u3089\u306b\u6e1b\u308a\u3001\u30d3\u30eb\u30c9\u6642\u9593\u306e\u77ed\u7e2e\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001virtiofs\u3068\u540c\u3058DMA\u57fa\u76e4\u3092\u4f7f\u3046VirtioProxy\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3082\u9ad8\u901f\u5316\u306e\u6069\u6075\u3092\u53d7\u3051\u307e\u3059\u3002<\/p>\n<p>\u6700\u9069\u306a\u74b0\u5883\u3092\u5b9f\u73fe\u3059\u308b\u30dd\u30a4\u30f3\u30c8\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>.wslconfig\u306e[wsl2]\u30bb\u30af\u30b7\u30e7\u30f3\u3067virtiofs=true\u3092\u6709\u52b9\u5316<\/li>\n<li><code>wsl.exe--update--pre-release<\/code>\u3067\u6700\u65b0\u30ab\u30fc\u30cd\u30eb\u306b\u66f4\u65b0<\/li>\n<li>WSL 2\u306e\u5272\u308a\u5f53\u3066RAM\u30921GB\u4ee5\u4e0a\u306b\u78ba\u4fdd(SWIOTLB\u306b\u6700\u4f4e64MB\u5fc5\u8981)<\/li>\n<\/ul>\n<p>\u306a\u304a\u3001virtiofs\u306f\u307e\u3060\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u306a\u304f\u3001\u6a19\u6e96\u306f\u5f15\u304d\u7d9a\u304dPlan 9\u3067\u3059\u3002\u4eca\u5f8c\u3082\u6539\u5584\u306f\u7d9a\u3044\u3066\u3044\u304f\u898b\u8fbc\u307f\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081: WSL\u306e\u30af\u30ed\u30b9OS I\/O\u306f\u7740\u5b9f\u306b\u9032\u5316\u4e2d<\/h2>\n<p>WSL 1\u306eDrvFs\u3001WSL 2\u306e9P\u3001virtiofs\u3068\u3001Windows\u3068Linux\u306e\u9593\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306f\u4e16\u4ee3\u3092\u91cd\u306d\u308b\u3054\u3068\u306b\u9ad8\u901f\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306eDMA\u5c64\u306e\u6539\u5584\u306f\u3001virtiofs\u306e\u6027\u80fd\u3092\u3055\u3089\u306b\u5f15\u304d\u4e0a\u3052\u308b\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u3067\u3042\u308a\u3001Windows\u3068Linux\u3092\u6a2a\u65ad\u3059\u308b\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u78ba\u304b\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002WSL\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u901f\u5ea6\u306e\u9045\u3055\u306b\u4e0d\u6e80\u304c\u3042\u3063\u305f\u958b\u767a\u8005\u306e\u65b9\u306f\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WSL 2\u3092\u4f7f\u3063\u3066Windows\u3068Linux\u3092\u884c\u304d\u6765\u3057\u306a\u304c\u3089\u4f5c\u696d\u3057\u3066\u3044\u308b\u4eba\u306b\u3068\u3063\u3066\u3001\u30d5\u30a1\u30a4\u30ebI\/O\u306e\u901f\u5ea6\u306f\u5e38\u306b\u6c17\u306b\u306a\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002 2026\u5e745\u6708\u3001WSL 2\u306b\u65b0\u3057\u3044\u6539\u5584\u304c\u5165\u308a\u3001virtiofs\u3092\u4f7f\u3063\u305f\u30af\u30ed\u30b9OS\u306e\u30d5\u30a1 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":102397,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[3298,4106],"class_list":["post-134567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-windows","tag-wsl"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/134567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=134567"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/134567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/102397"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=134567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=134567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=134567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}