From owner-freebsd-multimedia@freebsd.org Mon Mar 6 11:42:52 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 8DA43CFB02A for ; Mon, 6 Mar 2017 11:42:52 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (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 470691465 for ; Mon, 6 Mar 2017 11:42:52 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: by mail-qk0-x236.google.com with SMTP id 1so148406336qkl.3 for ; Mon, 06 Mar 2017 03:42:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ITSlQTEUAHxiGIh09LkSU2D/vbDkkrg2HrOZmLbjUpY=; b=qaSVLanV1n1ndASEbHOW57+o0vAyPcl08D2H3O+Cc+fjG90bziYTz9XkN5nI9QZwdU FjEvqU0xIoJejxMnDTkvVRY1pFuV4p9WcGAboRQwYaW2QladoeIKlQSPByQiU267QGrr k4rslZT8AxLrCWWPb99OXZ8klswTcObNSypSRYGgDiJL5Yozb+SrwE8STcO5v6jBxBxu uDEpDbZ75n0xHfeqUUNc9mJBBiug/KjnNNtsWV3YKH9uL4dpoHZ52k0WBC8ZHXEhDZg9 D6v6V5ZfMpCPYhWnDAd2Dsqp2kukVTlOqnGKlWUfFL7d5g+v9Z51sBUgS8orOODLEvQz bCZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ITSlQTEUAHxiGIh09LkSU2D/vbDkkrg2HrOZmLbjUpY=; b=XWp59uenqfPS/vpuSzwqLKwplqpUE541v9uLEpBYH6TKi5kLCQHZ9C4zaMaMyj0/Rf U0bwszdxsGNcmAByd3QewxI+Rtoo0spOupHnv1tNP8Inzdejb6uINTKntXP7XdVo+DzW spjfiW15pos+7eLs51TvQ2quZvTE6yGoG96zLG4s1kUtQTZYsnMe+l1CVbkXsDlZa2+/ E6m0tTgq9YdwzleDw1bLJbX547cY6iiFS25UJ3TlKyg+bvufXfNR3AFU47xiHPEVWah3 7MvYE2roT0WNHB+jEZI4a7ejVACjzeqTFG66ovic/MWJYMYdcSJY/9Zu4L2tOWcV/+Su GIlQ== X-Gm-Message-State: AMke39kCEdv3u5r89DC5njQ8mn9+eN+Gvxmcrmh9qIccoe3nlKMeayzlDYod4HyJSr8lLE5npO52AmmEGfSTuQ== X-Received: by 10.237.41.229 with SMTP id o92mr14502776qtd.223.1488800571434; Mon, 06 Mar 2017 03:42:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.174.114 with HTTP; Mon, 6 Mar 2017 03:42:50 -0800 (PST) In-Reply-To: References: <1aff0983-deb6-2884-472c-bb1e1037275c@selasky.org> <9fe561d0-3d8b-8725-98d4-37c2eb094ae9@selasky.org> From: Markus Rechberger Date: Mon, 6 Mar 2017 12:42:50 +0100 Message-ID: Subject: Re: What is wrong with FreeBSD and USB Support To: Hans Petter Selasky Cc: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=UTF-8 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:42:52 -0000 On Mon, Mar 6, 2017 at 12:40 PM, Hans Petter Selasky wrote: > 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. > I'm using FreeBSD 11 the latest one.