From owner-freebsd-current@freebsd.org Mon Jan 22 09:54:53 2018 Return-Path: Delivered-To: freebsd-current@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 D4616EB6CAA for ; Mon, 22 Jan 2018 09:54:53 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (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 6479074BB1; Mon, 22 Jan 2018 09:54:53 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wr0-x230.google.com with SMTP id 36so7922613wrh.1; Mon, 22 Jan 2018 01:54:53 -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=Y2uffdl1jWy6Zz/LOxumI+V7JKc+6qhZeZrfvPsCW2E=; b=DgOZzaxLrYl+xj1HKTytxsdXzPK5h3wcBrIHuZqkMakgprFaxGb+cDDu0lGmCYzkQl z7PEAFgLmlGZWSlmqLJtlkfDrrnBxewTqGGM/TaxsB62v5OAP9C+t3++93dnLu5JJTK7 dBCIKyC1HiKEfXOv3qVMncOrOd9ha8KNmNHyAZAqFvIVq2IWzCpMtXp/RyIGLTqk5RJ4 p8N7EQApd8AaBwpl606BnksLy9lWiVbM6nwx8hCfFJ+y+F7CAv27z4lIOhjnhP9oi//Y NvO4lzBys58YIgHrqzeT1Pv7ueNz5kH6Xt1BgS5ul8GTXNAAzKMcALhBkS0Hjwm148Cc vGPA== 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=Y2uffdl1jWy6Zz/LOxumI+V7JKc+6qhZeZrfvPsCW2E=; b=t1NMa5F0dIT+uv2W8TYPsAO11lTZ80TQGW/36aLB20BnkCPomn2AVdtMeIfEX1KLjr lKH1FkRbPyy1eY4vHpWV1HKDMbnGdsK8IEywM3GZa52dVPW1qNmNtFXHBGP5S0SKfoT+ a3M79v1wB5wUNm5G7LhGSvNoLh398Mwttw+orQYumVxk4eNe/ZJbrClfw0elQZ4e5VRw 5Ol7QTl2br5zp1mq7QJzjV2fcKBeOzxDCR0C/J2HRVLpc1iHM5h7iyuNV+tKSBRC2Jp4 KCamFNeUFzplPQTiPDFBs4ISHzO/bYh4e55Fa4ODqO/XjXbSmCIxJNofEPrFGRcHd2EE fBqg== X-Gm-Message-State: AKwxyte1os7nuk9oN9Mgutt+SGdmUyPwOf8HsgcXhCXv7iF97/KQn1ds EiIqC3l3jvBydTDDFgdMNv16Ya6fDxMXgjGg0Xc= X-Google-Smtp-Source: AH8x225L22D7OBFWvME7liAXyyxyr0oUVpeQIsa8S0SQ2NvAUY0Cfrn/H8P4iPaw2hW/zPvuMBR+UCze0n2He33Jlds= X-Received: by 10.223.135.18 with SMTP id a18mr3653652wra.122.1516614891388; Mon, 22 Jan 2018 01:54:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.136.187 with HTTP; Mon, 22 Jan 2018 01:54:11 -0800 (PST) In-Reply-To: <0aceb3ff-4938-1b29-d493-d83ce82cc853@selasky.org> References: <64218617-98d2-0e6e-5872-e44106e61bf7@selasky.org> <1516569725.42536.99.camel@freebsd.org> <0aceb3ff-4938-1b29-d493-d83ce82cc853@selasky.org> From: Johannes Lundberg Date: Mon, 22 Jan 2018 09:54:11 +0000 Message-ID: Subject: Re: Periodical interrupt storm when playing game with USB keyboard To: Hans Petter Selasky Cc: Ian Lepore , freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 09:54:53 -0000 On Mon, Jan 22, 2018 at 8:23 AM, Hans Petter Selasky wrote: > On 01/21/18 23:57, Johannes Lundberg wrote: > >> Thanks for the further explanation. >> I curious as to where the problem might be though.. It is the game's >> binary-only Linux executable (Unreal Engine 2.5), Linux SDL 1.2, or on the >> FreeBSD side? Haven't experienced anything similar with Quake3... >> Switching to periodic timer feels like overkill but it does the job as a >> work around. >> > > Hi, > > It might be simply this, that the wrong clock-type is used when setting up > absolute timeouts. > Actually I think the same thing happens on the Macbook (with MacOS) which has a USB internal keyboard. The Mac binary is probably the same code base as the Linux one. Running Windows binary with wine does not experience this problem, unfortunately wine can only launch this game on MacOS, not FreeBSD. I assume USB can generate higher rate of interrupts than a PS/2 which this game (*nix version) was probably designed for initially. > > --HPS >