{"id":572,"date":"2014-03-03T16:06:17","date_gmt":"2014-03-03T07:06:17","guid":{"rendered":"http:\/\/pasero.net\/~mako\/blog\/?p=572"},"modified":"2014-03-03T16:06:17","modified_gmt":"2014-03-03T07:06:17","slug":"kvm-%e3%81%ab-kernel-samepage-merging-ksm","status":"publish","type":"post","link":"https:\/\/pasero.net\/~mako\/blog\/s\/572","title":{"rendered":"KVM \u306b Kernel Samepage Merging (KSM)"},"content":{"rendered":"<p>\u3044\u308f\u3086\u308b\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306e\u6a5f\u5668\u3092\u66f4\u65b0\u3057\u3001\u3053\u308c\u3092\u6a5f\u306b\u30bd\u30d5\u30c8\u3082 KVM \u306e\u4e0a\u306b\u8f09\u305b\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u7528\u9014\u3068\u5411\u304d\u306b\u3088\u3063\u3066\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3092\u5207\u308a\u5206\u3051\u307e\u3059\u3002\u30db\u30b9\u30c8\u3082\u8907\u6570\u306e\u30b2\u30b9\u30c8\u3082\u3001\u305c\u3093\u3076 Debian \u3067\u540c\u3058\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002\u30cd\u30c3\u30c8\u306e\u691c\u7d22\u306b\u3088\u3063\u3066\u5f97\u305f\u77e5\u8b58\u3067\u3082\u4f55\u3068\u304b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u5f53\u521d\u6c17\u3065\u304b\u305a\u306b\u3001\u5f8c\u304b\u3089\u300c\u3053\u3046\u3044\u3046\u306e\u304c\u3042\u308b\u306e\u304b\u300d\u3068\u6c17\u3065\u3044\u305f\u306e\u304c\u3001KSM (Kernel Samepage Merging) \u3067\u3057\u305f(\u89e3\u8aac\u306f\u305f\u3068\u3048\u3070 <a href=\"http:\/\/www.ibm.com\/developerworks\/jp\/linux\/library\/l-kernel-shared-memory\/\" >Linux \u30ab\u30fc\u30cd\u30eb\u5171\u6709\u30e1\u30e2\u30ea\u30fc\u306e\u5fb9\u5e95\u8abf\u67fb<\/a>)\u3002<\/p>\r\n<p><a href=\"http:\/\/www.technichristian.net\/2012\/05\/04\/kvm-on-debian-squeeze-my-notes.techni\" >KVM on Debian Squeeze &#8211; My Notes<\/a> \u3092\u53c2\u8003\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u30db\u30b9\u30c8\u3068\u30b2\u30b9\u30c8\u306e\u4e21\u65b9\u3067 \/etc\/rc.local \u3092\u7de8\u96c6\u3057\u3001\u6b21\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\r\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\necho 1 &gt; \/sys\/kernel\/mm\/ksm\/run\r\necho 300 &gt; \/sys\/kernel\/mm\/ksm\/sleep_millisecs\r\n<\/pre>\r\n<p>\u518d\u8d77\u52d5\u5f8c\u3001\/sys\/kernel\/mm\/KSM\/pages_sharing \u304c\u30bc\u30ed\u3088\u308a\u5927\u304d\u306a\u5024\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\r\n\r\n<h3>KSM \u306f\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u3044\u3044?<\/h3>\r\n\u3055\u3066\u3001\u306f\u3058\u3081\u6c17\u3065\u304b\u306a\u304b\u3063\u305f KSM \u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u306b\u884c\u304d\u5f53\u305f\u3063\u305f\u306e\u306f\u3001\u3068\u308a\u3042\u3048\u305a\u3057\u3070\u3089\u304f\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u3001\u30b2\u30b9\u30c8OS\u304c\u5f90\u3005\u306b\u30e1\u30e2\u30ea\u3092\u98df\u3044\u3064\u3076\u3057\u3066\u3044\u304f\u3068\u3044\u3046\u73fe\u8c61\u3092\u3069\u3046\u306b\u304b\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u8abf\u3079\u3066\u307f\u305f\u304b\u3089\u3067\u3059\u3002\r\n\r\n\u305d\u3053\u3067\u4e0a\u8a18\u306e\u3088\u3046\u306b KSM \u3092\u6709\u52b9\u306b\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u5f15\u304d\u7d9a\u304d\u691c\u7d22\u3057\u3066\u3044\u308b\u3068\u3001\u300c<a href=\"http:\/\/moriwaka.blogspot.jp\/2013\/07\/kvmvmvm.html\" >KVM\u3067\u8907\u6570VM\u3092\u8d77\u52d5\u3057\u3066VM\u9593\u306e\u76f8\u4e92\u4f5c\u7528\u3092\u6e1b\u3089\u3057\u305f\u3044\u3068\u304d\u306b\u8003\u3048\u308b\u3053\u3068 <\/a>\u300d\u3068\u3044\u3046\u8a18\u4e8b\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\r\n<blockquote>\r\n<ul>\r\n  <li>\u30e1\u30e2\u30ea\u306f\u30aa\u30fc\u30d0\u30fc\u30b3\u30df\u30c3\u30c8\u3057\u306a\u3044<\/li>\r\n  <ul>\r\n    <li>\u30e1\u30e2\u30ea\u3092\u30aa\u30fc\u30d0\u30fc\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3068\u308d\u304f\u306a\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u306a\u306e\u3067\u8981\u308b\u3060\u3051\u7a4d\u307f\u3042\u3052\u307e\u3059\u3002\u5b89\u3044\u3057\u3002<\/li>\r\n    <ul>\r\n      <li>\u7279\u306b\u30b2\u30b9\u30c8OS\u304clinux\u306e\u5834\u5408\u3001\u30e1\u30e2\u30ea\u306f\u3042\u308b\u3060\u3051\u4f7f\u304a\u3046\u3068\u3059\u308b\u3002\u672c\u6765\u3060\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u306e\u6709\u52b9\u6d3b\u7528\u306b\u306a\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u7a4d\u6975\u7684\u306b\u4f7f\u3046\u6226\u7565\u304c\u3001\u30e1\u30e2\u30ea\u30aa\u30fc\u30d0\u30fc\u30b3\u30df\u30c3\u30c8\u74b0\u5883\u4e0b\u3067\u306fswap\u3092\u591a\u767a\u3055\u305b\u308b\u539f\u56e0\u306b\u306a\u3063\u3066\u3057\u307e\u3046<\/li>\r\n    <\/ul>\r\n  <\/ul>\r\n<\/ul>\r\n<\/blockquote>\r\n<p>\u3046\u30fc\u3080\u3002\u3053\u308c\u304c\u539f\u56e0\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u500b\u3005\u306e\u30b2\u30b9\u30c8\u306f\u3055\u307b\u3069\u6df1\u523b\u306a\u8ca0\u8377\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u306a\u3057\u3001\u4e00\u65b9\u304c\u6025\u306b\u50cd\u304f\u3053\u3068\u306b\u306a\u3063\u3066\u3082\u4ed6\u65b9\u306f\u305d\u308c\u307b\u3069\u3067\u3082\u306a\u3044\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u306a\u306e\u3067\u3001\u500b\u3005\u306e\u30b2\u30b9\u30c8\u306e\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u3092\u3001\u307b\u307c\u5b9f\u30e1\u30e2\u30ea\u3068\u540c\u3058\u304f\u3089\u3044\u3001\u3068\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3059\u306a\u308f\u3061\u3001\u30b2\u30b9\u30c8\u306b\u5272\u308a\u5f53\u3066\u305f\u30e1\u30e2\u30ea\u3092\u5408\u8a08\u3059\u308b\u3068\u5b9f\u30e1\u30e2\u30ea\u306e\u6570\u500d\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u8a18\u8ff0\u306b\u3088\u308b\u3068<\/p>\r\n<blockquote>\r\n<ul>\r\n  <ul>\r\n    <li>\u30e1\u30e2\u30ea\u306f\u8db3\u308a\u3066\u308b\u306f\u305a\u306a\u306e\u3067KSM\u306f\u505c\u6b62\u3059\u308b<\/li>  \r\n  <\/ul>\r\n<\/ul>\r\n<\/blockquote>\r\n<p>\u78ba\u304b\u306b KSM \u306f\u30db\u30b9\u30c8\u306b\u8ca0\u8377\u304c\u304b\u304b\u308b\u306e\u3067\u3001\u52d5\u304b\u3055\u305a\u306b\u6e08\u3080\u306a\u3089\u305d\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\r\n<p>\u3082\u3046\u3057\u3070\u3089\u304f\u69d8\u5b50\u3092\u898b\u306a\u304c\u3089(\u307e\u3060\u7406\u89e3\u3067\u304d\u3066\u3044\u306a\u3044\u3053\u3068\u3082\u591a\u3044\u3057)\u3001\u8003\u3048\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"\u3044\u308f\u3086\u308b\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306e\u6a5f\u5668\u3092\u66f4\u65b0\u3057\u3001\u3053\u308c\u3092\u6a5f\u306b\u30bd\u30d5\u30c8\u3082 KVM \u306e\u4e0a\u306b\u8f09\u305b\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u7528\u9014\u3068\u5411\u304d\u306b\u3088\u3063\u3066\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3092\u5207\u308a\u5206\u3051\u307e\u3059\u3002\u30db\u30b9\u30c8\u3082\u8907\u6570\u306e\u30b2\u30b9\u30c8\u3082\u3001\u305c\u3093\u3076 Debian \u3067\u540c\u3058\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002\u30cd\u30c3\u30c8\u306e&hellip; <a class=\"more-link\" href=\"https:\/\/pasero.net\/~mako\/blog\/s\/572\">\u7d9a\u304d\u3092\u8aad\u3080<span class=\"screen-reader-text\">: KVM \u306b Kernel Samepage Merging (KSM)<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"blog: KVM \u306b Kernel Samepage Merging (KSM) http:\/\/wp.me\/pLxlV-9e","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[76,75],"tags":[3,69,68,7],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-debian","category-software","tag-debian","tag-kvm","tag-68","tag-software"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pLxlV-9e","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2676,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2676","url_meta":{"origin":572,"position":0},"title":"USB \u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u3092\u30bd\u30d5\u30c8\u7684\u306b\u7121\u52b9\u5316\u3059\u308b","author":"Mako","date":"2026\u5e741\u670827\u65e5(\u706b)","format":false,"excerpt":"OS \u306f Debian Linux\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883\u306f XFCE \u3067\u3001\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002\u5fc5\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":160,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/160","url_meta":{"origin":572,"position":1},"title":"AT5IONT-I \u3067\u7d44\u3080 PC \u306b Debian \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"Mako","date":"2010\u5e7410\u670815\u65e5(\u91d1)","format":false,"excerpt":"AT5IONT-I \u3067 PC \u3092\u7d44\u3080 PC \u306e1\u53f0\u306e\u30d5\u30a1\u30f3\u304c\u3046\u308b\u3055\u304f\u3066\u3057\u304b\u305f\u304c\u306a\u304f\u306a\u3063\u305f\u3002\u305d\u308c\u3060\u3051\u4ea4\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/76","url_meta":{"origin":572,"position":2},"title":"kernel 2.6.24","author":"Mako","date":"2008\u5e742\u670812\u65e5(\u706b)","format":false,"excerpt":"\u968f\u5206\u9577\u3044\u3053\u3068\u9593\u304c\u3042\u3044\u3066\u3057\u307e\u3063\u305f\u3002\u3053\u306e\u9593\u3044\u308d\u3044\u308d\u306a\u3053\u3068\u304c\u3042\u3063\u305f\u306e\u3060\u304c\u3001\u4eca\u65e5\u306f\u3068\u306b\u304b\u304f\u3069\u3053\u304b\u306b\u30e1\u30e2\u3057\u3066\u304a\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":34,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/34","url_meta":{"origin":572,"position":3},"title":"NIC\u3068kernel 2.6.18","author":"Mako","date":"2006\u5e749\u670830\u65e5(\u571f)","format":false,"excerpt":"Intel PRO\/1000GT \u30aa\u30f3\u30dc\u30fc\u30c9\u306eLAN\u30c1\u30c3\u30d7\u304c\u3069\u3046\u306b\u3082\u8abf\u5b50\u304c\u60aa\u304f\u3001\u65b0\u305f\u306bIntel P\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2187,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2187","url_meta":{"origin":572,"position":4},"title":"\u74b0\u5883\u5909\u6570 CHROMIUM_FLAGS \u3068 Chromium \u306e\u30aa\u30d7\u30b7\u30e7\u30f3 --enable-remote-extensions","author":"Mako","date":"2017\u5e742\u67085\u65e5(\u65e5)","format":false,"excerpt":"\u81ea\u5206\u7528\u30e1\u30e2\u3002 \u307b\u304b\u306f\u3069\u3046\u304b\u77e5\u3089\u306a\u3044\u304c\u5c11\u306a\u304f\u3068\u3082\u3053\u308c\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u306e Debian (Stretch\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":501,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/501","url_meta":{"origin":572,"position":5},"title":"Debian Jessie \u3067\u306e git-completion.bash \u306e\u3042\u308b\u5834\u6240","author":"Mako","date":"2013\u5e749\u670820\u65e5(\u91d1)","format":false,"excerpt":"git \u306e\u72b6\u614b\u306b\u5fdc\u3058\u3066 bash \u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5909\u66f4\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u305f\u3064\u3082\u308a\u304c\u3001\u3075\u3068\u6c17\u304c\u3064\u304f\u3068\u3001De\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":0,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"wp:attachment":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}