From owner-freebsd-drivers@freebsd.org Tue Feb 9 04:39:53 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E201FAA164A for ; Tue, 9 Feb 2016 04:39:52 +0000 (UTC) (envelope-from dvrao.584@gmail.com) Received: from mail-ob0-x22f.google.com (mail-ob0-x22f.google.com [IPv6:2607:f8b0:4003:c01::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5AECAE0 for ; Tue, 9 Feb 2016 04:39:52 +0000 (UTC) (envelope-from dvrao.584@gmail.com) Received: by mail-ob0-x22f.google.com with SMTP id wb13so178562139obb.1 for ; Mon, 08 Feb 2016 20:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=41tdutElp0LPF9XTTRWnqVzniNmN6Kc3ldiLDNY9RUA=; b=HEJLo6tIcm+y6YytyQ0MlYnullW1d7KL1kCl6rBKvy/DfpHzr1HinmVr5FzJ+/Vi7b LR31UgTkuWpeYAgvDZ+aP+BdrF914kMJObBf9fg1pWdWiDfsE7br7HSQQGvkTBmma69F BTnbXAgjvT02esHvOy/UCKjk3R2kDuLEu1AdGUBwZ4ErFy+NmtbJmjqWyakiYHUZ66nG /f/PDNftPV1IfjFNxFID4Xru1Daipl0eqpdVv3eSvcie6nyvfSADpSykD/69sM+9CgNM pytMfLf+2zyMa4Pw1idtniASwhEkhfO6A2uACKEUZGbv0XpsgR2ezB8yRgufmNyhGtKe druA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=41tdutElp0LPF9XTTRWnqVzniNmN6Kc3ldiLDNY9RUA=; b=dAEHH5PdQUdJvhszBsoGXw8U68lAkLcP5HtONHIKCx6cyC+GBeByVwHv3LZdYxouR6 ErRmkbjlzgsIV4FuldeflyCuXkSFnrDbMxbkOBZEZ2+DC+JOJDq1UQ8rXCtnl88HfPdj j7zpM141kIwK0/qriOYougqCOtOHKpnIvQfJMmp7jr4dsHI4XqIChAvyrwSqV+DrLImL aoHV/2j/ULcaimxlAjJTnS2bjzCIij9DYYVo/DZN4nk7Hz/2g83fgdPfsCSq9OGIXrw5 5cnkXw3b5FPtDcjJdjtjX9r+I1HXHL5KHzQaZeLfwMTHyE8dqZg/AtqsXbfLHmj45kUG 6Evg== X-Gm-Message-State: AG10YOQbNjidJGs+eF5+YHfOGjJ4dURxfHMzZC7UYLsn6TABUhh3fvb9VDGqKRmx51/d5KZdhlAzgRm3UdeK9w== MIME-Version: 1.0 X-Received: by 10.60.46.102 with SMTP id u6mr29568567oem.78.1454992791863; Mon, 08 Feb 2016 20:39:51 -0800 (PST) Received: by 10.60.96.3 with HTTP; Mon, 8 Feb 2016 20:39:51 -0800 (PST) Date: Tue, 9 Feb 2016 10:09:51 +0530 Message-ID: Subject: SCP issue on FreeBSD From: Venkateswara Rao Dokku To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 04:39:53 -0000 Hi, I am using FreeBSD 8.4 as guest on top of the linux (ubuntu 14.10) host. I observed that, the Pushing a file from FreeBSD is giving good performance over Puling a file from other linux box to FreeBSD. root@test:~ # *scp ns-10.5-57.7.gz root@10.102.38.202:/root* root@10.102.38.202's password: ns-10.5-57.7.gz 100% 126MB *63.0MB/s* 00:02 root@test:~ #* scp root@10.102.38.202:/root/ns-10.5-57.7.gz* . root@10.102.38.202's password: ns-10.5-57.7.gz 100% 126MB *11.5MB/s* 00:11 Why there is a difference between these two?. Any tuning needs to be done on the FreeBSD guest to get these two almost same? To see, whether its specific to FreeBSD I did the same experiment with Linux(Ubuntu 14.10) as guest on top of Linux(same host as above). Here the output is almost same. root@ubuntu:~# *scp root@10.102.38.202:/root/ns-11.1-14.4.gz .* root@10.102.38.202's password: ns-11.1-14.4.gz 100% 130MB *64.8MB/s* 00:02 root@ubuntu:~# *scp ns-11.1-14.4.gz root@10.102.38.202:/roo*t root@10.102.38.202's password: ns-11.1-14.4.gz 100% 130MB *64.8MB/s* 00:02 Moreover, in most cases Linux performance is better than FreeBSD. Is Ubuntu gives good performance when compared to FreeBSD? Any help is much appreciated. Thanks. -- Thanks & Regards, Venkateswara Rao Dokku. From owner-freebsd-drivers@freebsd.org Tue Feb 9 19:50:18 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1274EAA2392; Tue, 9 Feb 2016 19:50:18 +0000 (UTC) (envelope-from juraj.bocinec@lain.sk) Received: from mam.nameserver.sk (mam.nameserver.sk [217.67.30.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC8B0E4C; Tue, 9 Feb 2016 19:50:17 +0000 (UTC) (envelope-from juraj.bocinec@lain.sk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lain.sk; s=default; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=GBDCIF242P3MBzGDQuC4khjtw9qSYfHD+KsS4m5NttQ=; b=Z+O4WaNIPLkZUmTeRH/pEeUmM7peb/hb2EKV4KTXBNSQPm4os8qUAFVbg0JV47U56gDXlbsLoROkPW+vClxKTSBcSKwFqAXejgsknE4CibwzkhBtsprCB21bS/tyI1VcWOfcHTutMlotq5RyWBz7xcmSB2o44gYOQS398ICT2gU=; Received: from [217.67.30.123] (helo=mam.roundcube.sk) by mam.nameserver.sk with esmtpa (Exim 4.85 (FreeBSD)) (envelope-from ) id 1aTDh0-0003bM-Oe; Tue, 09 Feb 2016 20:11:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 09 Feb 2016 20:11:16 +0100 From: Juraj Bocinec To: Venkateswara Rao Dokku Cc: freebsd-drivers@freebsd.org, owner-freebsd-drivers@freebsd.org Subject: Re: SCP issue on FreeBSD In-Reply-To: References: Message-ID: <686449bd2840e86a391cc6f4771c3403@mam.nameserver.sk> X-Sender: juraj.bocinec@lain.sk User-Agent: Roundcube Webmail/0.8.1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 19:50:18 -0000 Greetings, i'm no expert but doesn't this have to do something with network send/receive buffers? They're not set the same by default: [root@schizo /etc]# sysctl -a|grep send kern.cam.ada.ada_send_ordered: 1 kern.cam.da.da_send_ordered: 1 net.local.stream.sendspace: 8192 net.inet.ip.sendsourcequench: 0 net.inet.igmp.sendlocal: 1 net.inet.igmp.sendra: 1 net.inet.tcp.sendspace: 32768 net.inet.tcp.sendbuf_max: 262144 net.inet.tcp.sendbuf_inc: 8192 net.inet.tcp.sendbuf_auto: 1 net.inet.sctp.sendspace: 233016 net.raw.sendspace: 8192 [root@schizo /etc]# sysctl -a|grep recv net.local.stream.recvspace: 8192 net.local.dgram.recvspace: 4096 net.inet.igmp.recvifkludge: 1 net.inet.tcp.recvspace: 65536 net.inet.tcp.recvbuf_max: 262144 net.inet.tcp.recvbuf_inc: 16384 net.inet.tcp.recvbuf_auto: 1 net.inet.udp.recvspace: 42080 net.inet.sctp.recvspace: 233016 net.inet.raw.recvspace: 9216 net.raw.recvspace: 8192 Juraj Bocinec On 2016-02-09 05:39, Venkateswara Rao Dokku wrote: > Hi, > > I am using FreeBSD 8.4 as guest on top of the linux (ubuntu 14.10) > host. I > observed that, the Pushing a file from FreeBSD is giving good > performance > over Puling a file from other linux box to FreeBSD. > > root@test:~ # *scp ns-10.5-57.7.gz root@10.102.38.202:/root* > root@10.102.38.202's password: > ns-10.5-57.7.gz > 100% > 126MB *63.0MB/s* 00:02 > root@test:~ #* scp root@10.102.38.202:/root/ns-10.5-57.7.gz* . > root@10.102.38.202's password: > ns-10.5-57.7.gz > 100% > 126MB *11.5MB/s* 00:11 > > Why there is a difference between these two?. Any tuning needs to be > done > on the FreeBSD guest to get these two almost same? > > To see, whether its specific to FreeBSD I did the same experiment with > Linux(Ubuntu 14.10) as guest on top of Linux(same host as above). Here > the > output is almost same. > > root@ubuntu:~# *scp root@10.102.38.202:/root/ns-11.1-14.4.gz .* > root@10.102.38.202's password: > ns-11.1-14.4.gz > 100% > 130MB *64.8MB/s* 00:02 > root@ubuntu:~# *scp ns-11.1-14.4.gz root@10.102.38.202:/roo*t > root@10.102.38.202's password: > ns-11.1-14.4.gz > 100% 130MB *64.8MB/s* 00:02 > > > Moreover, in most cases Linux performance is better than FreeBSD. Is > Ubuntu > gives good performance when compared to FreeBSD? > > Any help is much appreciated. > Thanks.