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
72308431
Commit
72308431
authored
Dec 04, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c1606346
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
bigfile/__init__.py
bigfile/__init__.py
+2
-0
setup.py
setup.py
+16
-11
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+1
-1
No files found.
bigfile/__init__.py
View file @
72308431
...
@@ -21,4 +21,6 @@
...
@@ -21,4 +21,6 @@
"""TODO big module-level picture description"""
"""TODO big module-level picture description"""
import
golang
# so that golang.so -> libgolang.so is found and loaded
from
._bigfile
import
BigFile
,
WRITEOUT_STORE
,
WRITEOUT_MARKSTORED
,
ram_reclaim
from
._bigfile
import
BigFile
,
WRITEOUT_STORE
,
WRITEOUT_MARKSTORED
,
ram_reclaim
setup.py
View file @
72308431
...
@@ -29,6 +29,7 @@ import os
...
@@ -29,6 +29,7 @@ import os
import
sys
import
sys
"""
libvirtmem = DSO('wendelin.bigfile.libvirtmem',
libvirtmem = DSO('wendelin.bigfile.libvirtmem',
['bigfile/pagefault.c',
['bigfile/pagefault.c',
'bigfile/pagemap.c',
'bigfile/pagemap.c',
...
@@ -64,18 +65,22 @@ libvirtmem = DSO('wendelin.bigfile.libvirtmem',
...
@@ -64,18 +65,22 @@ libvirtmem = DSO('wendelin.bigfile.libvirtmem',
'-Wl,--no-undefined', # check DSO for undefined symbols at link time
'-Wl,--no-undefined', # check DSO for undefined symbols at link time
]
]
)
)
"""
_bigfile
=
Extension
(
'wendelin.bigfile._bigfile'
,
#_bigfile = Extension('wendelin.bigfile._bigfile',
_bigfile
=
PyGoExt
(
'wendelin.bigfile._bigfile'
,
sources
=
[
sources
=
[
'bigfile/_bigfile.c'
,
'bigfile/_bigfile.c'
,
#'bigfile/pagefault.c',
#'bigfile/pagemap.c',
# TODO split -> libvirtmem
#'bigfile/ram.c',
'bigfile/pagefault.c'
,
#'bigfile/ram_shmfs.c',
'bigfile/pagemap.c'
,
#'bigfile/ram_hugetlbfs.c',
'bigfile/ram.c'
,
#'bigfile/virtmem.c',
'bigfile/ram_shmfs.c'
,
#'lib/bug.c',
'bigfile/ram_hugetlbfs.c'
,
#'lib/utils.c',
'bigfile/virtmem.c'
,
'lib/bug.c'
,
'lib/utils.c'
,
],
],
include_dirs
=
[
include_dirs
=
[
'./include'
,
'./include'
,
...
@@ -105,7 +110,7 @@ _bigfile = Extension('wendelin.bigfile._bigfile',
...
@@ -105,7 +110,7 @@ _bigfile = Extension('wendelin.bigfile._bigfile',
# '-Wl,--no-undefined', # check DSO for undefined symbols at link time
# '-Wl,--no-undefined', # check DSO for undefined symbols at link time
#]
#]
dsos
=
[
'wendelin.bigfile.libvirtmem'
],
#
dsos = ['wendelin.bigfile.libvirtmem'],
)
)
...
@@ -268,7 +273,7 @@ setup(
...
@@ -268,7 +273,7 @@ setup(
keywords
=
'bigdata out-of-core numpy virtual-memory'
,
keywords
=
'bigdata out-of-core numpy virtual-memory'
,
x_dsos
=
[
libvirtmem
],
#
x_dsos = [libvirtmem],
ext_modules
=
[
ext_modules
=
[
_bigfile
,
_bigfile
,
...
...
wcfs/internal/wcfs_virtmem.cpp
View file @
72308431
...
@@ -229,8 +229,8 @@ void _Conn::_pin1(PinReq *req) {
...
@@ -229,8 +229,8 @@ void _Conn::_pin1(PinReq *req) {
//trace("\tremmapblk %d @%s" % (req->blk, (h(req.at) if req.at else "head")))
//trace("\tremmapblk %d @%s" % (req->blk, (h(req.at) if req.at else "head")))
// check if virtmem did not dirtied page corresponding to this block already
// check if virtmem did not dirtied page corresponding to this block already
// XXX reenable (link to libbigfile dso)
// XXX reenable (link to libbigfile dso)
virt_lock
();
#if 0
#if 0
virt_lock();
TODO (mmap->file->blksize != mmap->fileh->ramh->ram->pagesize);
TODO (mmap->file->blksize != mmap->fileh->ramh->ram->pagesize);
if (!__fileh_page_isdirty(mmap->fileh, req->blk)) {
if (!__fileh_page_isdirty(mmap->fileh, req->blk)) {
#endif
#endif
...
...
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