This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

hardware requirements

is 256MB truely good enough?
is there an advantage to use a Pentium 4 over a celeron (2.4GHz)?


This thread was automatically locked due to age.
Parents Reply Children
  • yeh that's what i have. does 256 work well for you? are you using the web cache?
  • [ QUOTE ]
    yeh that's what i have. does 256 work well for you? are you using the web cache? 

    [/ QUOTE ]
    I am using ips, http proxy w/content filtering...dhcp, dns, pop3 and smtp w/ a-v, and several NAt rules and packet filter rules.  Ram is a bit tight i ma down to 96 megs free..  IF you want ot use quid i suggest you sue the following mods:
    Squid is a hog..in v 4.025 and v5.1 it is a pig..[:)] here are some mods i use in both 4.x and 5.x that put the caching load mostly on the hard disk instead of in main memory:

    to adjust max object size on disk and in mem:
    Login to your firewall using an ssh client (I use ZOC on windows but PuTTY I believe works just as well) using the "loginuser" ID.

    Once logged in "su" to root...
    ASL> su -
    Password: 

    Open the .conf file in "joe".
    ASL> joe /var/chroot-squid/etc/squid.conf-default

    As the above article suggests, look at the /var/chroot-squid/etc/reference-squid.conf file first since it has all the original annotations regarding the different options contained in the file.

    cache_mem
    Default cache_mem 8 MB
    (add this line without the word default and changethe 8 to zero)

    Default maximum_object_size 4096 KB
    Objects larger than this size will NOT be saved on disk. The value is specified in kilobytes, and the default is 4 MB
    (i jack this one way up..on my v5 setup i have this set to 200 megs on a 20 gig drive that uses a 6 gig storage partition)

    maximum_object_size_in_memory (bytes)
    Objects greater than this size will not be attempted to be kept in the memory cache. This should be set high enough to keep objects accessed frequently in memory to improve performance while, low enough to keep larger objects from hoarding cache_mem.
    Default maximum_object_size_in_memory 8 KB
    ( I make this one zero as well. Between this one at zero and the cache mem at zero it reduces by at least 50%(maybe more) the amount of ram squid chews up. I never noticed a huge performance hit from using the hdd as my primary cache even with a 3 meg connection to the internet.)

    These three changes alone will drastically reduce the amount of RAM squid takes up during caching. The hard disk will have the load shifted to it as a result(which for me is what i was looking to do). You can modify these values as you wish..but for 256 megs i would use the above values. -
    --------------------------------------------------------------------------
    Also to eliminate any kind of swapping i have the swapfile turned off...  This is of no real benefit i do it as a personal thing as i felt the system's swapping was too high(10 megs is not that bad actually),..

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • i don't want to use any type of caching except for DNS. and actually I would like the system to use less HDD as possible. I want the HDD to be accessed mainly for logging. how do i check memory usage?

    When you say swap file you mean the file that the system uses to free up physical memory? if so how do you disbale it?
  • [ QUOTE ]
    i don't want to use any type of caching except for DNS. and actually I would like the system to use less HDD as possible. I want the HDD to be accessed mainly for logging. how do i check memory usage?

    When you say swap file you mean the file that the system uses to free up physical memory? if so how do you disbale it? 

    [/ QUOTE ]
    The system makes separate partitions for logging and http/a/v caching.  so using the web caching is a good thing as they cannot intrude on each other's space.  The swap file is also on its own partition and  its space is reserved ony for swapping..so again turning it off will be of no real benefit.

    if you absolutly have to have it off login via the secure shell as root..then type swapoff -a 

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • I have an old 6.4GB laptop hard drive and I don't think it is fast enough to improve performance.
  • I run Astaro 5 off an old 20 gig..i run v4 off an ancient 4.3 gig.  Trust me caching to the hdd will not hurt you as much as swapping will..

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • i guess the swapoff -a is not a permanent command. is there a way to reset it?

    Also why would i not be able to login to ssh as root? i can login as "loginuser"
  • Root is not allowed to SSH.

    use loginuser, then 
    su -

    for turning off swap, add the command to the end of one of the init scripts, such as:
    /etc/init.d/beeps

    Barry
  • thanks for the help and suggestions guys. I have 85MB free ram which isn't too bad.
  • Keep in mind that nightly processes such as accounting and log compression need extra memory.

    I don't recommend disabling swap unless you have a LOT of RAM.
    (384MB+ for home use, I'd guess)
    Disabling it probably won't make a noticable performance difference and you're risking services failing or kernel panics.

    Barry