Actions
Feature #4940
openRuntime cache policy change
Status:
New
Priority:
Normal
Assignee:
-
Category:
Tables
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
3.00 h
Description
Currently, tables.cs_policy key of nfd.conf sets the cache replacement policy, but its change is ignored upon runtime configuration reload.
This issue is to allow changing cache replacement policy via configuration reload.
In
cs::Policybase class, add:public: void adopt(); private: virtual void doAdopt();The base class
doAdoptfunction erases all CS entries.When
tables.cs_policyis changed during a configuration reload:- Destruct the old
cs::Policysubclass instance. - Construct the new
cs::Policysubclass instance, and invoke itsadoptfunction.
- Destruct the old
A policy may override the
doAdoptfunction, where it may enumerate existing CS entries and insert them to the policy's cleanup queues.
This issue only involves configuration reload, Cs, and cs::Policy base class implementation.
It does not involve cs::Policy subclass changes or management changes
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4941: LRU policy: adopt entries from another policy added
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4942: Priority FIFO policy: adopt entries from another policy added
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4943: CsMgmt: retrieve and change cache policy added
Actions