<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: recommended size cache_mem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066967#M29965</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;If the server id dedicated for one purpose, squid, you should max out the memory setting.&lt;BR /&gt;&lt;BR /&gt;Here is how I'd calculate.&lt;BR /&gt;&lt;BR /&gt;Start the server. Shut off squid.&lt;BR /&gt;&lt;BR /&gt;free&lt;BR /&gt;&lt;BR /&gt;Leave a few hundred meg, say 200 free for user processes and give the rest to squid. Don't push the system to the point where it pages processes in and out of swap.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Sep 2007 07:28:41 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-09-07T07:28:41Z</dc:date>
    <item>
      <title>recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066966#M29964</link>
      <description>&lt;BR /&gt;what would be the recommended size of cache_mem in squid.conf on a dedicated Gateway Server(squid2.6, and iptables), having 1 Gig DDR2 RAM ?&lt;BR /&gt;&lt;BR /&gt;On a 20 users network, What would be the recommended size of hard drive cache size(cache_dir ufs /path/to/cache_dir SIZE 16 256) in squid.cong on a dedicated Gateway Server(squid2.6, and iptables), having 1 Gig DDR2 RAM ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Fri, 07 Sep 2007 07:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066966#M29964</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-07T07:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066967#M29965</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;If the server id dedicated for one purpose, squid, you should max out the memory setting.&lt;BR /&gt;&lt;BR /&gt;Here is how I'd calculate.&lt;BR /&gt;&lt;BR /&gt;Start the server. Shut off squid.&lt;BR /&gt;&lt;BR /&gt;free&lt;BR /&gt;&lt;BR /&gt;Leave a few hundred meg, say 200 free for user processes and give the rest to squid. Don't push the system to the point where it pages processes in and out of swap.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2007 07:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066967#M29965</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-07T07:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066968#M29966</link>
      <description>Based on &lt;A href="http://wiki.squid-cache.org/SquidFaq/SquidMemory:" target="_blank"&gt;http://wiki.squid-cache.org/SquidFaq/SquidMemory:&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; As a rule of thumb on Squid uses approximately 10 MB of RAM per GB of the total of all cache_dirs (more on 64 bit servers such as Alpha), plus your cache_mem setting and about an additional 10-20MB. It is recommended to have at least twice this amount of physical RAM available on your Squid server. &lt;BR /&gt;&lt;BR /&gt;So, if you have 1 GB RAM, squid should be configured to use about 500 MB (OS normally uses very small amount of memmory).&lt;BR /&gt;&lt;BR /&gt;The cache_dir depends of your available space, and for each GB, 10 MB or RAM is used.&lt;BR /&gt;&lt;BR /&gt;So, the formula should be:&lt;BR /&gt;&lt;BR /&gt;((cache_dir/1024) * 10 MB ) + cache_mem MB + 20 MB &amp;lt;= 500 MB</description>
      <pubDate>Fri, 07 Sep 2007 10:57:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066968#M29966</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-09-07T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066969#M29967</link>
      <description>Thanks Dear SEP and Ivan Ferreira for help.&lt;BR /&gt;&lt;BR /&gt;Ok, cache_mem is 300 now, and cache_dir is 2000(2 GB).&lt;BR /&gt;&lt;BR /&gt;another issue, now when I run free -m I found memory usage 679 MB, and this machine is a dedicated Gateway machine and on the average with only 10 users simultaneously connected to the internet, but when I run top, &lt;BR /&gt;&lt;BR /&gt;1, i dont find squid in the list.. why ?&lt;BR /&gt;&lt;BR /&gt;95% of processes thats in the list(top output) consumes only the 0.0 %MEM, and only 2 or 3 process consumes 1.x or 3.x %MEM.&lt;BR /&gt;&lt;BR /&gt;2, then why "free -m" shows MEM used as 679 MB, as per the output of top it should be very less ?&lt;BR /&gt;&lt;BR /&gt;3, whats the proper way of checking which process is consuming/using how much MEM ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 12 Sep 2007 00:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066969#M29967</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-12T00:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066970#M29968</link>
      <description>4, is there any command to check that how much mem is using by squid ? other than the formula(or manual calculaion) that Ivan provide   ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 12 Sep 2007 01:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066970#M29968</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-12T01:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066971#M29969</link>
      <description>Ok, for 1, 3 &amp;amp; 4, 'ps -elf' is your friend.  In particular:&lt;BR /&gt;&lt;BR /&gt;ps -elf | grep squid&lt;BR /&gt;&lt;BR /&gt;The 10th column is your memory usage in kilobytes.&lt;BR /&gt;&lt;BR /&gt;In top, you can sort by memory usage by using 'M' (not m).  This should also show you 'squid' near the top.&lt;BR /&gt;&lt;BR /&gt;As for question 2, the memory 'used' in top is the same as the memory 'used' in free.  These values are grabbed from '/proc/meminfo'.  The tools just format it differently.</description>
      <pubDate>Wed, 12 Sep 2007 03:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066971#M29969</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-09-12T03:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066972#M29970</link>
      <description>thanks Dear Stuart Browne for help&lt;BR /&gt;&lt;BR /&gt;I ran the following command &lt;BR /&gt;&lt;BR /&gt;# ps -elf |grep squid&lt;BR /&gt;1 S root 2363  1  0  76  0  - 2987 wait 08:21 ? 00:00:00 /etc/init.d/squid start&lt;BR /&gt;4 S nobody 3259 2363  0  76  0 -  5594 - 08:21 ? 00:00:05 (squid) start&lt;BR /&gt;&lt;BR /&gt;as per the output ( 2987 + 5594 = 8581 ) and then ( 8581 / 1000 = 8 MB ) its clear that squid is using only 8 MB isn't ?&lt;BR /&gt;&lt;BR /&gt;then which process/software is using 679 MB of Memory on this dedicated Gateway server ?&lt;BR /&gt;&lt;BR /&gt;top also doesnt show me any memory hungry process, so who is using 679-715 MB memory&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066972#M29970</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-12T05:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066973#M29971</link>
      <description>I think that the best way to check the memory information is using cachemgr.cgi as described in the link previously posted.</description>
      <pubDate>Wed, 12 Sep 2007 05:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066973#M29971</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-09-12T05:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066974#M29972</link>
      <description>and why top doesnt show me the squid in its output ?&lt;BR /&gt;&lt;BR /&gt;ok, one more thing bind is also running on this machine as a cache-only server, and bind is also not visible in top output .. why ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 12 Sep 2007 06:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066974#M29972</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-12T06:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066975#M29973</link>
      <description>How are you sorting the output of top? Can your share the output? Try using top -b</description>
      <pubDate>Wed, 12 Sep 2007 10:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066975#M29973</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-09-12T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066976#M29974</link>
      <description>Thanks Dear Ivan for help&lt;BR /&gt;Yes when I ran "top -b" it shows the squid and named both, once again thanks for sugestions.&lt;BR /&gt;&lt;BR /&gt;But again I'll ask that "top -b" or "ps -elf |grep squid" shows MEM used by squid is too low/little, ok, but "free -m" shows me the mem used almost 700 MB.&lt;BR /&gt;So which process is responsible for this much(700 MB) mem usage ?&lt;BR /&gt;&lt;BR /&gt;attach are the "top -b" and "ps -elf" output&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Thu, 13 Sep 2007 00:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066976#M29974</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-13T00:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066977#M29975</link>
      <description>First off, there's just over 400MB used by 'cached' and 'buffers'.  This is the kernel using memory to buffer disk IO to make things quicker for users.&lt;BR /&gt;&lt;BR /&gt;2nd largest portion of it is used by X &amp;amp; Gnome, coming in at about 300 or so MB.&lt;BR /&gt;&lt;BR /&gt;As for Squid, it will slowly grow as it gets used.  If it isn't used, there's nothing to keep in memory, so it doesn't bother wasting it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2007 03:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066977#M29975</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-09-13T03:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: recommended size cache_mem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066978#M29976</link>
      <description>Dear Stuart Thanks for your reply, and sorry for acknowledging too late.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; there's just over 400MB used by 'cached' and 'buffers'....&lt;BR /&gt;if you can please list those proceses(someone not all) that demonstrate the buffer and cached .. I mean those enteries in the output of "ps -elf" and top, that demonstrate the kernel buffer and cache.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Sep 2007 01:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/recommended-size-cache-mem/m-p/4066978#M29976</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-22T01:55:58Z</dc:date>
    </item>
  </channel>
</rss>

