Well, all the classic Linux commands (top, htop, du, uptime, etc.) ran on the HN will give you the global ressource usage.<br>For preventing the ressource overuse, well, make sure your total VE's RAM & reserved HDD space don't exceed the available resources and all should go well.<br>
For CPU resources, I'll let more experienced people answer.<br><br><div class="gmail_quote">2010/9/20 Joseph Begumisa <span dir="ltr"><<a href="mailto:j.begumisa@gmail.com">j.begumisa@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<div><br></div><div>I have a server with specs 4GB RAM, 250GB HDD, 4GB Swap and Intel Core 2 Quad CPU @ 2.83GHz and currently have 20 containers. I'm running the 2.6.18-194.8.1.el5.028stab070.5PAE kernel.</div><div>
<br></div><div>Is there a command I can run to see resource usage on the hardware node? What would happen if all hardware node resources are used up and how can I prevent that from happening? This is a sample of one of my container configurations. I'm still reading through the man pages to better see how to optimize resource usage, however, i'd appreciate it if anyone with more experience than me can point out the main configuration options below I should focus on. Thanks.</div>
<div><br></div><div>---START---</div><div><div>KMEMSIZE="11055923:11377049"</div><div>LOCKEDPAGES="432:432"</div><div>PRIVVMPAGES="131072:140800"</div><div>SHMPAGES="62124:62124"</div>
<div>NUMPROC="400:400"</div><div>PHYSPAGES="0:2147483647"</div><div>VMGUARPAGES="65536:2147483647"</div><div>OOMGUARPAGES="65536:2147483647"</div><div>NUMTCPSOCK="400:400"</div>
<div>NUMFLOCK="345:379"</div><div>NUMPTY="40:40"</div><div>NUMSIGINFO="1024:1024"</div><div>TCPSNDBUF="1317150:2955550"</div><div>TCPRCVBUF="1317150:2955550"</div><div>OTHERSOCKBUF="1126080:2296975"</div>
<div>DGRAMRCVBUF="658575:658575"</div><div>NUMOTHERSOCK="400:400"</div><div>DCACHESIZE="3409920:3624960"</div><div>NUMFILE="9312:9312"</div><div>AVNUMPROC="180:180"</div>
<div>
NUMIPTENT="100:100"</div></div><div><div>DISKSPACE="5242880:5242880"</div><div>DISKINODES="200000:220000"</div><div>QUOTATIME="0"</div></div><div>CPUUNITS="5000"</div><div>
<br></div><div>---END---</div><div><br></div><div>Best Regards,<br><br>Joseph<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://openvz.org/mailman/listinfo/users" target="_blank">https://openvz.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>