Squid on 2 TB harddisk
-
I have 2 TB hard disk. I want to buy CPU for pf-sense for making web caching server(squid server) of 2 TB harddisk.
What is the requirement of CPU(Ram, processor etc).
My friend say you need core 2 due 1.8 ghz, 4gb ram.
what's your view?????? -
How much traffic are you expecting? More traffic = more cpu and ram.
That setup would be just fine if not even a little overkill, for a medium sized office.
I'm running pfSense embedded on an AMD Geode 500 MHZ proc with 256 megs of RAM. Granted, i'm not running squid on it. If anything I would say to give it as much ram as possible so the cache doesn't have to resort to retrieving data from the slower hard drive, CPU isn't as important. -
Keep in mind also that squid will use ~10MB of RAM for every 1GB of cahce.
2TB=2,000GB
2,000*10=20,000MB
20,000MB=20GB of RAM.You don't have enough. :-)
http://wiki.squid-cache.org/SquidFaq/SquidMemory#Why_does_Squid_use_so_much_memory.21.3F
(And that's for i386, amd64 takes 14MB of RAM per 1GB of cache!)
-
Now I have 2 questions:
1-what is the requirement of PC processor for it?
2-On squid setting tab(proxy server:cache management) it is written near Memory cache size
""This is amount pf physical RAM(in megabytes) to be used for negative cache. This value should not exceed more than 50% of the installed RAM""
It means that for 20TB harddisk for squid, we need 40gb of ram????thank for support
-
A Squid cache of 2TB is HUGE and you'll need to do some careful squid & OS tuning, depending on the type of files you'll be caching … You'd need a fast system, with multiple (2-3) 15K rpm disks (to minimize seek time), plenty of memory, smart filesystem partitioning etc.
Btw this subject has been discussed before, and iirc some people have expressed the opinion that pfSense system defaults are optimal for its role as a firewall/security device, not for a full-blown FreeBSD server.
-
Indeed these are questions that belong on a squid forum - you're trying to far exceed the intention of the package - it's not meant to be a gigantic full-blown proxy of such proportions. If it's going to be that large and busy it should be off on its own dedicated box.
The design and specs of such a system are debatable but a squid forum/list would be a more likely place to get accurate suggestions.