diff options
author | Jakob Unterwurzacher | 2017-07-29 17:12:32 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-07-29 17:17:12 +0200 |
commit | 86253b75670172fda6b481848cd63ca5685f112d (patch) | |
tree | f6f9d6259bb809d566ff205783091e3640eda22f /golint.bash | |
parent | d12aa577156101a1c6a05765de751f0a54b58aa8 (diff) |
main: doMount: call FreeOSMemory() before jumping into server loop
scrypt (used during masterkey decryption) allocates a lot of memory.
Go only returns memory to the OS after 5 minutes, which looks like
a waste. Call FreeOSMemory() to return it immediately.
Looking a fresh mount:
before: VmRSS: 73556 kB
after: VmRSS: 8568 kB
Diffstat (limited to 'golint.bash')
0 files changed, 0 insertions, 0 deletions