Moved several VM related debug settings to kernel_debug_config.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27876 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,4 +19,24 @@
|
|||||||
#define BLOCK_CACHE_DEBUG_CHANGED
|
#define BLOCK_CACHE_DEBUG_CHANGED
|
||||||
|
|
||||||
|
|
||||||
|
// VM
|
||||||
|
|
||||||
|
// Enables the vm_page::queue, i.e. it is tracked which queue the page should
|
||||||
|
// be in.
|
||||||
|
//#define DEBUG_PAGE_QUEUE 1
|
||||||
|
|
||||||
|
// Enables extra debug fields in the vm_page used to track page transitions
|
||||||
|
// between caches.
|
||||||
|
//#define DEBUG_PAGE_CACHE_TRANSITIONS 1
|
||||||
|
|
||||||
|
// Enables a global list of all vm_cache structures.
|
||||||
|
//#define DEBUG_CACHE_LIST 1
|
||||||
|
|
||||||
|
// Enables swap support.
|
||||||
|
#define ENABLE_SWAP_SUPPORT 1
|
||||||
|
|
||||||
|
// When set limits the amount of available RAM (in MB).
|
||||||
|
//#define LIMIT_AVAILABLE_MEMORY 256
|
||||||
|
|
||||||
|
|
||||||
#endif // KERNEL_DEBUG_CONFIG_H
|
#endif // KERNEL_DEBUG_CONFIG_H
|
||||||
|
|||||||
@@ -18,20 +18,8 @@
|
|||||||
|
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
|
|
||||||
|
#include "kernel_debug_config.h"
|
||||||
|
|
||||||
// Enables the vm_page::queue, i.e. it is tracked which queue the page should
|
|
||||||
// be in.
|
|
||||||
//#define DEBUG_PAGE_QUEUE 1
|
|
||||||
|
|
||||||
// Enables extra debug fields in the vm_page used to track page transitions
|
|
||||||
// between caches.
|
|
||||||
//#define DEBUG_PAGE_CACHE_TRANSITIONS 1
|
|
||||||
|
|
||||||
// Enables a global list of all vm_cache structures.
|
|
||||||
//#define DEBUG_CACHE_LIST 1
|
|
||||||
|
|
||||||
// uncomment to build in swap support
|
|
||||||
#define ENABLE_SWAP_SUPPORT 1
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
|||||||
@@ -46,9 +46,6 @@
|
|||||||
#define SCRUB_SIZE 16
|
#define SCRUB_SIZE 16
|
||||||
// this many pages will be cleared at once in the page scrubber thread
|
// this many pages will be cleared at once in the page scrubber thread
|
||||||
|
|
||||||
// for debugging: limit the amount of available RAM (in MB)
|
|
||||||
//#define LIMIT_AVAILABLE_MEMORY 256
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct page_queue {
|
typedef struct page_queue {
|
||||||
vm_page *head;
|
vm_page *head;
|
||||||
|
|||||||
Reference in New Issue
Block a user