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

Is it possible to reduce memory requirement? #608

Open
Nyarukocqc opened this issue Aug 30, 2021 · 5 comments
Open

Is it possible to reduce memory requirement? #608

Nyarukocqc opened this issue Aug 30, 2021 · 5 comments

Comments

@Nyarukocqc
Copy link

Probably most servers running shadowsocks have only 1 GiB memory,But compiling shadowsocks-rust require 2 GiB.

pre-built binaries works fine,but can't use optional features(please correct me if i am wrong).

Can memory requirements be reduced so we can build it from small VPS?

@DuckSoft
Copy link
Contributor

#600 (comment)

@zonyitoo
Copy link
Collaborator

@Nyarukocqc You can also try -j1

@Klaaktu
Copy link

Klaaktu commented Aug 31, 2021

Does --bin ssserver require less RAM when compiling? I compiled successfully several times with that option on a 1GB instance.
EDIT: Now that I routinely compile ssserver on the instance, I see it often fails on the first try (if not just rebooted), but a retry always works for some reason...

@zonyitoo
Copy link
Collaborator

Yes, of course.

@spyophobia
Copy link
Contributor

cargo +nightly install shadowsock-rust --bin ssserver
On my box it even compiles with just 512M RAM and 1G swap 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants