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
3054e4a3
Commit
3054e4a3
authored
Jun 09, 2019
by
Kirill Smelkov
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X not touching neighbour block works via setting MADV_RANDOM in last 1/4 of every block
parent
8293025b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+8
-1
No files found.
wcfs/wcfs_test.py
View file @
3054e4a3
...
@@ -459,10 +459,17 @@ class tFile:
...
@@ -459,10 +459,17 @@ class tFile:
# works slow.
# works slow.
# XXX -> make read(while-uploading) wait for uploading to complete
# XXX -> make read(while-uploading) wait for uploading to complete
# and only then return? (maybe it will help performance even in normal case)
# and only then return? (maybe it will help performance even in normal case)
mm
.
advise
(
blkmmap
,
(
mm
.
MADV_NORMAL
,
mm
.
MADV_RANDOM
)[
blk
%
2
])
#mm.advise(blkmmap, (mm.MADV_NORMAL, mm.MADV_RANDOM)[blk%2])
#mm.advise(blkmmap, (mm.MADV_RANDOM, mm.MADV_NORMAL)[blk%2])
#mm.advise(blkmmap, mm.MADV_NORMAL)
#mm.advise(blkmmap, mm.MADV_NORMAL)
#mm.advise(blkmmap, mm.MADV_RANDOM)
#mm.advise(blkmmap, mm.MADV_RANDOM)
# XXX vvv works - at the end of every block there is MAD_RANDOM
# range which is wider than RA window (XXX implicit) and so RA
# triggered before that, even if it overlaps with that last 1/4,
# don't trigger RA that overlaps with next block.
mm
.
advise
(
blkmmap
[
len
(
blkmmap
)
*
3
//
4
:],
mm
.
MADV_RANDOM
)
tdb
.
_files
.
add
(
t
)
tdb
.
_files
.
add
(
t
)
def
close
(
t
):
def
close
(
t
):
...
...
Kirill Smelkov
@kirr
mentioned in commit
fbf15309
·
Oct 27, 2021
mentioned in commit
fbf15309
mentioned in commit fbf15309ee11d1ec6830575f98a86115a5fe79ae
Toggle commit list
Kirill Smelkov
@kirr
mentioned in commit
d81d2cbb
·
Oct 28, 2021
mentioned in commit
d81d2cbb
mentioned in commit d81d2cbb3fd142ac0d222925c1121255bcc4fc81
Toggle commit list
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