shadowsocks-rust icon indicating copy to clipboard operation
shadowsocks-rust copied to clipboard

Is it possible to reduce memory requirement?

Open Nyarukocqc opened this issue 4 years ago • 5 comments
trafficstars

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?

Nyarukocqc avatar Aug 30 '21 13:08 Nyarukocqc

https://github.com/shadowsocks/shadowsocks-rust/issues/600#issuecomment-907082339

DuckSoft avatar Aug 30 '21 13:08 DuckSoft

@Nyarukocqc You can also try -j1

zonyitoo avatar Aug 30 '21 13:08 zonyitoo

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...

Klaaktu avatar Aug 31 '21 08:08 Klaaktu

Yes, of course.

zonyitoo avatar Aug 31 '21 08:08 zonyitoo

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

spyophobia avatar Nov 05 '21 16:11 spyophobia