-
Notifications
You must be signed in to change notification settings - Fork 296
topo, funk: change Funk workspace use unlocked pages #5470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
251804a
to
ee73f49
Compare
dc4a7b5
to
1ae013a
Compare
1ae013a
to
f32fb51
Compare
1d18412
to
df87fce
Compare
|
||
/* Create the directory for the normal pages, where the files backing memory-mapped unlocked workspaces can be stored. */ | ||
FD_LOG_NOTICE(( "RUN: `mkdir -p %s`", path )); | ||
if( FD_UNLIKELY( -1==fd_file_util_mkdir_all( path, config->uid, config->gid ) ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get this thing. What is a normalpage configure stage? The 4K page equivalent to hugetlbfs is tmpfs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's for normal on-disk data, wouldn't it make more sense to just have a ledger directory instead? We can temporarily use it for disk-backed funk and then change it later on to be the backing store for the actual DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is it's integrated into the topology system, and expects a "workspace" which we have whole special code paths for, it's a little tricky to just get a workspace to mount in the ledger directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disgusting but fine with me, I suppose it will get reverted
cfc00de
to
3dccb73
Compare
67c867b
to
beb47f5
Compare
beb47f5
to
fffc0c8
Compare
fffc0c8
to
3a726eb
Compare
0dd2afe
to
72d18f3
Compare
72d18f3
to
dac1cae
Compare
This PR changes the Funk workspace to use unlocked, unpinned pages that are not required to be resident in physical memory. This enables running large ledgers on machines with smaller memory.