20 #ifndef MEMORY_PRESSURE_MANAGER_H 21 #define MEMORY_PRESSURE_MANAGER_H 23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/processor/types.h" 25 #include "pedigree/kernel/utilities/List.h" 26 #include "pedigree/kernel/utilities/String.h" 27 #include "pedigree/kernel/utilities/new" 30 #define MAX_MEMPRESSURE_PRIORITY 16 41 virtual const String getMemoryPressureDescription() = 0;
48 virtual bool compact() = 0;
64 const static size_t HighestPriority = 0;
65 const static size_t HighPriority = MAX_MEMPRESSURE_PRIORITY / 3;
66 const static size_t MediumPriority = MAX_MEMPRESSURE_PRIORITY / 2;
67 const static size_t LowPriority = (MAX_MEMPRESSURE_PRIORITY * 2) / 3;
68 const static size_t LowestPriority = MAX_MEMPRESSURE_PRIORITY - 1;
75 static size_t getHighWatermark()
84 static size_t getLowWatermark()