forked from mikepound/opencubes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CacheReader: Implement cache file reading one Cube at time
- Remove CacheReader XYZ mapping. - Add CubeReadIterator that reads Cubes one at time. - FileShapeRange takes the cache file and offsets into the file - Update CacheReader::loadFile() to initialize array of FileShapeRange from the cache file. Result is celebration hooray for computing N=14 first time with less than 9 GiB of RSS: ```process output shape 99/101 [ 3 5 5] shape 2 5 5 shape 3 4 5 num: 588828 saved ./cache/cubes_14_3-5-5.bin, took 0.01 s process output shape 100/101 [ 4 4 4] shape 3 4 4 shape 4 4 4 num: 3341560 saved ./cache/cubes_14_4-4-4.bin, took 0.11 s process output shape 101/101 [ 4 4 5] shape 3 4 5 shape 4 4 4 num: 752858 saved ./cache/cubes_14_4-4-5.bin, took 0.02 s took 7231.83 s num total cubes: 1039496297``` My nvme disk was not particularly happy with with `output shape 80/101 [ 2 3 4]` that produced an +8 GiB file at end. The disk throttled badly after reaching 60*C... But it did complete eventually at reasonable pace and memory usage dropped below 7 GiB for rest of the run. N=15 will require more tuning to the CubeStorage read-cache and more parallel file system. btrfs looks to be not very good at this job as writing the storage files in parallel reduces the program to near single threaded speed. Signed-off-by: JATothrim <jarmo.tiitto@gmail.com>
- Loading branch information
Showing
2 changed files
with
88 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters