Skip to content
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

switch cosmic-swingset to use LMDB for kernel storage #899

Closed
warner opened this issue Apr 9, 2020 · 0 comments · Fixed by #900
Closed

switch cosmic-swingset to use LMDB for kernel storage #899

warner opened this issue Apr 9, 2020 · 0 comments · Fixed by #900
Labels
cosmic-swingset package: cosmic-swingset

Comments

@warner
Copy link
Member

warner commented Apr 9, 2020

We've made progress on #513 to move kernel state out of RAM and into a disk-based database. But it looks like we haven't deployed that into cosmic-swingset yet:

import { openSwingStore } from '@agoric/swing-store-simple';

Thanks to @FUDCo 's hard work, the fix should be as simple as changing that line to import from @agoric/swing-store-lmdb (and updating package.json to depend upon it)

The same needs to be done for ag-solo, in lib/ag-solo/reset-state.js and lib/ag-solo/start.js.

@warner warner added the cosmic-swingset package: cosmic-swingset label Apr 9, 2020
warner added a commit that referenced this issue Apr 9, 2020
We were still using swing-store-simple, which keeps the kernel state in
RAM. This is serialized to disk at the end of each block.

This switches it to our nice shiny swing-store-lmdb, which keeps the state on
disk at all times, only reading one key at a time into RAM.

closes #899
warner added a commit that referenced this issue Apr 9, 2020
We were still using swing-store-simple, which keeps the kernel state in
RAM. This is serialized to disk at the end of each block.

This switches it to our nice shiny swing-store-lmdb, which keeps the state on
disk at all times, only reading one key at a time into RAM.

closes #899
warner added a commit that referenced this issue Apr 9, 2020
We were still using swing-store-simple, which keeps the kernel state in
RAM. This is serialized to disk at the end of each block.

This switches it to our nice shiny swing-store-lmdb, which keeps the state on
disk at all times, only reading one key at a time into RAM.

closes #899
@warner warner closed this as completed in da0613a Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant