From owner-freebsd-multimedia@freebsd.org Fri Aug 19 20:12:23 2016 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 1A90BBBE4AD for ; Fri, 19 Aug 2016 20:12:23 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-yb0-x242.google.com (mail-yb0-x242.google.com [IPv6:2607:f8b0:4002:c09::242]) (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 C9E841F05 for ; Fri, 19 Aug 2016 20:12:22 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-yb0-x242.google.com with SMTP id x37so1629686ybh.2 for ; Fri, 19 Aug 2016 13:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=AH60mrk+MZZMvdQkM/8K8JpJy5kAmQUgsiWEe2ZJRgs=; b=BenBYwjf5T79Pu8N0YQjREIvkQvHaZ3tS2nK6VEtej7DiEEnN5Q5ItiUY0BedNYNtS LgPJVFs3N6bvF2yllFO0k3vvOLDSeIR13hRpaUH9alKcOvcVKup2oT18//Cf8grvSi9f 5LAbYKjFVBmQ1ZVYjpOSlkiqYESFaWTZrKfjY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=AH60mrk+MZZMvdQkM/8K8JpJy5kAmQUgsiWEe2ZJRgs=; b=hrhhOOATN8XxxsHRaB1kZQj9KsFyRozwpOiNnmmdh9ZqGg8d2aUBQOGbMa9ti3iRvP CZPA9XPb+Ev3wtOhSzYNgufH4YFi9y6nnWSKCtlAoRbxiJsVz7h/kysnNw/sXYxH2Gpk xNvHuzj4iHBEVwYcgx14H8+iT6s/bQ6EEumCD9bnIGXKOFGQfTRYM1otofgxPiIDcppe 18A1o5S52BVxoUpa/fed+dC+kyMm1E+Gtx5QEe9tCNgyDqlQkSvz94iH0WKuGl/CZF6h fiRgd8pZkm6kI1+PKAfaYaTcXkR0ojIA+s/Y74EpnWKvUVMZFeuY9ONv7py4Hx9yDdmn w0/A== X-Gm-Message-State: AEkoouubUXDzcGnoY0DgaI0pNZFwwjRx4vTaLsuE7mSfz8iGre3+6H9KyxGkjZjLuZuetw== X-Received: by 10.37.218.73 with SMTP id n70mr3634744ybf.157.1471637541908; Fri, 19 Aug 2016 13:12:21 -0700 (PDT) Received: from [10.50.208.93] ([177.20.152.129]) by smtp.googlemail.com with ESMTPSA id a68sm2321596ywh.44.2016.08.19.13.12.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 13:12:21 -0700 (PDT) Subject: Re: [CFT] New version of webcamd, now v4.8.0.2 To: Hans Petter Selasky , vbox@FreeBSD.org, freebsd-multimedia@freebsd.org References: <308013fd-1eec-eb3b-ca89-146f816803a9@selasky.org> <919ec558-e17c-9698-4d89-6299b4045d17@bsd.com.br> <868feaf1-195b-dac8-b572-d7029a84dfdf@selasky.org> <9f3f6656-bfab-2fe4-8831-f5f3dab9b734@selasky.org> From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: <25db87ef-97d8-8351-a848-528fdc2e84e1@bsd.com.br> Date: Fri, 19 Aug 2016 17:12:17 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <9f3f6656-bfab-2fe4-8831-f5f3dab9b734@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 20:12:23 -0000 Em 19/08/2016 16:53, Hans Petter Selasky escreveu: > On 08/19/16 21:38, Otacílio wrote: >> irq23: ahci0 ohci0+ 36858 56 > > Can you check this IRQ. How much is the counter changing per second. > > It looks like the VM is sharing IRQs. > > You might try to set: > > hw.usb.ohci.debug=16; sleep 1; hw.usb.ohci.debug=0 > > Same for ehci and xhci. And see if there are interrupts with STATUS=0, > which means spurious IRQs. > > --HPS no camera plugged in USB irq23: ahci0 ohci0+ is about 1 interrupts/s camera plugged in USB irq23: ahci0 ohci0+ is about 1 interrupts/s (no sensitive change) camera plugged in USB and shared via Webcams menu irq23: ahci0 ohci0+ is about 3 interrupts/s camera plugged in USB and shared via Webcams menu and opened irq23: ahci0 ohci0+ is about 85 interrupts/s when shared via USB is about 64/interrupts/s but the system CPU usage is very low: last pid: 1232; load averages: 0.66, 1.07, 0.68 up 0+00:31:51 17:10:41 78 processes: 1 running, 77 sleeping CPU: 3.7% user, 0.0% nice, 2.8% system, 0.4% interrupt, 93.1% idle Mem: 168M Active, 151M Inact, 186M Wired, 37M Buf, 3441M Free Swap: 3072M Total, 3072M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1223 ota 1 22 0 280M 45300K sbwait 0 0:03 4.66% decapture 845 root 3 21 0 545M 197M select 0 1:05 4.31% Xorg 936 ota 4 20 0 186M 27860K select 1 0:08 2.88% xfce4-ter 1221 ota 1 21 0 98940K 14664K cuse-c 1 0:02 2.73% cameraser 1204 root 10 -44 r8 34244K 7328K cuse-s 1 0:01 1.11% webcamd 970 ota 3 52 0 52876K 5368K uwait 1 0:05 0.14% VBoxClien