You are not logged in.

#1 2014-10-13 21:29:27

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Nginx slow transfers over LAN

I have a nginx server set up on my desktop and multiple clients on the same network (they are all on the same 900 MB WiFi connection). On the server is a file of a few gigabytes that the clients can download.

On the server, if I wget localhost/filename, I get speeds around 850 MB/s (this is on a SSD with about 500 MB read and write). If, on the server, I wget 192.168.1.x/filename, I still get around 850 MB/s. However, if I wget 192.168.1.x/filename on one of the clients, I get speeds between 3-7 MB/s (close to my Internet upload speed of 5 MB/s). What can be causing this?

The config for the virtual host I am using is

listen 80;
server_name ...;
include conf/gzip.conf;
location /
{
    root /srv/http;
    index index.html;
}

This is my main config file:

user http;
worker_processes 6;
worker_rlimit_nofile 100000;
error_log logs/error.log crit;

################################################################################
events {
	worker_connections 1024;
	use epoll;
	multi_accept on;
}

################################################################################
http {
	include mime.types;
	default_type text/html;
	charset UTF-8;

	log_format main '$remote_addr - $remote_user [$time_local] "$request" '
					 '$status $body_bytes_sent "$http_referer" '
					 '"$http_user_agent" "$http_x_forwarded_for"';
	#access_log logs/access.log main buffer=16k;

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 20;
	keepalive_requests 100;
	client_header_timeout 20;
	client_body_timeout 20;
	reset_timedout_connection on;
	send_timeout 5;
	server_tokens off;
	gzip off;

	include conf/main_vhost_config.conf;
}

Last edited by subraizada3 (2014-10-13 21:31:31)

Offline

#2 2014-10-19 09:01:52

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Nginx slow transfers over LAN

I don't think this is related to nginx; it's simply your wifi connection which isn't good. Have a look at https://www.archlinux.org/packages/comm … _64/iperf/ to confirm this suspicion.

Offline

#3 2014-10-19 15:34:39

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: Nginx slow transfers over LAN

I took a better look at this yesterday, but didn't update the post as that may have been considered necrobumping. scp and sftp also give me the same speeds.

Iperf gives me an average of around 5-30 Mbits/s. Right now I just got 10, often I get around 24, once it went all the way to 27.

Offline

Board footer

Powered by FluxBB