HostOnNet Blog

optimizing lighttpd for file hosting

Looking for Linux Server Admin or WordPress Expert? We can help.

On one of my server, i have 50 Mbps unmetered connection, but maximum bandwidth the server was able to push was 30 Mbps average. After some search i found this is due to i use “linux-sendfile” as This is good for serving small files like image hosting server.

For larger file, you need to set = “writev”

Once this is set, the server is able to push upto 80 Mbps.

MTRG below shows the increase in bandwidth usage after this change.

You can read about optimizing server for large file sharing here.

Posted in File Sharing

3 Responses to optimizing lighttpd for file hosting

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.