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

Caching large size files

Dear Friends,

I have ASL 5.206 with 80GB harddisk and 2.2GHz Celeron D, 512MB memory.

I would like to increase the size of cached web objects. I guess that a large number of wanted files is not cached.

Will anyone learn me how to do it ?


This thread was automatically locked due to age.
Parents Reply
  • Dear William, thanks for your reply.

    The setting now are:
    cache_mem is 64 MB                                         before it was 16
    maximum_object_size_in_memory is 512 KB    before it was 20

    I could not find maximum_object_size, so we enter it manually and assign 10240 KB

    Can you describe more why you put 0 to maximum_object_size_in_memory and 0 to cache_mem, while the maximum_object_size is 250 MB

    Thanks for your reply.
Children
  • [ QUOTE ]
    Dear William, thanks for your reply.

    The setting now are:
    cache_mem is 64 MB                                         before it was 16
    maximum_object_size_in_memory is 512 KB    before it was 20

    I could not find maximum_object_size, so we enter it manually and assign 10240 KB

    Can you describe more why you put 0 to maximum_object_size_in_memory and 0 to cache_mem, while the maximum_object_size is 250 MB

    Thanks for your reply. 

    [/ QUOTE ]
    I want squid to use LESS ram instead of more.  You apparently have a gig or two of ram installed..[:)]  I made the maximum_object_size controls the size of objects that get stored on the hard disk.  Since i want my hard disk cache to be used to it fullest potential i want it caching hte maximum amount of files.  I currently have like a 5 gig squid partition so i raised mine to 250 megs.  I put the cache_mem and Maximum_object_size_in_memory to zero to minimize squid's usage.  I have not noticed any performance hit from shifting my cach from ram to the hard disk.  How much ram do you have in this macgine?

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Hello William,

    My ASL 5 hardware are:
    P4 2.2GHz Celeron D
    512 MB memory
    80 GB Harddisk.

    As I told you that
    cache mem is 64 MB       before it was 16 MB
    maximum_object_size_in_memory is 512 KB    before it was 20KB

    I enter manually maximum_object_size is 10240.

    My internet is via Satellite, the only way of internet in IRAQ, and I have a shared bandwidth 1/46. Sometimes the internet got slow. Moreover I would like to cache the maximum number of sites in my server.

    Thanks a lot.

    Ali Ismail
  • [ QUOTE ]
    Hello William,

    My ASL 5 hardware are:
    P4 2.2GHz Celeron D
    512 MB memory
    80 GB Harddisk.

    As I told you that
    cache mem is 64 MB       before it was 16 MB
    maximum_object_size_in_memory is 512 KB    before it was 20KB

    I enter manually maximum_object_size is 10240.

    My internet is via Satellite, the only way of internet in IRAQ, and I have a shared bandwidth 1/46. Sometimes the internet got slow. Moreover I would like to cache the maximum number of sites in my server.

    Thanks a lot.

    Ali Ismail 

    [/ QUOTE ]
    IMO you should use the settings i suggested.  With half a gig you are going to make that machine swap quite easily since squid is going to hog your ram.  This will maximize your cached objects and minimize squid's ram usage.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Dear Mr. William,

    I am afraid that my ASL is not caching, I keep my current setting and I made this test:

    I connect 2 PCs to the same hub.

    I download the update of norton at PC1,
    I download the same update of norton at PC2, it takes the same time.

    I dowload an mp3 song at PC1,
    I download the same song at PC2, it takes also the same time.


    Will you help please,

    Ali Ismail
  • [ QUOTE ]
    Dear Mr. William,

    I am afraid that my ASL is not caching, I keep my current setting and I made this test:

    I connect 2 PCs to the same hub.

    I download the update of norton at PC1,
    I download the same update of norton at PC2, it takes the same time.

    I dowload an mp3 song at PC1,
    I download the same song at PC2, it takes also the same time.


    Will you help please,

    Ali Ismail 

    [/ QUOTE ]
    your maximum object size is only 10k.  You need to make that 102400.
    remember in v4/5 the values default in KB not MB.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Hi guys.
    Any idea how to check and tweak the cache in system 7?