注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

My Unix World

不要迷恋Unix,Unix只是计算世界很小的一部分!

 
 
 

日志

 
 

KSM  

2009-07-07 00:10:45|  分类: linux-general |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
It's a Linux Kernel module, and used for share physical memory on different vm, especially useful for KVM. Here is a detailed description:
http://lwn.net/Articles/306642/

The following copied from this URL:
---------------------
KSM is a linux driver that allows dynamicly sharing identical memory pages
between one or more processes.

unlike traditional page sharing that is made at the allocation of the
memory, ksm do it dynamically after the memory was created.
Memory is periodically scanned; identical pages are identified and merged.
the sharing is unnoticeable by the process that use this memory.
(the shared pages are marked as read only, and in case of write
do_wp_page() take care to create new copy of the page)

this driver is very useful for KVM as in cases of running multiple guests
operation system of the same type, many pages are sharable.
this driver can be useful by OpenVZ as well.

KSM right now scan just memory that was registered to used by it, it
does not scan the whole system memory (this can be changed, but the changes to find
identical pages in normal linux system that doesn't run multiple guests)

KSM can run as kernel thread or as userspace application (or both (it is
allowed to run more than one scanner in a time)).
  评论这张
 
阅读(245)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017