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

バッファーサイズを1024から4096へ変更する #16

Merged
merged 2 commits into from Feb 26, 2018

Conversation

pyama86
Copy link
Collaborator

@pyama86 pyama86 commented Feb 26, 2018

このPRを取り込むと、レスポンスを受け取るバッファが1024バイトから4096バイトへ変更されます。この変更により、手元の環境においては4倍程度のメモリ削減改善が見られました。

4096の根拠としては、mruby-ioのBUF_SIZEが4096であること、昨今のLinuxのカーネルパラメーターのデフォルト値に合わせました。

# cat /proc/sys/net/ipv4/tcp_rmem
4096    87380   6291456

@matsumotory matsumotory merged commit ae6c75e into master Feb 26, 2018
@matsumotory
Copy link
Owner

Thanks!

matsumotory added a commit that referenced this pull request Feb 26, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants