<div>I agree, but at the moment I can&#39;t do any better.</div>
<div>&nbsp;</div>
<div>Basically this is how it&#39;s setup:</div>
<div>Dom0 - Gentoo, with nfs hosting of /usr/portage</div>
<div>DomU - Router, direct acess to one ethernet port - 64mb ram</div>
<div>DomU - mail server, 128mb ram (might be able to get it down to 96)</div>
<div>DomU - web server, 128mb ram (again might be able to squeeze it to 96, but prob. not)</div>
<div>DomU - mysql, postgres, ldap, 128mb ram</div>
<div>DomU - media hosting, mythtv, unknown ram</div>
<div>&nbsp;</div>
<div>The server has almost no load though, all the services get used by myself only (no public websites or anything).</div>
<div>&nbsp;</div>
<div>If I can get Xen setup on my myth frontent (and still have it work), I&#39;ll move the mail and db server across (my frontend has substantially more power). But ideally i&#39;d like everything just on the servers<br>
<br></div>
<div class="gmail_quote">2008/5/5 Gordon McLellan &lt;<a href="mailto:gordonthree@gmail.com">gordonthree@gmail.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Yikes, 1g of ram is awful tight for a _server_ of any kind, let alone<br>a virtualization host!<br><br>If the xen host is &quot;only&quot; running the mythbackend (which also means<br>
it&#39;s running mysql), why does it need to be virtual? &nbsp; You mention<br>you&#39;re already running mysql for something else, why can&#39;t the myth<br>database be hosted on that instance too?<br><br>I&#39;m running mythbackend as a domu on my server, and I have allocated<br>
it 1g of ram and 2 vcpus, with Dom0 having 8g of ram and a quad core<br>Xeon. &nbsp; Linux appears to be using most of that 1g as buffers and<br>cache, but that is important, since disk io on a virtual machine, and<br>disk io in general, is terribly slow, and a database should run from<br>
ram if at all possible.<br><br># free -m<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total &nbsp; &nbsp; &nbsp; used &nbsp; &nbsp; &nbsp; free &nbsp; &nbsp; shared &nbsp; &nbsp;buffers &nbsp; &nbsp; cached<br>Mem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024 &nbsp; &nbsp; &nbsp; &nbsp;904 &nbsp; &nbsp; &nbsp; &nbsp;119 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8 &nbsp; &nbsp; &nbsp; &nbsp;257<br>-/+ buffers/cache: &nbsp; &nbsp; &nbsp; &nbsp;638 &nbsp; &nbsp; &nbsp; &nbsp;385<br>
Swap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;509 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;509<br><br>Running top and sorting by memory usage shows httpd as the biggest hog<br>of ram, all ten of it&#39;s children claiming 45mb of ram each, the yum<br>update daemon claiming 72mb, mythbackend claiming 39mb, and mysqld<br>
claiming 41mb. &nbsp;I forget how to tell how much of the db mysql has<br>cached in memory, so I&#39;ll have to report back on that. &nbsp;In summary, I<br>think my allocation of 1gb is excessive, but I&#39;ve got the memory to<br>
waste on it, so what the hay.<br><br>My setup worked perfectly for months and months with .20-1 (i think),<br>but since upgrading to 20-2 and now 21, my uptime has been slashed to<br>days at best. &nbsp; I don&#39;t know if there&#39;s more network IO occuring or<br>
what, but between the front and backends, I&#39;m dealing with a lot of<br>crashes related to networked file systems. &nbsp;I&#39;m beginning to<br>reconsider my use of virtualization at all, since I&#39;m still having<br>stability issues related to network storage problems. &nbsp; My myth<br>
network used to use NFS, and that would regularly crash, almost daily.<br>&nbsp;After a few nfs crashes, it would leave the Dom0&#39;s kernel hosed and I<br>would have to do a hard reset on the box. &nbsp; I&#39;ve since switched to<br>
CIFS and enjoyed nearly a week of uptime before CIFS left Dom0&#39;s<br>kernel hosed and again, another hard reset.<br><br><br>Hope this helps!<br>Gordon<br>
<div>
<div></div>
<div class="Wj3C7c"><br><br><br>On Mon, May 5, 2008 at 11:27 AM, James Buckley<br>&lt;<a href="mailto:xanium4332@googlemail.com">xanium4332@googlemail.com</a>&gt; wrote:<br>&gt; Hi all,<br>&gt;<br>&gt; Just wondering the minimum amount of RAM I should dedicate to a mythtv<br>
&gt; backend. As it&#39;s running in a Xen DomU, it&#39;ll be the only service runninng<br>&gt; (Gentoo Linux).<br>&gt;<br>&gt; I only have 1G of RAM in the server, and it&#39;s acting as my router, mail<br>&gt; server, web server, mysql + postgres + ldap database server, so RAM&#39;s<br>
&gt; starting to get tight.<br>&gt;<br>&gt; Cheers, James<br></div></div>&gt; _______________________________________________<br>&gt; &nbsp;mythtv-users mailing list<br>&gt; &nbsp;<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; &nbsp;<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>&gt;<br>&gt;<br>_______________________________________________<br>mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote>
</div><br>