viktorleis / vmcache Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I am currently working on huge pages support for vmcache and during this process I noticed that too many pages get allocated when using 2MB pages.
The changes I did:
pageSize
from 4096
to 2097152
MAP_HUGETLB | MAP_HUGE_2MB
in the mmap flags in the non-exmap case (I currently only try to get huge pages working outside of exmap)BTreeNodeHeader
, BTreeNode
and BTree
from u16
to u32
to avoid overflows when addressing in the full 2MB rangevirtAllocSize
from 1ul << 16
to max(pageSize, 1ul << 16)
to align the mmap
allocation size to the page sizemadvice
call for virtMem
was made conditional depending on pageSize
being 4096
to avoid it when using huge pagesHow I ran vmcache:
THREADS=1
DATASIZE=1
VIRTGB=6
PHYSGB=4
BLOCK
pointing to a 16GB filesysctl
The problem symptoms:
VIRTGB too low
BTreeNode::mergeNodes
never gets calledBTree::trySplit
Does anyone have an idea for what the cause could be? Apart from the indices and sizes the implementation looks generic over the page size to me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.