From owner-freebsd-usb@FreeBSD.ORG Fri Nov 7 18:50:48 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5181FE24 for ; Fri, 7 Nov 2014 18:50:48 +0000 (UTC) Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [IPv6:2607:f8b0:400d:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 09874CE6 for ; Fri, 7 Nov 2014 18:50:48 +0000 (UTC) Received: by mail-qc0-f174.google.com with SMTP id r5so2975402qcx.33 for ; Fri, 07 Nov 2014 10:50:47 -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=Ble2kmUz5TFiUZRJU5tZ6xgiQNvAbbcwmWAbcpi2CgA=; b=rG4T9SxJxAX7Ayj+5x2D9bRJnXMqkaO/osfnZBu/Pr9ze2QDbnB5a9sbxrSdh7TB/T mlU1+W7u37eB+mqv+lpT0lqj2G7nNunLSK+DQyrK5GJxGmQEoUQghottbXNVx8JOBcuZ e0eucMOOGz7ZqEpUVxI6EA0uqlP63Ji6LFtUWXMqnOR2OWCYLiPpcYCifoddTkZua/HA vuU1f34zQmn98Nc5ymvNY+EvTeCsU4dtqcdh2jvGhkmjIaqjLvrCAMp122g7rC7kVYkM LwEiOJC/jOJ8bPbKES23BLqLKmSaZEeN8VA+NXFUKCzW4xd8I93CkOfNIfBi1UqTlXVx y3Yg== MIME-Version: 1.0 X-Received: by 10.140.107.37 with SMTP id g34mr18995449qgf.38.1415386247179; Fri, 07 Nov 2014 10:50:47 -0800 (PST) Received: by 10.96.169.229 with HTTP; Fri, 7 Nov 2014 10:50:47 -0800 (PST) In-Reply-To: <545CC39E.4020504@selasky.org> References: <545CC39E.4020504@selasky.org> Date: Fri, 7 Nov 2014 19:50:47 +0100 Message-ID: Subject: Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB From: Aurelien Martin <01aurelien@gmail.com> To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 18:50:48 -0000 Hello, The drive is healthy (SMART OK) I played with hw.usb.umass.throttle, with value 10 and 100. It slow down the USB transfert and decresase the %system load ~10%. But I kept the normal value (0), the system succeed to dd 10GB to the USB drive without crashing If it reoccur I'll rebuild a kernel with USB_DEBUG, and this thread will be updated. Thanks for your support Hans. Cheers,Aurelien 2014-11-07 14:05 GMT+01:00 Hans Petter Selasky : > Hi, > > If you set: > > hw.usb.umass.throttle=xxx > > Then it might have the same effect! > > Needs "options USB_DEBUG" in the kernel configuration file. > > SYSCTL_INT(_hw_usb_umass, OID_AUTO, throttle, CTLFLAG_RWTUN, > &umass_throttle, 0, "Forced delay between commands in milliseconds"); > > --HPS >