Giter VIP home page Giter VIP logo

Comments (7)

andreykl avatar andreykl commented on June 30, 2024

after i have restarted nginx with full cache, nginx cleaned up cache to correct size (1800m) and hold it correct.

so, i think problem exists only when nginx starts with absolutly empty cache (both times i have cleaned directory /var/cache/nginx by using rm -rf /var/cache/nginx/* before start).

from ngx_slowfs_cache.

andreykl avatar andreykl commented on June 30, 2024

after about 24 hours of normal work, it stopped to clean up cache again... that looks like a bug..

from ngx_slowfs_cache.

 avatar commented on June 30, 2024

I've already written this in letter, but I'll repeat it here:
This happens because cache manager repeatedly tries and fails to purge cache entry with nonzero usage count.
By nonzero I mean 0xFFFFF, that is, 20-bit "-1". That is not because of the only decrement in slowfs code, so it's increment missing somewhere.
This only happens with nginx 1.2.*, so workaround is to use nginx 1.0.

from ngx_slowfs_cache.

andreykl avatar andreykl commented on June 30, 2024

thank you very much

from ngx_slowfs_cache.

 avatar commented on June 30, 2024

Also, proposed solution for bug #4 solves this problem.
I'm now running 1.2.6 for two days and 5M cache requests without violating max_size limit.

from ngx_slowfs_cache.

PiotrSikora avatar PiotrSikora commented on June 30, 2024

Fixed in 5800076 (1.10). Thanks for report and sorry for the delay.

from ngx_slowfs_cache.

andreykl avatar andreykl commented on June 30, 2024

thank you very much for your great work!

from ngx_slowfs_cache.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.