From owner-freebsd-multimedia@freebsd.org Mon Mar 6 11:41:38 2017 Return-Path: Delivered-To: freebsd-multimedia@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 377CDCFBFE9 for ; Mon, 6 Mar 2017 11:41:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 F05C6132F for ; Mon, 6 Mar 2017 11:41:37 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0D05F1FE086; Mon, 6 Mar 2017 12:41:06 +0100 (CET) Subject: Re: What is wrong with FreeBSD and USB Support To: Markus Rechberger References: <1aff0983-deb6-2884-472c-bb1e1037275c@selasky.org> <9fe561d0-3d8b-8725-98d4-37c2eb094ae9@selasky.org> Cc: freebsd-multimedia@freebsd.org From: Hans Petter Selasky Message-ID: Date: Mon, 6 Mar 2017 12:40:48 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 11:41:38 -0000 Hi, On 03/06/17 12:36, Markus Rechberger wrote: > libusb20 - usb userspace interface - usb - roundtrip problem that > causes this high latency. If you are using an old FreeBSD kernel, more than two years old, there was an issue where malloc() was used in the generic IOCTL path. This piece has in later versions of FreeBSD been replace with a conditional on-stack buffer. If you have this issue you should see high CPU usage on one of the CPU cores while doing USB transfers fast. --HPS