diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-28 19:17:42 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-28 19:17:42 +0000 |
commit | 6b2676d33f2e6c25dc98eda57325e7185a6ff763 (patch) | |
tree | e416c75208b769643862a9a7b7e3d92e9ba0a624 /content/llcache.h | |
parent | 5f57a39130aea9829ea9d870e55f4fb19d7cbec8 (diff) | |
download | netsurf-6b2676d33f2e6c25dc98eda57325e7185a6ff763.tar.gz netsurf-6b2676d33f2e6c25dc98eda57325e7185a6ff763.tar.bz2 |
Improve llcache writeout stratagy
Diffstat (limited to 'content/llcache.h')
-rw-r--r-- | content/llcache.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/content/llcache.h b/content/llcache.h index 1375759a2..1b7ba7dae 100644 --- a/content/llcache.h +++ b/content/llcache.h @@ -213,13 +213,22 @@ struct llcache_parameters { size_t limit; /**< The target upper bound for the RAM cache size */ size_t hysteresis; /**< The hysteresis around the target size */ - int minimum_lifetime; /**< The minimum lifetime to consider - * sending objects to backing store. - */ + /** The minimum lifetime to consider sending objects to backing store.*/ + int minimum_lifetime; - size_t bandwidth; /**< The maximum bandwidth to allow the - * backing store to use. - */ + /** The minimum bandwidth to allow the backing store to + * use in bytes/second + */ + size_t minimum_bandwidth; + + /** The maximum bandwidth to allow the backing store to use in + * bytes/second + */ + size_t maximum_bandwidth; + + /** The time quantum over which to calculate the bandwidth values + */ + unsigned long time_quantum; struct llcache_store_parameters store; }; |