<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - Store .vmem files in /dev/shm</title>
    <link>http://communities.vmware.com/community/vmtn/archive/desktop/server?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 18 May 2006 17:45:49 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2006-05-18T17:45:49Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/402405?tstart=0#402405</link>
      <description>I've been trying to figure this problem out for a while now.  Anytime I have more the 1GB of ram allocated in all the VMs started, the system will get slammed with disk I/O even when the VMs are idle.  The CPU gets pegged with 80%+ iowait.&lt;br /&gt;
&lt;br /&gt;
Moving the .vmem to /dev/shm made significant improvement in performance when exceeding 1GB of virtual memory, but still nothing close to the performance when running with less.  &lt;br /&gt;
&lt;br /&gt;
In no case has there been any memory paging on the host or in the VM.  There is plenty of extra ram.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;If putting the vmem files on a virtual disk is not the right way to fix this problem what is?&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I'm running VMware on SuSE 10.0 and 10.1 hosts.  Each machine has 1.5 and 2 GB or ram respectively.   Both have SATA hard drives.  At first I was suspicious of the hard drives until I realized difference when allocating more that 1GB total across the VMs.  &lt;br /&gt;
&lt;br /&gt;
I'd like to allocate most of the host memory to the VMs, as the VMs are the purpose of the machine, however anytime 1 GB is exceeded the machine becomes so slow it is useless.&lt;br /&gt;
&lt;br /&gt;
Any other insight in to this problem would be greatly appreciated.</description>
      <pubDate>Thu, 18 May 2006 17:45:49 GMT</pubDate>
      <author>lschweiss</author>
      <guid>http://communities.vmware.com/message/402405?tstart=0#402405</guid>
      <dc:date>2006-05-18T17:45:49Z</dc:date>
      <clearspace:dateToText>3 years, 6 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/370867?tstart=0#370867</link>
      <description>&lt;div class="jive-quote"&gt;What exactly is stored in the .vmem-files? &lt;/div&gt;
&lt;br /&gt;
Guest memory.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;How often does the information change in those files?&lt;/div&gt;
&lt;br /&gt;
Continuously.  When stored on disk, kernel updates file on disk whenever it feels it shoud do such.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;Since I now moved them to a memory based tmpfs, each VM now uses twice the amount of RAM.&lt;/div&gt;
&lt;br /&gt;
I personally would highly discourage use of tmpfs (or any ram based filesystem) for *.vmem.  Your machine may deadlock when you'll put it under memory stress.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;It is also possible to switch the usage of .vmem-files off entirely?&lt;/div&gt;
&lt;br /&gt;
No, guest memory must be backed by something, and it does not matter whether it is swapfile or file on filesystem.</description>
      <pubDate>Sun, 19 Mar 2006 22:47:51 GMT</pubDate>
      <author>petr</author>
      <guid>http://communities.vmware.com/message/370867?tstart=0#370867</guid>
      <dc:date>2006-03-19T22:47:51Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/370708?tstart=0#370708</link>
      <description>Thanks. I just added that line to the guest's config file, restarted the guest, and the .vmem-files disappeared. Since I set my tmpDirectory to /dev/shm, the memory size of the guest is now claimed in /dev/shm.&lt;br /&gt;
&lt;br /&gt;
What exactly is stored in the .vmem-files? How often does the information change in those files?&lt;br /&gt;
&lt;br /&gt;
Since I now moved them to a memory based tmpfs, each VM now uses twice the amount of RAM.&lt;br /&gt;
&lt;br /&gt;
It is also possible to switch the usage of .vmem-files off entirely?</description>
      <pubDate>Sun, 19 Mar 2006 10:41:42 GMT</pubDate>
      <author>MichielS</author>
      <guid>http://communities.vmware.com/message/370708?tstart=0#370708</guid>
      <dc:date>2006-03-19T10:41:42Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/370696?tstart=0#370696</link>
      <description>I use this:&lt;br /&gt;
