From owner-freebsd-drivers@freebsd.org Tue Feb 16 04:43:23 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 746A6AA9E96; Tue, 16 Feb 2016 04:43:23 +0000 (UTC) (envelope-from dvrao.584@gmail.com) Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) (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 3BB291994; Tue, 16 Feb 2016 04:43:23 +0000 (UTC) (envelope-from dvrao.584@gmail.com) Received: by mail-ob0-x232.google.com with SMTP id wb13so242239183obb.1; Mon, 15 Feb 2016 20:43:23 -0800 (PST) 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 :cc:content-type; bh=UkD4P7LBi5ou9kX6vQ1BlESphNA2rSQjlJKiJRdlB1Y=; b=fbhidiGlgtZMjUTqwwChuiou/h6njSxZ+cTqENe0WmEybesjBzpzSr07228c769LgD s6/iflmZSXGYO4oISuum4i87nJVmi0MwYrWoiVVFaHGQ9aOan8Ir+21HXtNmngu3UNjE IJZTMdrH/fYlpR0JmBIsW4SycveBhGaFEti9RrRYSa35HZmXTrnjlMJvX0zEGhzjguNl wuVOY1LHOVWHWOiNu2UkIWYt4CjcC06P/BXjwiaVZMY60JEmrUwkiVOPtTyLwgJITxV+ s6K3O8Ch4mBXxBZQ0RHjtI4/upt6XgL40FoOEgLXXnVJ9kOCDMCP1ndkKwuG3bIKfhNo I3dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UkD4P7LBi5ou9kX6vQ1BlESphNA2rSQjlJKiJRdlB1Y=; b=GSr2/lEe4Q8XkTyTgjrx770OpfRlzHVva4No7fjnr8+iia+lGnQOml4xfxy7EbnVP4 4tjSmjZK4FPFPvT2DMIGXSH+wTCL9eUhhNK/gkJruqNP02P5kKKyHPXl/oafxHkpyqBE sk5Ca4SsCfXNTXHT/yJuT/SLPWPCE8HDRKjXveosRiPffPtKGb8LKIc4eZCW8ADnQEIZ zkgD/bgwspz84UgVhMuZ/FK/9oLx0fKaa8GARGVCMF30yrqyN+rIvG5csfuwmLJ2L1/F 5Ylha93VeH2Orpli9Dbn3g/4gvVRe9SzHH17UfOCSNDa114sNttOQa5F6z/JnZ0Ch1ZB 5kiw== X-Gm-Message-State: AG10YOQfN6SqNAvmgi42cyhbWrFsKhyyIjYjkkXtes8p53FLE+BsvaXN7RGJ7eQunTgcXjnQijBzOgXRXuyXJw== MIME-Version: 1.0 X-Received: by 10.60.62.243 with SMTP id b19mr15345965oes.28.1455597802288; Mon, 15 Feb 2016 20:43:22 -0800 (PST) Received: by 10.60.96.3 with HTTP; Mon, 15 Feb 2016 20:43:22 -0800 (PST) In-Reply-To: <686449bd2840e86a391cc6f4771c3403@mam.nameserver.sk> References: <686449bd2840e86a391cc6f4771c3403@mam.nameserver.sk> Date: Tue, 16 Feb 2016 10:13:22 +0530 Message-ID: Subject: Re: SCP issue on FreeBSD From: Venkateswara Rao Dokku To: Juraj Bocinec Cc: freebsd-drivers@freebsd.org, owner-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, 16 Feb 2016 04:43:23 -0000 I dont think that is causing the problem. I have the send/receive buffers equal on my system. On Wed, Feb 10, 2016 at 12:41 AM, Juraj Bocinec wrote: > 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. >> > > -- Thanks & Regards, Venkateswara Rao Dokku.