<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>gHacks technology news &#187; top</title>
	<atom:link href="http://www.ghacks.net/tag/top/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Mon, 23 Nov 2009 22:22:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get To Know Linux: See Your Systems&#8217; Memory Usage</title>
		<link>http://www.ghacks.net/2009/03/10/get-to-know-linux-see-your-systems-memory-usage/</link>
		<comments>http://www.ghacks.net/2009/03/10/get-to-know-linux-see-your-systems-memory-usage/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 20:54:20 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[gnome-system-monitor]]></category>
		<category><![CDATA[memory management]]></category>
		<category><![CDATA[top]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=11076</guid>
		<description><![CDATA[If you are new to Linux you might be wondering how you can find out how much free memory your system has or how your memory is being used. For this there are two simple to use applications: top and free. The top application informs you what tasks are running and how much memory and? [...]]]></description>
			<content:encoded><![CDATA[<p>If you are new to Linux you might be wondering how you can find out how much free memory your system has or how your memory is being used. For this there are two simple to use applications: <em>top </em>and <em>free. </em>The <em>top</em> application informs you what tasks are running and how much memory and? CPU? is being used by each. The <em>free </em>application tells you how much total RAM is being consumed by your system. Both are command line applications and both do an outstanding job of reporting information.</p>
<p>Naturally both commands have gui front ends (gnome-system-monitor does both), but what do you do when you have a headless server? Or what about when you are logging in remotely and you can&#8217;t tunnel X? In those instances you will want to be able to get this information via the command line. And Linux has the tools for you.</p>
<p><span id="more-11076"></span><strong>Free</strong></p>
<p>The <em>free</em> command displays the amount of free and used physical and swap memory on your system. Free has a limited number of switches to use which makes the command even simpler to use. The switches are:</p>
<p>-b Displays the output in bytes</p>
<p>-k Displays the output in kilobytes (this is the default action)</p>
<p>-t Adds a line at the bottom which contains the totals</p>
<p>-m Displays the output in megabytes</p>
<p>And that&#8217;s it.</p>
<p>When you run <em>free</em> the output will look like:</p>
<p><code> total ? ? ? used ? ?? free ?? shared ? buffers? cached<br />
Mem: ? ? ? ??? 884 ? ?? ? 862??????? 22???????? 0?????? 289 ? ? 127<br />
-/+ buffers/cache: ? ? ?? 445 ? ? ? 439<br />
Swap: ? ????? 3992 ? ? ? ?? 0 ? ?? 3992<br />
</code></p>
<p>So you can see the total (in megabytes) memory being 884 and the free being 22. Depending upon your setup and what you have running you might think free is wrong. One thing you have to keep in mind is the buffers and cached memory are actually still available so in the above example the total used memory does include both the buffer and the cached memory. So often there is more memory available for application use than you would think. This gets very confusing because the used memory listing includes memory used by the kernel that may or may not be used for various modules (such as networking, sound, etc). There is another issue confusing memory usage. Since a vast number of Linux applications share libraries (like libc) those libraries could already be in memory when you launch an application. Huh? Let&#8217;s try a simple explanation.</p>
<p>You have Application A and Application B that both use Library 1. Application A reports it uses 25 MB of memory to run and Application uses 25 MB of memory to run. But Library 1 takes up 5 MB of memory to run. If Application A is already running that means Library 1 is already running so you can subtract the Library memory from the total of Application B.</p>
<p>So you can see how complex memory usage is for Linux. Which is why you want to also check out the command <em>top.</em></p>
<p><strong>Top</strong></p>
<p>The top command diplays running Linux tasks. The information it offers is:</p>
<ul>
<li>PID &#8211; Process ID</li>
<li>USER &#8211; The user who ran the command</li>
<li>NI &#8211; The nice level of the process</li>
<li>VIRT &#8211; Virtual memory the process is using</li>
<li>RES &#8211; Resident (non virtual) size of memory</li>
<li>SHR &#8211; The amount of shared memory a task is using</li>
<li>S &#8211; Process status</li>
<li>%CPU &#8211; The percentage of the CPU the process uses</li>
<li>%MEM &#8211; The percentage of memory the process uses</li>
</ul>
<p>So you can see there is plenty of information to be had from <em>top</em>. The point is, between the two applications you can summize the amount of memory being used at any given time.</p>
<p><strong>Gnome System Monitor</strong></p>
<div id="attachment_11089" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/03/g_sys_mon.png"><img class="size-medium wp-image-11089" src="http://www.ghacks.net/wp-content/uploads/2009/03/g_sys_mon-500x408.png" alt="GNOME System Monitor" width="300" height="245" /></a><p class="wp-caption-text">GNOME System Monitor</p></div>
<p>As I said earlier, there are gui tools for this tasks. One of those tasks is gnome-system-monitor. It gives you every bit of information you need, and does so in a much more easy to use/read format. When you open up this tool you will see, after a bit of poking around, it gets its information with a little help from both free and top. Take a look at this application to see just how well the information is used and displayed.</p>
<p>The image to the left highlights the resource listing tab of gnome-system-monitor.</p>
<p><strong>Final Thoughts</strong></p>
<p>It&#8217;s pretty easy to see how complex monitoring memory can be with Linux. Fortunately there are plenty of tools to aid in you in this task. Although it&#8217;s not always easy to get a cut and dry snapshot of what memory you have available, you can get good idea of where your memory is.</p>

	Tags: <a href="http://www.ghacks.net/tag/free/" title="free" rel="tag">free</a>, <a href="http://www.ghacks.net/tag/gnome-system-monitor/" title="gnome-system-monitor" rel="tag">gnome-system-monitor</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/memory-management/" title="memory management" rel="tag">memory management</a>, <a href="http://www.ghacks.net/tag/top/" title="top" rel="tag">top</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2007/02/10/virtualbox-a-vmware-alternative/" title="VirtualBox a Vmware alternative (February 10, 2007)">VirtualBox a Vmware alternative</a> (9)</li>
	<li><a href="http://www.ghacks.net/2008/12/20/create-and-edit-vector-graphics-for-free/" title="Create and edit vector graphics for free (December 20, 2008)">Create and edit vector graphics for free</a> (10)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/06/11/wildfire-games/" title="Wildfire Games (June 11, 2008)">Wildfire Games</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/03/10/get-to-know-linux-see-your-systems-memory-usage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Top 10 Football goals and tricks</title>
		<link>http://www.ghacks.net/2007/01/09/top-10-football-goals-and-tricks/</link>
		<comments>http://www.ghacks.net/2007/01/09/top-10-football-goals-and-tricks/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 14:55:03 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[best]]></category>
		<category><![CDATA[essien]]></category>
		<category><![CDATA[football]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[fussball]]></category>
		<category><![CDATA[goals]]></category>
		<category><![CDATA[great]]></category>
		<category><![CDATA[henry]]></category>
		<category><![CDATA[score]]></category>
		<category><![CDATA[top]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2007/01/09/top-10-football-goals-and-tricks/</guid>
		<description><![CDATA[I had some time at hand and decided to write a short article about great football goals and tricks that I found surfing youtube. Most football videos are from 2006 and feature stars such as Essien, Maxi Rodriguez, Xabi Alonso, Scholes and Thierry Henry. Please don't be disappointed that your football team or player is not among the top ten, post a link to youtube in the comments to pay tribute to him.]]></description>
			<content:encoded><![CDATA[<p>I had some time at hand and decided to write a short article about great football goals and tricks that I found surfing youtube. Most football videos are from 2006 and feature stars such as Essien, Maxi Rodriguez, Xabi Alonso, Scholes and Thierry Henry. Please don&#8217;t be disappointed that your football team or player is not among the top ten, post a link to youtube in the comments to pay tribute to him.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/qK2S_0baOJw"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/qK2S_0baOJw" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><span id="more-1082"></span></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/RsWGneMURDo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/RsWGneMURDo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/VgGMXq0XuDw"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/VgGMXq0XuDw" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/SJQDnMmYMvo"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/SJQDnMmYMvo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/EhDJYN76R7Q"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/EhDJYN76R7Q" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/veHB6vCEKGs"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/veHB6vCEKGs" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/iOknsKZDWbs"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/iOknsKZDWbs" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/IFXo7_mmr98"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/IFXo7_mmr98" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/k-b01xfi1yI"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/k-b01xfi1yI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Qo6ZmTJfki8"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Qo6ZmTJfki8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>

	Tags: <a href="http://www.ghacks.net/tag/best/" title="best" rel="tag">best</a>, <a href="http://www.ghacks.net/tag/essien/" title="essien" rel="tag">essien</a>, <a href="http://www.ghacks.net/tag/football/" title="football" rel="tag">football</a>, <a href="http://www.ghacks.net/tag/fun/" title="fun" rel="tag">fun</a>, <a href="http://www.ghacks.net/tag/fussball/" title="fussball" rel="tag">fussball</a>, <a href="http://www.ghacks.net/tag/goals/" title="goals" rel="tag">goals</a>, <a href="http://www.ghacks.net/tag/great/" title="great" rel="tag">great</a>, <a href="http://www.ghacks.net/tag/henry/" title="henry" rel="tag">henry</a>, <a href="http://www.ghacks.net/tag/score/" title="score" rel="tag">score</a>, <a href="http://www.ghacks.net/tag/top/" title="top" rel="tag">top</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2006/11/29/zombie-city-tactics/" title="Zombie City Tactics (November 29, 2006)">Zombie City Tactics</a> (0)</li>
	<li><a href="http://www.ghacks.net/2006/11/18/yahoo-bought-a-site-i-never-heard-about/" title="Yahoo bought a site I never heard about (November 18, 2006)">Yahoo bought a site I never heard about</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/05/23/world-cup-match-details/" title="World Cup Match Details (May 23, 2006)">World Cup Match Details</a> (0)</li>
	<li><a href="http://www.ghacks.net/2007/06/22/weekend-fun-starshine/" title="Weekend fun Starshine (June 22, 2007)">Weekend fun Starshine</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/05/18/watch-the-uefa-euro-2008-online/" title="Watch the UEFA Euro 2008 Online (May 18, 2008)">Watch the UEFA Euro 2008 Online</a> (18)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2007/01/09/top-10-football-goals-and-tricks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