&lt;br /&gt;
mainMem.useNamedFile=FALSE&lt;br /&gt;
&lt;br /&gt;
this moves the rubbishy files to /tmp (like vmem files etc)&lt;br /&gt;
&lt;br /&gt;
and I use tmpfs for /tmp (google and look for that - it uses swap and shared memory to back the file system)&lt;br /&gt;
&lt;br /&gt;
Scott&lt;br /&gt;
&lt;br /&gt;
please award me the answer points for this !!!</description>
      <pubDate>Sun, 19 Mar 2006 09:11:35 GMT</pubDate>
      <author>sfarrell</author>
      <guid>http://communities.vmware.com/message/370696?tstart=0#370696</guid>
      <dc:date>2006-03-19T09:11:35Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/370493?tstart=0#370493</link>
      <description>Yes, I did.&lt;br /&gt;
&lt;br /&gt;
These are the contents of /etc/vmware/config:&lt;br /&gt;
&lt;br /&gt;
serverd.init.fullpath = "/opt/vmware-server/lib/vmware/serverd/init.pl"&lt;br /&gt;
authd.client.port = "902"&lt;br /&gt;
control.fullpath = "/opt/vmware-server/bin/vmware-cmd"&lt;br /&gt;
authd.fullpath = "/opt/vmware-server/sbin/vmware-authd"&lt;br /&gt;
loop.fullpath = "/opt/vmware-server/bin/vmware-loop"&lt;br /&gt;
libdir = "/opt/vmware-server/lib/vmware"&lt;br /&gt;
vmware.fullpath = "/opt/vmware-server/bin/vmware"&lt;br /&gt;
vmdir = "/data/vmware-data"&lt;br /&gt;
dhcpd.fullpath = "/opt/vmware-server/bin/vmnet-dhcpd"&lt;br /&gt;
serverd.fullpath = "/opt/vmware-server/sbin/vmware-serverd"&lt;br /&gt;
&lt;br /&gt;
datastore.name = "local"&lt;br /&gt;
&lt;br /&gt;
datastore.localpath = "/data/vmware-data/"&lt;br /&gt;
&lt;br /&gt;
tmpDirectory = "/dev/shm"</description>
      <pubDate>Sat, 18 Mar 2006 15:05:39 GMT</pubDate>
      <author>MichielS</author>
      <guid>http://communities.vmware.com/message/370493?tstart=0#370493</guid>
      <dc:date>2006-03-18T15:05:39Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/370477?tstart=0#370477</link>
      <description>After making the change tmpDirectory="/dev/shm" did you stop and restart the VMware servivces  or reboot the host?</description>
      <pubDate>Sat, 18 Mar 2006 14:11:29 GMT</pubDate>
      <author>KevinG</author>
      <guid>http://communities.vmware.com/message/370477?tstart=0#370477</guid>
      <dc:date>2006-03-18T14:11:29Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Store .vmem files in /dev/shm</title>
      <link>http://communities.vmware.com/message/370464?tstart=0#370464</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I noticed that VMware Server creates a .vmem file with size of the memory used in the guest OS. Will performance be improved if VMware Server stores the .vmem-files in a temporary directory stored in shared memory (such as /dev/shm)? If so, how can I change that path? I already tried to set  tmpDirectory="/dev/shm" in /etc/vmware/config, but that does not help.&lt;br /&gt;
&lt;br /&gt;
In the knowledge base of VMware this topic is covered in answer ID 844 (Configuring Linux Host for Optimal Performance and Virtual Machine Stability).&lt;br /&gt;
&lt;br /&gt;
Thanks!</description>
      <pubDate>Sat, 18 Mar 2006 13:50:29 GMT</pubDate>
      <author>MichielS</author>
      <guid>http://communities.vmware.com/message/370464?tstart=0#370464</guid>
      <dc:date>2006-03-18T13:50:29Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
  </channel>
</rss>

