Git Product home page Git Product logo

cache_dirs's Introduction

cache_dirs script unRAID V6.1 and later

This is an updated version of Joe L.'s cache_dirs sript for caching directories in memory to prevent unnecessary disk drive spinup. Thank you Alex R. Berg for your updates to cache_dirs.

Change Log

Version 2.1.1

  • Removed additional unused variables.
  • Removed V5 ulimit usage info that doesn't apply.
  • Show type of scanning being done - adaptive or fixed when cache_dirs is started.

Version 2.1.0

  • Removed code specific to V5, removed wait for array to come online, removed force disks busy, and modified script for readability.

Version 2.0.6

  • Included original 'B' option, it is unused but kept for compatibility reasons. This was done for the Dynamix Cache Dirs plugin.

VVersion 2.0.5

  • Updated for unRaid 6.1.2 new location of mdcmd (used to find idle-times of disks).

Version 2.0.4

  • Added more lost cache log, enabled by creating log file /var/log/cache_dirs_lost_cache.log.

Version 2.0.3

  • Bugfix suspend mover, and added concise log of lost cache.

Version 2.0.2

  • Fixed looping bash check in unRaid V6, plus fixed some too aggressive depth checks.

Version 2.0.1

  • Fixed missing sleep. Now decreases scan-depth after few seconds (20-40s) if cache is lost after many successful cache-hits, because we don't want cache_dirs to be a resource-hog when system is otherwise occupied.

Version 2.0.0

  • Added gradual depth to avoid continous scans of filesystem, monitor of disk-idle, and better user-feedback as to disk spin-up in log-file.

  • Now stops cache_dirs immediately on stop signal (eg array stop) including stopping the currently running find-process.

  • Force-disk-busy now defaults no and inverted flag (and changed -B to -b) because it was (mostly) unRaid V4 and its unnessary when using plg with unmount disk event.

cache_dirs's People

Watchers

 avatar  avatar

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.