Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
2d2bb578
Commit
2d2bb578
authored
Oct 19, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
27d91d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
wcfs/wcfs.go
wcfs/wcfs.go
+15
-14
No files found.
wcfs/wcfs.go
View file @
2d2bb578
...
@@ -264,10 +264,10 @@ package main
...
@@ -264,10 +264,10 @@ package main
// 4. for all file/blk to invalidate we do:
// 4. for all file/blk to invalidate we do:
//
//
// - try to retrieve file/head/data[blk] from OS file cache;
// - try to retrieve file/head/data[blk] from OS file cache;
// - if retrieved successfully -> store retrieved data
into OS file cach
e
// - if retrieved successfully -> store retrieved data
back into OS fil
e
//
for file/@<rev>/data[blk].
//
cache for file/@<rev>/data[blk], where
//
//
// rev = max(δFtail.by(#blk)) || zconn.at
// rev = max(δFtail.by(#blk)) || zconn.at
; see below about δFtail
//
//
// - invalidate file/head/data[blk] in OS file cache.
// - invalidate file/head/data[blk] in OS file cache.
//
//
...
@@ -284,7 +284,7 @@ package main
...
@@ -284,7 +284,7 @@ package main
// δFtail.tail describes invalidations to file we learned from ZODB invalidation.
// δFtail.tail describes invalidations to file we learned from ZODB invalidation.
// δFtail.by allows to quickly lookup information by #blk.
// δFtail.by allows to quickly lookup information by #blk.
//
//
// min(rev) in δFtail is min(@at) at which head/data is currently mmapped.
// min(rev) in δFtail is min(@at) at which head/data is currently mmapped
(see below)
.
//
//
// - when we receive a FUSE read(#blk) request to a file/head/data we process it as follows:
// - when we receive a FUSE read(#blk) request to a file/head/data we process it as follows:
//
//
...
@@ -307,7 +307,7 @@ package main
...
@@ -307,7 +307,7 @@ package main
// rev(blk) ≤ min(rev) is δFtail ; #blk ∉ δFtail
// rev(blk) ≤ min(rev) is δFtail ; #blk ∉ δFtail
//
//
//
//
// below rev'(blk) is min(of the
number
s found):
// below rev'(blk) is min(of the
estimate
s found):
//
//
// rev(blk) ≤ rev'(blk) rev'(blk) = min(^^^)
// rev(blk) ≤ rev'(blk) rev'(blk) = min(^^^)
//
//
...
@@ -338,6 +338,15 @@ package main
...
@@ -338,6 +338,15 @@ package main
// mapping while it is under pagefault.
// mapping while it is under pagefault.
//
//
//
//
// XXX mmap(@at) open
//
// XXX zconn(s) for historical state
// XXX serving read from @<rev>/data
//
// XXX(integrate place=?) ZData - ne need to keep track -> ZBlk1 is always
// marked as changed on blk data change.
//
// ----------------------------------------
//
//
// δ(BTree) notes
// δ(BTree) notes
//
//
...
@@ -387,15 +396,7 @@ package main
...
@@ -387,15 +396,7 @@ package main
// . +k(blk) -> invalidate #blk (e.g. if blk was previously read as hold)
// . +k(blk) -> invalidate #blk (e.g. if blk was previously read as hold)
//
//
//
//
//
// ----------------------------------------
//
// XXX zconn(s) for historical state
// XXX serving read from @<rev>/data
//
//
// XXX(integrate place=?) ZData - ne need to keep track -> ZBlk1 is always
// marked as changed on blk data change.
//
//
//
// - XXX(kill) 1 ZODB connection per 1 bigfile (each bigfile can be at its different @at,
// - XXX(kill) 1 ZODB connection per 1 bigfile (each bigfile can be at its different @at,
// because invalidations for different bigfiles can be processed with different
// because invalidations for different bigfiles can be processed with different
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment