From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 72AAF1381F3 for ; Mon, 26 Aug 2013 06:25:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A4FBE0B0F; Mon, 26 Aug 2013 06:25:13 +0000 (UTC) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 60889E0ABD for ; Mon, 26 Aug 2013 06:25:12 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t61so2396107wes.0 for ; Sun, 25 Aug 2013 23:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LDJlvAufcyx8Ld7GJXPIsxNrxtYu++6kAM74fdZKmFA=; b=y6uzVzZQMlNb7g3mZDtl869LknekjbYy2/0fNFSShm/TN821uObRtrE/+JJ+w/lFlJ BVn1z6A3tTOxKAh9asfpLltPnW5xBODmiG2tEk6JSo4z+ULqvMObK5tk+GPf6HlhuLVN RSdznaD06FH8lRNlXNbE+5VZMWFRf7GV9fxPm9ahTjt+g3QuGosS5PVyCM+zRiGm3O7k klz3/5jaSIfrbKvOxRuirNRInq20Z8XKookdQ9AkNR015Cb/6K7NjKUMoKkXkFkbtcPb R9j/K0n6OINr3AlZpNLbqPPzuvQJj9H7Kur2wTeJpLG1bz5HtyiugvSRAeiUGCitXE6o KgPQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.194.250.6 with SMTP id yy6mr8687330wjc.13.1377498311056; Sun, 25 Aug 2013 23:25:11 -0700 (PDT) Received: by 10.194.93.199 with HTTP; Sun, 25 Aug 2013 23:25:11 -0700 (PDT) In-Reply-To: References: <201308241825.15336.michaelkintzios@gmail.com> <201308251217.14502.michaelkintzios@gmail.com> Date: Sun, 25 Aug 2013 23:25:11 -0700 Message-ID: Subject: Re: [gentoo-user] Proxy server problem From: Grant To: Gentoo mailing list Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 789bf612-e6d2-49e6-961e-48a5fd11b1d3 X-Archives-Hash: 4f503cdb14c7f9020742f4f57d6b5bcc >> >> >> >> I set up squid on a remote system so I can browse the internet >> >> >> >> from >> >> >> >> that IP address. It works but it stalls frequently. I had >> >> >> >> similar >> >> >> >> results with ziproxy. I went over this with the squid list but >> >> >> >> we >> >> >> >> got nowhere as it seems to be some kind of a system or network >> >> >> >> problem. >> >> >> >> >> >> >> >> >> >> >> >> http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-3-3-5-hangs-> >> >> >> >> >> >> the -en tire-system-td4660893.html >> >> >> >> >> >> >> >> Can anyone here help me figure out what is wrong? I'm not sure >> >> >> >> where >> >> >> >> to start. >> > >> > Is this stalling problem happening when you just browse the internet, >> > visiting >> > websites, or do you get it when you are downloading large files such as >> > videos, or music? If it is the former, then I am not sure what causes >> > it. If >> > it is the latter, then this may be relevant to http timeout settings. >> >> Actually it happens when I'm just browsing the internet. How can a >> problem of this nature be debugged? >> >> - Grant >> > > After reading your description on the squid mailing list, I'm suspicious > that you might've run out of TCP buffers. > > Please post the results of: > > sysctl -A | egrep "(mem)|(tcp)" Hi Pandu, thank you for having a look. These commands were run during a stall. Proxy Server: # sysctl -A | egrep "(mem)|(tcp)" fs.nfs.nlm_tcpport = 0 net.core.optmem_max = 20480 net.core.rmem_default = 212992 net.core.rmem_max = 212992 net.core.wmem_default = 212992 net.core.wmem_max = 212992 net.ipv4.igmp_max_memberships = 20 net.ipv4.tcp_abort_on_overflow = 0 net.ipv4.tcp_adv_win_scale = 1 net.ipv4.tcp_allowed_congestion_control = cubic reno net.ipv4.tcp_app_win = 31 net.ipv4.tcp_available_congestion_control = cubic reno net.ipv4.tcp_base_mss = 512 net.ipv4.tcp_challenge_ack_limit = 100 net.ipv4.tcp_congestion_control = cubic net.ipv4.tcp_cookie_size = 0 net.ipv4.tcp_dsack = 1 net.ipv4.tcp_early_retrans = 2 net.ipv4.tcp_ecn = 2 net.ipv4.tcp_fack = 1 net.ipv4.tcp_fastopen = 0 net.ipv4.tcp_fastopen_key = ad627831-f01340bb-a649b04d-35ba63cd net.ipv4.tcp_fin_timeout = 60 net.ipv4.tcp_frto = 2 net.ipv4.tcp_frto_response = 0 net.ipv4.tcp_keepalive_intvl = 75 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_time = 7200 net.ipv4.tcp_limit_output_bytes = 131072 net.ipv4.tcp_low_latency = 0 net.ipv4.tcp_max_orphans = 8192 net.ipv4.tcp_max_ssthresh = 0 net.ipv4.tcp_max_syn_backlog = 128 net.ipv4.tcp_max_tw_buckets = 8192 net.ipv4.tcp_mem = 46323 61766 92646 net.ipv4.tcp_moderate_rcvbuf = 1 net.ipv4.tcp_mtu_probing = 0 net.ipv4.tcp_no_metrics_save = 0 net.ipv4.tcp_orphan_retries = 0 net.ipv4.tcp_reordering = 3 net.ipv4.tcp_retrans_collapse = 1 net.ipv4.tcp_retries1 = 3 net.ipv4.tcp_retries2 = 15 net.ipv4.tcp_rfc1337 = 0 net.ipv4.tcp_rmem = 4096 87380 6291456 net.ipv4.tcp_sack = 1 net.ipv4.tcp_slow_start_after_idle = 1 net.ipv4.tcp_stdurg = 0 net.ipv4.tcp_syn_retries = 6 net.ipv4.tcp_synack_retries = 5 net.ipv4.tcp_thin_dupack = 0 net.ipv4.tcp_thin_linear_timeouts = 0 net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_tso_win_divisor = 3 net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_tw_reuse = 0 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_wmem = 4096 16384 4194304 net.ipv4.tcp_workaround_signed_windows = 0 net.ipv4.udp_mem = 46521 62030 93042 net.ipv4.udp_rmem_min = 4096 net.ipv4.udp_wmem_min = 4096 net.netfilter.nf_conntrack_tcp_be_liberal = 0 net.netfilter.nf_conntrack_tcp_loose = 1 net.netfilter.nf_conntrack_tcp_max_retrans = 3 net.netfilter.nf_conntrack_tcp_timeout_close = 10 net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60 net.netfilter.nf_conntrack_tcp_timeout_established = 432000 net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 120 net.netfilter.nf_conntrack_tcp_timeout_last_ack = 30 net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 300 net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 60 net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 120 net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120 net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 300 vm.lowmem_reserve_ratio = 256 256 32 vm.overcommit_memory = 0 Client: # sysctl -A | egrep "(mem)|(tcp)" fs.nfs.nfs_callback_tcpport = 0 fs.nfs.nlm_tcpport = 0 net.core.optmem_max = 20480 net.core.rmem_default = 212992 net.core.rmem_max = 212992 net.core.wmem_default = 212992 net.core.wmem_max = 212992 net.ipv4.igmp_max_memberships = 20 net.ipv4.tcp_abort_on_overflow = 0 net.ipv4.tcp_adv_win_scale = 1 net.ipv4.tcp_allowed_congestion_control = cubic reno net.ipv4.tcp_app_win = 31 net.ipv4.tcp_available_congestion_control = cubic reno net.ipv4.tcp_base_mss = 512 net.ipv4.tcp_challenge_ack_limit = 100 net.ipv4.tcp_congestion_control = cubic net.ipv4.tcp_dsack = 1 net.ipv4.tcp_early_retrans = 3 net.ipv4.tcp_ecn = 2 net.ipv4.tcp_fack = 1 net.ipv4.tcp_fastopen = 0 net.ipv4.tcp_fastopen_key = af77bb2f-38636dab-7fd80263-df37cea3 net.ipv4.tcp_fin_timeout = 60 net.ipv4.tcp_frto = 2 net.ipv4.tcp_keepalive_intvl = 75 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_time = 7200 net.ipv4.tcp_limit_output_bytes = 131072 net.ipv4.tcp_low_latency = 0 net.ipv4.tcp_max_orphans = 16384 net.ipv4.tcp_max_ssthresh = 0 net.ipv4.tcp_max_syn_backlog = 128 net.ipv4.tcp_max_tw_buckets = 16384 net.ipv4.tcp_mem = 78105 104140 156210 net.ipv4.tcp_moderate_rcvbuf = 1 net.ipv4.tcp_mtu_probing = 0 net.ipv4.tcp_no_metrics_save = 0 net.ipv4.tcp_orphan_retries = 0 net.ipv4.tcp_reordering = 3 net.ipv4.tcp_retrans_collapse = 1 net.ipv4.tcp_retries1 = 3 net.ipv4.tcp_retries2 = 15 net.ipv4.tcp_rfc1337 = 0 net.ipv4.tcp_rmem = 4096 87380 6291456 net.ipv4.tcp_sack = 1 net.ipv4.tcp_slow_start_after_idle = 1 net.ipv4.tcp_stdurg = 0 net.ipv4.tcp_syn_retries = 6 net.ipv4.tcp_synack_retries = 5 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_thin_dupack = 0 net.ipv4.tcp_thin_linear_timeouts = 0 net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_tso_win_divisor = 3 net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_tw_reuse = 0 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_wmem = 4096 16384 4194304 net.ipv4.tcp_workaround_signed_windows = 0 net.ipv4.udp_mem = 78360 104483 156720 net.ipv4.udp_rmem_min = 4096 net.ipv4.udp_wmem_min = 4096 net.netfilter.nf_conntrack_tcp_be_liberal = 0 net.netfilter.nf_conntrack_tcp_loose = 1 net.netfilter.nf_conntrack_tcp_max_retrans = 3 net.netfilter.nf_conntrack_tcp_timeout_close = 10 net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60 net.netfilter.nf_conntrack_tcp_timeout_established = 432000 net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 120 net.netfilter.nf_conntrack_tcp_timeout_last_ack = 30 net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 300 net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 60 net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 120 net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120 net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 300 vm.lowmem_reserve_ratio = 256 256 32 vm.overcommit_memory = 0 - Grant