{"id":332,"date":"2019-09-07T16:37:27","date_gmt":"2019-09-07T08:37:27","guid":{"rendered":"https:\/\/aichh.com\/?p=332"},"modified":"2019-09-07T16:37:27","modified_gmt":"2019-09-07T08:37:27","slug":"vmware-on-windows-%e6%9c%80%e4%bd%b3%e5%8c%96-2","status":"publish","type":"post","link":"https:\/\/aichh.com\/332.html","title":{"rendered":"VMware on Windows \u6700\u4f73\u5316"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><ul class=\"b3-solo-list\">\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2016\/08\/06\/1470459088689.html#b3_solo_h3_0\">\u5f00\u542fDisable memory page trimming<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2016\/08\/06\/1470459088689.html#b3_solo_h3_1\">\u5f00\u542f\u6240\u6709\u9002\u5408\u7684\u865a\u62df\u673a\u5185\u5b58\u4e3a\u4fdd\u7559\u4e3b\u673aRAM<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2016\/08\/06\/1470459088689.html#b3_solo_h3_2\">\u5f00\u542fprefvmx.useRecommendedLockedMemSize<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2016\/08\/06\/1470459088689.html#b3_solo_h3_3\">\u53d6\u6d88mainMem.useNamedFile<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2016\/08\/06\/1470459088689.html#b3_solo_h3_4\">\u53d6\u6d88Schedmemkpsharekenable<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2016\/08\/06\/1470459088689.html#b3_solo_h3_5\">\u53d6\u6d88 MemAllowAutoScaleDown<\/a><\/li>\n<\/ul>\n<h3>\u5f00\u542fDisable memory page trimming<\/h3>\n<p>VM(\u9009\u5355\u5217) \u2192 Settings... \u2192 \u51fa\u73b0Virtual Machine Settings \u5bf9\u8bdd\u6846\u2192 Options(\u5206\u9875) \u2192 Advanced \u2192 \u6253\u52feDisable memory page trimming<\/p>\n<p>\u7b49\u540c\u4e8e\u4fee\u6539\u865a\u62df\u673a\u7684.vmx \u6587\u4ef6\uff0c\u4fee\u6539<\/p>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"typ\">MemTrimRate<\/span> <span class=\"pun\">=<\/span> <span class=\"str\">\"0\"<\/span><\/pre>\n<p>\u3002<\/p>\n<p>\u5728\u6b64\u529f\u80fd\u542f\u7528\u65f6\uff0cVMware \u4f1a\u5c06\u4e00\u4e9b\u865a\u62df\u673a\u672a\u4f7f\u7528\u7684\u8bb0\u5fc6\u4f53\u4ea4\u7ed9\u4e3b\u673a\uff0c\u800c\u5c06\u865a\u62df\u673a\u8bb0\u5fc6\u4f53\u4fdd\u5b58\u5728\u786c\u789f\u4ea4\u6362\u6587\u4ef6\u4e2d\u3002\u4f46\u662f\u8fd9\u6837\u505a\uff0c\u867d\u7136\u53ef\u4ee5\u8ba9\u4e3b\u673a\u83b7\u5f97\u66f4\u591a\u8bb0\u5fc6\u4f53\uff0c\u540c\u65f6\u5374\u5bfc\u81f4\u786c\u4f53\u6027\u80fd\u7684\u4e0b\u964d\u3002\u5982\u679c\u5f53VM Suspend \u65f6\uff0c\u5374\u53d1\u73b0\u4e3b\u673a\u6574\u4e2a\u5361\u4f4f\uff0c\u786c\u789f\u75af\u72c2\u7684\u8fd0\u8f6c\uff0c\u6301\u7eed\u5341\u5206\u949f\u4ee5\u4e0a\uff0c\u628a\u6b64\u529f\u80fd\u6253\u52fe\u8bd5\u8bd5\u3002<\/p>\n<h3>\u5f00\u542f\u6240\u6709\u9002\u5408\u7684\u865a\u62df\u673a\u5185\u5b58\u4e3a\u4fdd\u7559\u4e3b\u673aRAM<\/h3>\n<p>Edit(\u9009\u5355\u5217) \u2192 Preferences \u2192 \u51fa\u73b0Preferences \u5bf9\u8bdd\u6846\u2192 Memory \u2192 Advanced \u2192 \u9009\u53d6Fit all virtual machine memory into reserved host ram<\/p>\n<p>\u7b49\u540c\u4e8e\u4fee\u6539C:\/ProgramData\/VMware\/VMware Workstation\/config.ini \u6587\u4ef6\uff0c\u4fee\u6539<\/p>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"pln\">prefvmx<\/span><span class=\"pun\">.<\/span><span class=\"pln\">minVmMemPct <\/span><span class=\"pun\">=<\/span> <span class=\"str\">\"100\"<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u8fd9\u4e2a\u53c2\u6570\u662f100 \u7684\u8bdd\uff0c\u5f53\u865a\u62df\u673a\u542f\u52a8\u65f6\uff0cVMware \u4f1a\u5c06\u8be5\u865a\u62df\u673a\u7684\u5168\u90e8\u8bb0\u5fc6\u4f53\u90fd\u4f7f\u7528\u5b9e\u4f53\u8bb0\u5fc6\u4f53\uff0c\u800c\u4e0dswap \u5230\u6863\u6848\u7cfb\u7edf\u4e0a\uff1b\u5982\u679c\u8fd9\u4e2a\u53c2\u6570\u662f50 \u7684\u8bdd\uff0cVMware\u4f1a\u5c06\u8be5\u865a\u62df\u673a\u7684\u90e8\u4efd\u8bb0\u5fc6\u4f53swap \u5230\u6863\u6848\u7cfb\u7edf\u4e0a\uff0c\u90e8\u4efd\u4f7f\u7528\u5b9e\u4f53\u8bb0\u5fc6\u4f53\u3002\u8981\u9ad8\u6548\u80fd\u7684\u8bdd\uff0c\u5c31\u8bbe\u4e3a100 \u5427\u3002<\/p>\n<h3>\u5f00\u542fprefvmx.useRecommendedLockedMemSize<\/h3>\n<p>\u4fee\u6539 C:\/ProgramData\/VMware\/VMware Workstation\/config.ini \u6587\u4ef6\uff0c\u4fee\u6539<\/p>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"pln\">prefvmx<\/span><span class=\"pun\">.<\/span><span class=\"pln\">useRecommendedLockedMemSize <\/span><span class=\"pun\">=<\/span> <span class=\"str\">\"TRUE\"<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>\u4e0d\u8be6<\/p>\n<h3>\u53d6\u6d88mainMem.useNamedFile<\/h3>\n<p>\u4fee\u6539\u865a\u62df\u673a\u7684.vmx \u6587\u4ef6\uff0c\u52a0\u5165<\/p>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"pln\">mainMem<\/span><span class=\"pun\">.<\/span><span class=\"pln\">useNamedFile <\/span><span class=\"pun\">=<\/span> <span class=\"str\">\"FALSE\"<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>\u6ca1\u6b64\u53c2\u6570\u524d\u865a\u62df\u673a\u6267\u884c\u65f6\u4f1a\u5728\u672c\u673a\u4ea7\u751f.vmem \u7684\u6587\u4ef6\u3002\u865a\u62df\u673a\u4e0a\u7684\u8bb0\u5fc6\u4f53\u8bfb\u5199\u7b49\u4e8e\u5728\u672c\u673a.vmem \u6587\u4ef6\u8bfb\u5199\uff0c\u4e5f\u5c31\u9020\u6210\u865a\u62df\u673a\u6267\u884c\u65f6\uff0c\u786c\u789f\u5e38\u5e38\u8fd0\u8f6c\u4e0d\u505c\u3002\u4f46\u6709\u5f97\u5fc5\u6709\u5931\uff0c\u52a0\u4e0a\u8fd9\u4e2a\u53c2\u6570\u540eSuspend \u865a\u62df\u673a\u901f\u5ea6\u5c31\u4f1a\u6162\u5f88\u591a\uff0c\u7a81\u7136\u65ad\u7535\u5c31\u66f4\u96be\u4fdd\u8bc1\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n<p><del>\u5f53\u865a\u62df\u673a\u542f\u52a8\u65f6\uff0cVMware \u4f1a\u628a\u90e8\u4efd\u7684\u865a\u62df\u673a\u8bb0\u5fc6\u4f53\u5b58\u5728\u6863\u6848\u7cfb\u7edf\u4e0a\uff0c\u4ee5\u6863\u6848\u5f62\u5f0f\u5b58\u5728\uff0c\u8fd9\u662f\u56e0\u4e3aVMware \u4f7f\u7528\u4e86mmap(\u8bb0\u5fc6\u4f53\u6620\u5c04)\u7684\u65b9\u5f0f\u6765\u7ba1\u7406\u865a\u62df\u673a\u8bb0\u5fc6\u4f53\u3002\u85c9\u7531\u4fee\u6539mainMem.useNamedFile\uff0cVMware \u4f1a\u5c06\u8fd9\u4e2a\u6863\u6848\u7531VM \u6240\u5728\u7684\u76ee\u5f55\uff0c\u6539\u653e\u5230\u4e3b\u673a\u6682\u5b58\u76ee\u5f55\u4e0b\uff0c\u8fd9\u4e2a\u5f02\u52a8\u53ef\u80fd\u5bf9\u6548\u80fd\u6709\u5c0f\u5c0f\u5730\u5e2e\u52a9\uff0c\u7279\u522b\u662f\u6682\u5b58\u76ee\u5f55\u662framdisk \u65f6\uff0c\u4f46\u8981\u6ce8\u610f\u6709\u53ef\u80fd\u53d1\u751f\u7a7a\u95f4\u4e0d\u8db3\u7684\u95ee\u9898\u3002<\/del><span id=\"b3_solo_h3_4\"><\/span><\/p>\n<h3>\u53d6\u6d88Schedmemkpsharekenable<\/h3>\n<p>\u4fee\u6539\u865a\u62df\u673a\u7684.vmx \u6587\u4ef6\uff0c\u52a0\u5165<\/p>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"pln\">sched<\/span><span class=\"pun\">.<\/span><span class=\"pln\">mem<\/span><span class=\"pun\">.<\/span><span class=\"pln\">pshare<\/span><span class=\"pun\">.<\/span><span class=\"pln\">enable <\/span><span class=\"pun\">=<\/span> <span class=\"str\">\"FALSE\"<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>\u505c\u7528memory sharing \u540e\uff0cVM \u5c06\u4e0d\u4f1a\u5206\u4eab\u901a\u7528\u8bb0\u5fc6\u4f53block\uff0cVM \u4e5f\u5c06\u505c\u6b62\u6bd4\u5bf9\u8bb0\u5fc6\u4f53block\u3002\u5f3a\u5236\u5173\u95ed\u865a\u62df\u673a\u7684\u865a\u62df\u8bb0\u5fc6\u4f53\u7ba1\u7406\u5206\u4eab\u88c5\u7f6e\uff0c\u9700\u8981\u8f83\u9ad8\u7684\u4e3b\u7cfb\u7edf\u8d44\u6e90\uff0c\u4f46\u63d0\u4f9b\u6bd4\u8f83\u5feb\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<h3>\u53d6\u6d88 MemAllowAutoScaleDown<\/h3>\n<p>\u4fee\u6539\u865a\u62df\u673a\u7684.vmx \u6587\u4ef6\uff0c\u52a0\u5165<\/p>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"typ\">MemAllowAutoScaleDown<\/span> <span class=\"pun\">=<\/span> <span class=\"str\">\"FALSE\"<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u4e2a\u53c2\u6570\u8bbe\u5b9a\u6210\"TRUE\" \u65f6\uff0c\u5982\u679c\u865a\u62df\u673a\u8bbe\u5b9a\u9700\u89812GB \u7684\u8bb0\u5fc6\u4f53\uff0c\u4f46\u5b9e\u9645\u4e0a\u4e3b\u673a\u5374\u63d0\u4f9b\u7ed9\u865a\u62df\u673a\u7684\u8bb0\u5fc6\u4f53\u4e0d\u52302GB\uff0c\u865a\u62df\u673a\u5728\u542f\u52a8\u65f6\u4f1a\u81ea\u52a8\u8c03\u6574\u7f29\u5c0f\u8bb0\u5fc6\u4f53\u5230\u8db3\u591f\u542f\u52a8\u7684\u8303\u56f4\u3002<\/p>\n<hr \/>\n<p>Windows XP\u4e2d\u7684config.ini\u6587\u4ef6\u653e\u5728C\uff1a Documents\u548cSettings \u6240\u6709\u7528\u6237\u5e94\u7528\u6570\u636e VMware\u7684 VMware\u7684Workstationg\u3002<\/p>\n<hr \/>\n<p>\u4ee5\u4e0a\u662f\u4fee\u6539VMware\u7684\u8bbe\u5b9a\uff0c\u5f53\u7136\u5728windows 7\u4e0b\u4e5f\u8981\u505a\u4e00\u4e9b\u5fae\u8c03\uff0c\u624d\u80fd\u4f7fvmware\u8dd1\u8d77\u6765\u5f88\u987a\uff0c<a href=\"http:\/\/pubs.vmware.com\/view-50\/index.jsp?topic=\/com.vmware.view.administration.doc\/GUID-E938922D-7DFD-41E7-A774-0C81CAE6595C.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u539f\u6587vmware\u63d0\u4f9b<\/a>\u3002<\/p>\n<p>http:\/\/jyhshin1.blogspot.com\/2013\/04\/vmware-on-windows-7.html<\/p>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"\u5f00\u542fDisable memory page trimming \u5f00\u542f\u6240\u6709\u9002\u5408\u7684\u865a\u62df\u673a\u5185\u5b58\u4e3a\u4fdd\u7559\u4e3b\u673aRAM \u5f00\u542fprefvmx.useRecommendedLockedMemSize \u53d6\u6d88mainMem. \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-332","post","type-post","status-publish","format-standard","hentry","category-jiaocheng"],"views":538,"_links":{"self":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts\/332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/comments?post=332"}],"version-history":[{"count":1,"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts\/332\/revisions"}],"predecessor-version":[{"id":333,"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts\/332\/revisions\/333"}],"wp:attachment":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}