OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: Julien on October 28, 2016, 05:51:48 pm

Title: local Cash
Post by: Julien on October 28, 2016, 05:51:48 pm
Hi Guys,
we are using a firewall A10 with a 100GB SSD storage.
i've enabled the local Cash to use the storage however the local cash is not growing than 2%.
please see the attached screenshots.
i've configured totaal 50GB to be cashed
Number of first-level subdirectories  32
Number of first-level subdirectories 512
Number of first-level subdirectories 10

what i am doing wrong ?
PS : i just restarted the service of the proxy server but nothing has changed.

thank you
Title: Re: local Cash
Post by: Julien on October 31, 2016, 01:13:45 pm
Anyone guys ?
Title: Re: local Cash
Post by: rackg on November 01, 2016, 03:27:05 am
I have seen you have set up 100M its not 50G. Can you check your configuration again ?
Title: Re: local Cash
Post by: Julien on November 01, 2016, 07:26:53 pm
I have seen you have set up 100M its not 50G. Can you check your configuration again ?
thank you for answer.
i see i've uploaded the wrong screenshot
please see below its stills shows 2% of disk usage.
Title: Re: local Cash
Post by: rackg on November 02, 2016, 07:17:05 am
hmm that seems to be an issue to me. I dont have a squid setup to try now.
Title: Re: local Cash
Post by: franco on November 02, 2016, 12:59:32 pm
Please run the following and let us know what it outputs:

# grep cache_dir /usr/local/etc/squid/squid.conf


Cheers,
Franco
Title: Re: local Cash
Post by: Julien on November 02, 2016, 03:53:09 pm
Please run the following and let us know what it outputs:

# grep cache_dir /usr/local/etc/squid/squid.conf


Cheers,
Franco
Hi Franco, this the result

root@firewall:~ # grep cache_dir /usr/local/etc/squid/squid.conf
cache_dir ufs /var/squid/cache 50000 32 512


thank you
Title: Re: local Cash
Post by: franco on November 02, 2016, 07:47:32 pm
That looks good. Can we somehow exclude the possibility that everything works as expected as there is not enough cached data available yet?
Title: Re: local Cash
Post by: Julien on November 03, 2016, 12:20:57 am
That looks good. Can we somehow exclude the possibility that everything works as expected as there is not enough cached data available yet?
Hi Franco,
i am not sure i understand what you mean.
if you mean everything is working as expected, i can't tell as i dont know if the data really cashed or not.
thank you