Posts

Showing posts with the label tuning

Tuning Up Squid

                  Specifying RAM Size   To improve performance, squid can actually store objects directly to Main Memory (RAM) to serve them to clients. And even though the ‘space available’ is far lower compared to Secondary Storage Devices (Hard Disk), the ‘fetch time’ is significantly higher. As a result, a significant change of performance can be seen. Step 1: Finding out the RAM usage root@firefly:~# free -m OR root@firefly:~# top Step 2: Allocating RAM Always make sure to back up the configuration file before editing root@firefly:~# vim /etc/squid/squid.conf     cache_mem 128 MB     maximum_object_size_in_memory 1 MB The first option specifies that 128 MB from RAM would be used by squid for storing 'hot' objects. The second option states that the maximum size of a stored 'hot' object would be 1 MB, implying that maximum of 128 objects may be st...