diff options
author | Robert Morris <[email protected]> | 2014-08-28 05:57:47 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2014-08-28 05:57:47 -0400 |
commit | 48aa917403de1599a02924e429a9f43ea31e9cc1 (patch) | |
tree | 037648a21b395eacdd2d716a33cfc95e14ff0a61 /param.h | |
parent | 71453f72f285a17ccf0520b9dbdafdc701ff2f4a (diff) | |
download | xv6-labs-48aa917403de1599a02924e429a9f43ea31e9cc1.tar.gz xv6-labs-48aa917403de1599a02924e429a9f43ea31e9cc1.tar.bz2 xv6-labs-48aa917403de1599a02924e429a9f43ea31e9cc1.zip |
i think this is a working concurrent logging scheme
Diffstat (limited to 'param.h')
-rw-r--r-- | param.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,10 +3,11 @@ #define NCPU 8 // maximum number of CPUs #define NOFILE 16 // open files per process #define NFILE 100 // open files per system -#define NBUF 10 // size of disk block cache #define NINODE 50 // maximum number of active i-nodes #define NDEV 10 // maximum major device number #define ROOTDEV 1 // device number of file system root disk #define MAXARG 32 // max exec arguments -#define LOGSIZE 10 // max data sectors in on-disk log +#define MAXOPBLOCKS 10 // max # of blocks any FS op writes +#define LOGSIZE (MAXOPBLOCKS*3) // max data sectors in on-disk log +#define NBUF (MAXOPBLOCKS*3) // size of disk block cache (>= LOGSIZE) |