summaryrefslogtreecommitdiff
path: root/param.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2014-08-28 05:57:47 -0400
committerRobert Morris <[email protected]>2014-08-28 05:57:47 -0400
commit48aa917403de1599a02924e429a9f43ea31e9cc1 (patch)
tree037648a21b395eacdd2d716a33cfc95e14ff0a61 /param.h
parent71453f72f285a17ccf0520b9dbdafdc701ff2f4a (diff)
downloadxv6-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/param.h b/param.h
index b6f6f46..bdac60c 100644
--- a/param.h
+++ b/param.h
@@ -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)