<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Learn Linux - Linux Server System Admins Blog</title>
	
	<link>http://www.doxer.org</link>
	<description>Welcome to doxer.org, Learn Linux Apache Nginx Mysql shell and LAMP</description>
	<lastBuildDate>Tue, 21 May 2013 01:13:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/doxerorg/learnlinuxblog" /><feedburner:info uri="doxerorg/learnlinuxblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>doxerorg/learnlinuxblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>vmware vsphere esxi vicfg esxcli localcli PowerCLI</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/D9guKXbIzHY/</link>
		<comments>http://www.doxer.org/learn-linux/vmware-vsphere-esxi-vicfg-esxcli-localcli-powercli/#comments</comments>
		<pubDate>Tue, 21 May 2013 01:13:38 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[VMware Cloud]]></category>
		<category><![CDATA[esxi]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2618</guid>
		<description><![CDATA[vicfg-&#60;esxcfg- deprecated&#62; and other vCLI commands, include ESXCLI&#60;from the server with vCLI package installed OR from the vMA virtual machine OR through vcenter server&#60;-vihost parameter&#62;&#62; esxcli&#60;better use vCLI or PowerCLI instead. directly from esxi shell&#60;console&#62; OR from the server with vCLI package installed OR from the vMA virtual machine OR from vsphere PowerCLI prompt by using Get-EsxCli&#62; OR [...]]]></description>
				<content:encoded><![CDATA[<div><b>vicfg-&lt;</b><b>esxcfg- deprecated</b><b>&gt;</b> and other <b>vCLI </b>commands, include ESXCLI&lt;from the server with vCLI package installed OR from the vMA virtual machine OR through vcenter server&lt;-vihost parameter&gt;&gt;</div>
<div><b>esxcli</b>&lt;better use vCLI or PowerCLI instead. directly from esxi shell&lt;console&gt; OR from the server with vCLI package installed OR from the vMA virtual machine OR from vsphere PowerCLI prompt by using Get-EsxCli&gt; OR through vcenter server&lt;-vihost parameter&gt;</div>
<div><b>localcli </b>&lt;localcli commands are equivalent to ESXCLI commands, but bypass hostd. The localcli commands are only for situations when hostd is unavailable and cannot be restarted. After you run a localcli command, you must restart hostd. Run ESXCLI commands after the restart. If you use a localcli command in other situations, an inconsistent system state and potential failure can result.&gt;</div>
<div><b>PowerCLI </b>cmdlets&lt;windows powershell&gt;</div>
<div></div>
<div><strong>Some examples:</strong></div>
<div>
<div>vicfg-hostops &lt;conn_options&gt; &#8211;operation shutdown &#8211;force</div>
<div>vicfg-hostops &lt;conn_options&gt; &#8211;operation shutdown &#8211;cluster &lt;my_cluster&gt;</div>
<div>vmware-cmd &#8211;config esxhome.cfg -l</div>
<div>vmware-cmd &#8211;config esxhome.cfg &#8216;/vmfs/volumes/505f5efb-38f8b83f-e1ce-1c6f65d2477b/OracleLinux/OracleLinux.vmx&#8217; getuptime</div>
</div>
<div>esxcli [options] {namespace}+ {cmd} [cmd options]</div>
<div>esxcli &#8211;config esxhome.cfg network ip interface list</div>
<div>esxcli &#8211;config esxhome.cfg fcoe adapter list</div>
<div>esxcli &#8211;config esxhome.cfg storage nfs add -H &lt;hostname&gt; -s &lt;sharepoint&gt; -v &lt;volumename&gt;</div>
<div>esxcli &#8211;config esxhome.cfg &#8211;formatter=csv network ip interface list</div>
<div>esxcli &#8211;config esxhome.cfg &#8211;reason &lt;reason&gt; system shutdown poweroff &lt;must be in maintenance mode&gt;</div>
<div>esxcli &#8211;config esxhome.cfg &#8211;reason &lt;reason&gt; system shutdown reboot</div>
<div>esxcli &lt;conn_options&gt; system maintenanceMode set &#8211;enable true</div>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/D9guKXbIzHY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/vmware-vsphere-esxi-vicfg-esxcli-localcli-powercli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/vmware-vsphere-esxi-vicfg-esxcli-localcli-powercli/</feedburner:origLink></item>
		<item>
		<title>oracle ocfs2 cluster filesystem best practise</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/fEPMlX-e1YU/</link>
		<comments>http://www.doxer.org/learn-linux/oracle-ocfs2-cluster-filesystem-best-practise/#comments</comments>
		<pubDate>Tue, 21 May 2013 01:06:53 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[HA & HPC]]></category>
		<category><![CDATA[Oracle Cloud]]></category>
		<category><![CDATA[ocfs2]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2613</guid>
		<description><![CDATA[To check current settings of o2cb, check files under /sys/kernel/config/cluster/ocfs2/ To set new value for o2cb: service o2cb unload service o2cb configure heartbeat dead threshold 151 #Iterations before a node is considered dead network idle timeout 120000 #Time in ms before a network connection is considered dead network keepalive delay 5000 #Max time in ms before [...]]]></description>
				<content:encoded><![CDATA[<ul>
<li>To check current settings of o2cb, check files under /sys/kernel/config/cluster/ocfs2/</li>
<li>To set new value for o2cb:</li>
</ul>
<blockquote><p>service o2cb unload<br />
service o2cb configure</p>
<p><em>heartbeat dead threshold 151 #Iterations before a node is considered dead</em><br />
<em> network idle timeout 120000 #Time in ms before a network connection is considered dead</em><br />
<em> network keepalive delay 5000 #Max time in ms before a keepalive packet is sent</em><br />
<em> network reconnect delay 5000 #Min time in ms between connection attempts</em></p>
<p><em></em>service o2cb load</p>
<p><em id="__mceDel"> service o2cb status #will show new configuration if OVS in server pool; or it will show offline</em></p></blockquote>
<p>PS:</p>
<div>o2cb &#8211; Default cluster stack for the OCFS2 file system, it includes</div>
<div>
<ul>
<li>a node manager (o2nm) to keep track of the nodes in the cluster,</li>
<li>a heartbeat agent (o2hb) to detect live nodes</li>
<li>a network agent (o2net) for intra-cluster node communication</li>
<li>a distributed lock manager (o2dlm) to keep track of lock resources</li>
<li>All these components are in-kernel.</li>
<li>It also includes an in-memory file system, dlmfs, to allow userspace to access the in-kernel dlm</li>
<li>main conf files: /etc/ocfs2/cluster.conf, /etc/sysconfig/o2cb</li>
<li>more info here <a href="https://oss.oracle.com/projects/ocfs2-tools/dist/documentation/v1.4/o2cb.html">https://oss.oracle.com/projects/ocfs2-tools/dist/documentation/v1.4/o2cb.html</a></li>
</ul>
</div>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/fEPMlX-e1YU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/oracle-ocfs2-cluster-filesystem-best-practise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/oracle-ocfs2-cluster-filesystem-best-practise/</feedburner:origLink></item>
		<item>
		<title>SaaS, PaaS, IaaS cloud differences in three illustrations</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/6ftbo7uzD0s/</link>
		<comments>http://www.doxer.org/learn-linux/saas-paas-iaas-cloud-differences-in-three-illustrations/#comments</comments>
		<pubDate>Tue, 21 May 2013 00:55:44 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[iaas]]></category>
		<category><![CDATA[paas]]></category>
		<category><![CDATA[saas]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2608</guid>
		<description><![CDATA[&#160;]]></description>
				<content:encoded><![CDATA[<div id="attachment_2611" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.doxer.org/wp-content/uploads/2013/05/saas.jpg"><img class="size-full wp-image-2611" alt="SaaS" src="http://www.doxer.org/wp-content/uploads/2013/05/saas.jpg" width="500" height="134" /></a><p class="wp-caption-text">SaaS</p></div>
<div id="attachment_2610" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.doxer.org/wp-content/uploads/2013/05/paas.jpg"><img class="size-full wp-image-2610" alt="PaaS" src="http://www.doxer.org/wp-content/uploads/2013/05/paas.jpg" width="480" height="137" /></a><p class="wp-caption-text">PaaS</p></div>
<p>&nbsp;</p>
<div id="attachment_2609" class="wp-caption aligncenter" style="width: 518px"><a href="http://www.doxer.org/wp-content/uploads/2013/05/iaas.jpg"><img class="size-full wp-image-2609" alt="IaaS" src="http://www.doxer.org/wp-content/uploads/2013/05/iaas.jpg" width="508" height="136" /></a><p class="wp-caption-text">IaaS</p></div>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/6ftbo7uzD0s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/saas-paas-iaas-cloud-differences-in-three-illustrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/saas-paas-iaas-cloud-differences-in-three-illustrations/</feedburner:origLink></item>
		<item>
		<title>xen note</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/OVM_6Ls1SC4/</link>
		<comments>http://www.doxer.org/learn-linux/xen-note/#comments</comments>
		<pubDate>Tue, 21 May 2013 00:41:39 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2605</guid>
		<description><![CDATA[cat /proc/cpuinfo &#124;egrep -i &#8216;vmx&#124;svm&#124;hvm&#8217; #whether supported by CPU xm info&#124;grep hvm #xen, whether OS support HVM xm block-attach guestdomain file://path/to/dsl-2.0RC2.iso  /dev/hdc ro #then mount it on guest /etc/xen/xend-config.sxp brctl show #bridge service xendomains start #to startup VMs under /etc/xen/auto xm sched-credit -d &#60;domain&#62; -c &#60;cap&#62;/-w &#60;weight&#62;#Get/set credit scheduler parameters]]></description>
				<content:encoded><![CDATA[<div>
<div>cat /proc/cpuinfo |egrep -i &#8216;vmx|svm|hvm&#8217; #whether supported by CPU</div>
<div>xm info|grep hvm #xen, whether OS support HVM</div>
</div>
<div>xm block-attach guestdomain<a href="file://path/to/dsl-2.0RC2.iso"> file://path/to/dsl-2.0RC2.iso</a>  /dev/hdc ro #then mount it on guest</div>
<div>/etc/xen/xend-config.sxp</div>
<div>brctl show #bridge</div>
<div>service xendomains start #to startup VMs under /etc/xen/auto</div>
<div>xm sched-credit -d &lt;domain&gt; -c &lt;cap&gt;/-w &lt;weight&gt;#Get/set credit scheduler parameters</div>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/OVM_6Ls1SC4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/xen-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/xen-note/</feedburner:origLink></item>
		<item>
		<title>resolved – change xen vm root password</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/dNDe0M1Y9iI/</link>
		<comments>http://www.doxer.org/learn-linux/resolved-change-xen-vm-root-password/#comments</comments>
		<pubDate>Tue, 21 May 2013 00:37:12 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[Oracle Cloud]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2602</guid>
		<description><![CDATA[You can change Virtual Machine(xen) root password with following ways: losetup -f #to check the next usable loop device losetup &#60;output of losetup -f&#62; System.img #associate loop devices with regular file System.img. Read/Write to /dev/loop&#60;x&#62; will be redirected to System.img fdisk -l /dev/loop0 If there&#8217;re multiple partitions: kpartx -av /dev/loop0 #vgchange -a y &#60;VGroup&#62; #if [...]]]></description>
				<content:encoded><![CDATA[<p>You can change Virtual Machine(xen) root password with following ways:</p>
<blockquote>
<div>losetup -f #to check the next usable loop device</div>
<div>losetup &lt;output of losetup -f&gt; System.img #associate loop devices with regular file System.img. Read/Write to /dev/loop&lt;x&gt; will be redirected to System.img</div>
<div>fdisk -l /dev/loop0</div>
</blockquote>
<div>
<ul>
<li><span style="line-height: 13px;">If there&#8217;re multiple partitions:</span></li>
</ul>
<blockquote>
<div>kpartx -av /dev/loop0</div>
<div>#vgchange -a y &lt;VGroup&gt; #if LVM is implemented in Virtual Machine, do this to activate all known volume groups in the system</div>
<div>mount /dev/mapper/&lt;partition name of /etc&gt; /mnt</div>
</blockquote>
<ul>
<li>If there&#8217;s only one root partition:</li>
</ul>
<blockquote><p>#vgchange -a y &lt;VGroup&gt; #if LVM is implemented in Virtual Machine, do this to activate all known volume groups in the system</p>
<p>mount /dev/loop0 /mnt</p></blockquote>
<p>After mounting, you can change root password now:</p>
</div>
<blockquote>
<div>vi /mnt/etc/rc.local #echo password | passwd &#8211;stdin root</div>
<div>umount /mnt</div>
<div>vgchange -a y &lt;VGroup&gt; #if LVM is implemented in Virtual Machine, do this to de-activate all known volume groups in the system</div>
<div>kpartx -d /dev/loop0</div>
<div>losetup  -d /dev/loop0</div>
<div>vi /etc/rc.local #comment out &#8220;echo welcome1 | passwd &#8211;stdin root&#8221;</div>
</blockquote>
<div></div>
<div>After all these steps, boot up the VM using xm create vm.cfg, and you&#8217;ll find password for root has been changed.</div>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/dNDe0M1Y9iI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/resolved-change-xen-vm-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/resolved-change-xen-vm-root-password/</feedburner:origLink></item>
		<item>
		<title>cpu hyperthreading vs dual core</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/3EznksebPPw/</link>
		<comments>http://www.doxer.org/learn-linux/cpu-hyperthreading-vs-dual-core/#comments</comments>
		<pubDate>Tue, 14 May 2013 08:00:20 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2598</guid>
		<description><![CDATA[Note: This is from http://www.richweb.com/cpu_info A hyperthreaded processor has the same number of function units as an older, non-hyperthreaded processor. It just has two execution contexts, so it can maybe achieve better function unit utilization by letting more than one program execute concurrently. On the other hand, if you&#8217;re running two programs which compete for the [...]]]></description>
				<content:encoded><![CDATA[<p>Note: This is from <a href="http://www.richweb.com/cpu_info">http://www.richweb.com/cpu_info</a></p>
<p>A hyperthreaded processor has the same number of function units as an older, non-hyperthreaded processor. It just has two execution contexts, so it can maybe achieve better function unit utilization by letting more than one program execute concurrently. On the other hand, if you&#8217;re running two programs which compete for the same function units, there is no advantage at all to having both running &#8220;concurrently.&#8221; When one is running, the other is necessarily waiting on the same function units.</p>
<p>A dual core processor literally has two times as many function units as a single-core processor, and can really run two programs concurrently, with no competition for function units.</p>
<p>A dual core processor is built so that both cores share the same level 2 cache. A dual processor (separate physical cpus) system differs in that each cpu will have its own level 2 cache. This may sound like an advantage, and in some situations it can be but in many cases new research and testing shows that the shared cache can be faster when the cpus are sharing the same or very similar tasks.</p>
<p>In general Hyperthreading is considered older technology and is no longer supported in newer cpus. Hyperthreading can provide a marginal (10%) for some server workloads like mysql, but dual core technology has essentially replaced hyperthreading in newer systems.</p>
<p>A dual core cpu running at 3.0Ghz should be faster then a dual cpu (separate core) system running at 3.0Ghz due to the ability to share the cache at higher bus speeds.</p>
<p>The examples below details how we determine what kind of cpu(s) are present.</p>
<p>The kernel data Linux exposes in /proc/cpuinfo will show each logical cpu with a unique processor number. A logical cpu can be a hyperthreading sibling, a shared core in a dual or quad core, or a separate physical cpu. We must look at the siblings, cpu cores and core id to tell the difference.</p>
<p>If the number of cores = the number of siblings for a given physical processor, then hyperthreading is OFF.</p>
<p>/bin/cat /proc/cpuinfo | /bin/egrep &#8216;processor|model name|cache size|core|sibling|physical&#8217;</p>
<p>&nbsp;</p>
<h2>Example 1: Single processor, 1 core, no Hyperthreading</h2>
<pre>processor	: 0
model name	: AMD Duron(tm) processor
cache size	: 64 KB</pre>
<p>&nbsp;</p>
<h2>Example 2: Single processor, 1 core, Hyperthreading is enabled.</h2>
<p>Notice how we have 2 siblings, but only 1 core. The physical cpu id is the same for both: 0.</p>
<pre>processor	: 0
model name	: Intel(R) Pentium(R) 4 CPU 2.80GHz
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
processor	: 1
model name	: Intel(R) Pentium(R) 4 CPU 2.80GHz
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1</pre>
<p>&nbsp;</p>
<h2>Example 3. Single socket Quad Core</h2>
<p>Notice how each processor has its own core id. The number of siblings matches the number of cores so there are no Hyperthreading siblings. Also notice the huge l2 cache &#8211; 6 MB. That makes sense though, when considering 4 cores share that l2 cache.</p>
<pre>processor	: 0
model name	: Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
processor	: 1
model name	: Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 4
processor	: 2
model name	: Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 4
processor	: 3
model name	: Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4</pre>
<p>&nbsp;</p>
<h2>Example 3a. Single socket Dual Core</h2>
<p>Again, each processor has its own core so this is a dual core system.</p>
<p>&nbsp;</p>
<pre>processor	: 0
model name	: Intel(R) Pentium(R) D CPU 3.00GHz
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
processor	: 1
model name	: Intel(R) Pentium(R) D CPU 3.00GHz
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2</pre>
<p>&nbsp;</p>
<h2>Example 4. Dual Single core CPU, Hyperthreading ENABLED</h2>
<p>This example shows that processer 0 and 2 share the same physical cpu and 1 and 3 share the same physical cpu. The number of siblings is twice the number of cores, which is another clue that this is a system with hyperthreading enabled.</p>
<p>&nbsp;</p>
<pre>processor	: 0
model name	: Intel(R) Xeon(TM) CPU 3.60GHz
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
processor	: 1
model name	: Intel(R) Xeon(TM) CPU 3.60GHz
cache size	: 1024 KB
physical id	: 3
siblings	: 2
core id		: 0
cpu cores	: 1
processor	: 2
model name	: Intel(R) Xeon(TM) CPU 3.60GHz
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
processor	: 3
model name	: Intel(R) Xeon(TM) CPU 3.60GHz
cache size	: 1024 KB
physical id	: 3
siblings	: 2
core id		: 0
cpu cores	: 1</pre>
<p>&nbsp;</p>
<h2>Example 5. Dual CPU Dual Core No hyperthreading</h2>
<p>Of the 5 examples this should be the most capable system processor-wise. There are a total of 4 cores; 2 cores in 2 separate socketed physical cpus. Each core shares the 4MB cache with its sibling core. The higher clock rate (3.0 Ghz vs 2.3Ghz) should offer slightly better performance than example 3.</p>
<p>&nbsp;</p>
<pre>processor	: 0
model name	: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
cache size	: 4096 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
processor	: 1
model name	: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
cache size	: 4096 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
processor	: 2
model name	: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
cache size	: 4096 KB
physical id	: 3
siblings	: 2
core id		: 0
cpu cores	: 2
processor	: 3
model name	: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
cache size	: 4096 KB
physical id	: 3
siblings	: 2
core id		: 1
cpu cores	: 2

PS:
For explanation about flags in linux /proc/cpuinfo, you can refer to following:
<a href="http://blog.incase.de/index.php/cpu-feature-flags-and-their-meanings/">http://blog.incase.de/index.php/cpu-feature-flags-and-their-meanings/</a></pre>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/3EznksebPPw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/cpu-hyperthreading-vs-dual-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/cpu-hyperthreading-vs-dual-core/</feedburner:origLink></item>
		<item>
		<title>resolved – perl get only package/file names and not including package version number</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/Y19dtvHN_jE/</link>
		<comments>http://www.doxer.org/learn-linux/resolved-perl-get-only-packagefile-names-and-not-including-package-version-number/#comments</comments>
		<pubDate>Thu, 09 May 2013 09:43:41 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2590</guid>
		<description><![CDATA[I got a list of packages installed on my centos linux box via: rpm -qa&#124;sort&#124;uniq&#124;sort The result is like: acl-2.2.39-8.el5 acpid-1.0.4-12.el5 alacarte-0.10.0-1.fc6 alsa-lib-1.0.17-1.el5 alsa-lib-devel-1.0.17-1.el5 amtu-1.0.6-2.el5 anacron-2.3-45.el5.centos apr-1.2.7-11.el5_6.5 apr-util-1.2.7-11.el5_5.2 But now I only want the package names without version number, that is like: acl acpid alacarte alsa-lib alsa-lib-devel amtu anacron apr apr-util Here&#8217;s the perl script [...]]]></description>
				<content:encoded><![CDATA[<p>I got a list of packages installed on my centos linux box via:</p>
<blockquote><p>rpm -qa|sort|uniq|sort</p></blockquote>
<p>The result is like:</p>
<blockquote><p>acl-2.2.39-8.el5<br />
acpid-1.0.4-12.el5<br />
alacarte-0.10.0-1.fc6<br />
alsa-lib-1.0.17-1.el5<br />
alsa-lib-devel-1.0.17-1.el5<br />
amtu-1.0.6-2.el5<br />
anacron-2.3-45.el5.centos<br />
apr-1.2.7-11.el5_6.5<br />
apr-util-1.2.7-11.el5_5.2</p></blockquote>
<p>But now I only want the package names without version number, that is like:</p>
<blockquote><p>acl<br />
acpid<br />
alacarte<br />
alsa-lib<br />
alsa-lib-devel<br />
amtu<br />
anacron<br />
apr<br />
apr-util</p></blockquote>
<p>Here&#8217;s the perl script to fulfill this:</p>
<blockquote><p>#!/usr/bin/perl<br />
open($temp1,&#8221;&lt;&#8221;,&#8221;/doxer/test/package-names.txt&#8221;) or die(&#8220;error opening&#8221;);<br />
while(&lt;$temp1&gt;){<br />
if($_ =~ /([a-zA-Z].*?)\-[0-9]{1,}\.[0-9]{1,}.*/){<br />
print $1.&#8221;\n&#8221;;<br />
}<br />
}</p></blockquote>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/Y19dtvHN_jE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/resolved-perl-get-only-packagefile-names-and-not-including-package-version-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/resolved-perl-get-only-packagefile-names-and-not-including-package-version-number/</feedburner:origLink></item>
		<item>
		<title>difference between paused and suspended</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/es9P7GgK6pE/</link>
		<comments>http://www.doxer.org/learn-linux/difference-between-paused-and-suspended/#comments</comments>
		<pubDate>Thu, 02 May 2013 23:54:39 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2581</guid>
		<description><![CDATA[Note: this is from book &#60;Oracle VM Implementation and Administration Guide&#62; Paused This state preserves the machine’s current settings and application states without releasing system resources, allowing the machine to resume this state with a short load period. In this state, the virtual machine consumes memory and disk resources but very little CPU resources. When [...]]]></description>
				<content:encoded><![CDATA[<p>Note: this is from book &lt;Oracle VM Implementation and Administration Guide&gt;</p>
<ul>
<li><strong>Paused</strong></li>
</ul>
<p>This state preserves the machine’s current settings and application<br />
states without releasing system resources, allowing the machine to resume<br />
this state with a short load period. In this state, the virtual machine<br />
consumes memory and disk resources but very little CPU resources. When<br />
in the paused state, you can unpause the virtual machine.</p>
<ul>
<li><strong>Suspended</strong></li>
</ul>
<p>In this state, the machine’s current settings and application</p>
<p>states are preserved by saving them to respective files and essentially<br />
turning off the virtual machine, releasing system resources and allowing<br />
the machine to resume the same settings, applications, and processes upon<br />
leaving the state. In this state, the virtual machine only consumes disk<br />
resources. From the suspended state, you can resume the virtual machine.</p>
<ul>
<li><span style="line-height: 13px;">Summary</span></li>
</ul>
<p>Both the paused and suspended states offer the ability to stop the virtual machine<br />
in its exact current operating state and to return the machine to that state upon<br />
resuming. The difference between the two states is the manner in which the<br />
machine’s settings are preserved and how the resources that the virtual machine<br />
uses are affected.<br />
Putting a virtual machine into the paused state simply stops the execution of<br />
further commands momentarily, much like a Windows desktop enters Sleep mode.<br />
In the paused state, the machine’s applications and settings are left in the state that<br />
they were in when the paused state was entered—simply stopped. The settings and<br />
application states are not saved to files that are then used upon resuming; they are<br />
simply stopped as they are. This allows for a fairly short load period upon resuming,<br />
but the virtual machine also continues to utilize (some of) the machine’s resources.<br />
If the desire is to simply halt execution of the virtual machine for a short period<br />
of time and to restart it quickly, then you should choose to pause. This option<br />
provides a fast restart but will hold system resources. If the VM Server were to fail,<br />
the paused system will be lost and require recovery if applicable.<br />
Suspending a virtual machine essentially turns the machine off while preserving<br />
its current settings. Application states, data, and other settings are copied to their<br />
respective files and any resources used by the virtual machine are released. Upon<br />
resuming a suspended virtual machine, after an initial load period, during which the<br />
machine retrieves its settings and application states from these saved files and resumes<br />
use of the server resources, all applications resume the same state they were in.<br />
Suspending a system is a good option if you want to stop the system at a<br />
particular point in time and keep it in that state for an extended period of time.<br />
However, if you want to not use the system for a while, simply shutting it down<br />
might be a better option.</p>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/es9P7GgK6pE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/difference-between-paused-and-suspended/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/difference-between-paused-and-suspended/</feedburner:origLink></item>
		<item>
		<title>xen netfront netback</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/H9Q5kjIPyZQ/</link>
		<comments>http://www.doxer.org/learn-linux/xen-netfront-netback/#comments</comments>
		<pubDate>Thu, 02 May 2013 23:42:10 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2578</guid>
		<description><![CDATA[Note: this is from http://zhigang.org/blog/xen-dom0-networking/ Xen hypervisor itself doesn&#8217;t has any networking support (in fact, no any other device drivers except the console). All the networking infrastructure is done in dom0. Dom0 and domU use the split network driver to communicate. Dom0 will create vif. using netback, and connect it with the virtual interface in domU, which [...]]]></description>
				<content:encoded><![CDATA[<p>Note: this is from <a href="http://zhigang.org/blog/xen-dom0-networking/">http://zhigang.org/blog/xen-dom0-networking/</a></p>
<p>Xen hypervisor itself doesn&#8217;t has any networking support (in fact, no any other device drivers except the console). All the networking infrastructure is done in dom0.</p>
<p>Dom0 and domU use the split network driver to communicate. Dom0 will create vif. using netback, and connect it with the virtual interface in domU, which is initialed by netfront.</p>
<p>Dom0 also has vif0.0, vif0.1, etc and veth0, veth1, etc. But it&#8217;s absolutely different things, and nothing to do with netback/netfront. They are created by the net loopback driver, mainly for dom0 to communicate with the bridged networking. The net loopback driver is obsolete in xen 3.2+ (dom0 will use the bridge directly).</p>
<p>The net loopback driver usually compiled to the kernel. To prevent it from creating the looped vifs, by passing &#8220;netloop.nloopbacks=0&#8243; to the kernel command line.</p>
<p>You can attach virtual network interface to Dom0, just as for domU:</p>
<pre># xm network-attach 0</pre>
<p>By default, the newly attached vif will named vif0.0. So the name will fail duo to conflicting with the loopback vifs. To make it work, either prevent the net loopback driver from creating these vifs, or specify a different vif name when attaching:</p>
<pre># xm network-attach 0 vifname=&lt;uniq-vif-name&gt;</pre>
<p>Even after netback create the vif, then netfront driver in Dom0 still cannot initial it. See the codes in drivers/xen/netfront/netfront.c:netif_init:</p>
<pre>if (is_initial_xendomain())
    return 0;</pre>
<p><strong>PS:</strong></p>
<p>You can find more details on http://www.oracle.com/technetwork/articles/servers-storage-admin/networking-ovm-x86-1873548.html (about Oracle VM, but applicable to XEN)</p>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/H9Q5kjIPyZQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/xen-netfront-netback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/xen-netfront-netback/</feedburner:origLink></item>
		<item>
		<title>xen domu to dom0 interaction – PV channel and QEMU-DM</title>
		<link>http://feedproxy.google.com/~r/doxerorg/learnlinuxblog/~3/BTH98V9CFqA/</link>
		<comments>http://www.doxer.org/learn-linux/xen-domu-to-dom0-interaction-pv-channel-and-qemu-dm/#comments</comments>
		<pubDate>Thu, 02 May 2013 23:32:34 +0000</pubDate>
		<dc:creator>lamp-linux</dc:creator>
				<category><![CDATA[Clouding]]></category>
		<category><![CDATA[Oracle Cloud]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.doxer.org/?p=2575</guid>
		<description><![CDATA[Note: This is from book &#60;Oracle VM Implementation and Administration Guide&#62;. Because of the interaction between domU and dom0, several communication channels are created between the two. In a PV environment, a communication channel is created between dom0 and each domU, and a shared memory channel is created for each domU that is used for [...]]]></description>
				<content:encoded><![CDATA[<p>Note: This is from book &lt;Oracle VM Implementation and Administration Guide&gt;.</p>
<p>Because of the interaction between domU and dom0, several communication channels are created between the two.</p>
<ul>
<li>In a PV environment, a communication channel is created between dom0 and each domU, and a shared memory channel is created for each domU that is used for the backend drivers.</li>
<li>In an HVM environment, the Qemu-DM handles the interception of system calls that are made. Each domU has a Qemu-DM daemon, which allows for the use of network and I/Os from the virtual machine.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/doxerorg/learnlinuxblog/~4/BTH98V9CFqA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.doxer.org/learn-linux/xen-domu-to-dom0-interaction-pv-channel-and-qemu-dm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.doxer.org/learn-linux/xen-domu-to-dom0-interaction-pv-channel-and-qemu-dm/</feedburner:origLink></item>
	</channel>
</rss>
