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

[BUG]: "mremap size mismatch" on arm 32bit #314

Open
decentral1se opened this issue Nov 1, 2022 · 0 comments
Open

[BUG]: "mremap size mismatch" on arm 32bit #314

decentral1se opened this issue Nov 1, 2022 · 0 comments
Labels
kind/bug Something is broken.

Comments

@decentral1se
Copy link

What version of Ristretto are you using?

v0.1.1

What version of Go are you using?

Go 1.18

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

<= 2 GB RAM, <= 2 core CPU, Raspbian ARM 32bit (Orange Pi Zero)

What steps will reproduce the bug?

git clone https://github.com/ssbc/go-ssb
cd go-ssb
go build -tags lite -v ./cmd/go-sbot
./go-sbot # let it run... ctrl-c kill it...
./go-sbot # start it again...

Expected behavior and actual result.

The program runs again just fine. Instead, it bails out with this gnarly ristretto related error below.

Any tips / pointers / additional info to help debugging would be most welcome!

go-sbot: failed to instantiate ssb server: while opening memtables error: while opening fid: 1 error: while updating skiplist error: mremap size mismatch: requested: 20 got: 134217728
go-sbot: failed to instantiate ssb server: During db.vlog.open error: Open existing file: "/home/pihole/.ssb-go/sublogs/shared-badger/000001.vlog" error: while opening file: /home/pihole/.ssb-go/sublogs/shared-badger/000001.vlog error: cannot allocate memory
while mmapping /home/pihole/.ssb-go/sublogs/shared-badger/000001.vlog with size: 2147483646
github.com/dgraph-io/ristretto/z.OpenMmapFileUsing
	/home/pihole/go/pkg/mod/github.com/dgraph-io/[email protected]/z/file.go:59
github.com/dgraph-io/ristretto/z.OpenMmapFile
	/home/pihole/go/pkg/mod/github.com/dgraph-io/[email protected]/z/file.go:86
github.com/dgraph-io/badger/v3.(*logFile).open
	/home/pihole/go/pkg/mod/github.com/dgraph-io/badger/[email protected]/memtable.go:556
github.com/dgraph-io/badger/v3.(*valueLog).open
	/home/pihole/go/pkg/mod/github.com/dgraph-io/badger/[email protected]/value.go:585
github.com/dgraph-io/badger/v3.Open
	/home/pihole/go/pkg/mod/github.com/dgraph-io/badger/[email protected]/db.go:368
github.com/ssbc/go-ssb/repo.OpenBadgerDB
	/home/pihole/ssb/repo/multilogs.go:39
github.com/ssbc/go-ssb/sbot.New
	/home/pihole/ssb/sbot/new.go:294
main.runSbot
	/home/pihole/ssb/cmd/go-sbot/main.go:353
main.main
	/home/pihole/ssb/cmd/go-sbot/main.go:528
runtime.main
	/usr/local/go/src/runtime/proc.go:250
runtime.goexit
	/usr/local/go/src/runtime/asm_arm.s:831

It's unclear to me if ristretto supports arm 32bit from a search around?

Additional information

ssbc/go-ssb#183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Projects
None yet
Development

No branches or pull requests

1 participant