From: Laura Abbott <labbott@redhat.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Laura Abbott <labbott@fedoraproject.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org
Subject: Re: [PATCHv2] Input: xpad - Fix double URB submission races
Date: Mon, 24 Aug 2015 21:22:16 -0700 [thread overview]
Message-ID: <55DBED78.6060709@redhat.com> (raw)
In-Reply-To: <20150821165058.GG26302@localhost>
On 08/21/2015 09:50 AM, Dmitry Torokhov wrote:
> Hi Laura,
>
> On Mon, Aug 10, 2015 at 05:26:12PM -0700, Laura Abbott wrote:
>> v2: Created a proper queue for events instead of just dropping them
>
> How long does it take for the queue to exhaust your memory if you keep
> bombarding the driver with requests?
>
My script which changes the LEDs as fast as possible ran for 7+ hours on
my machine with 16GB of RAM without exhausting all of it. This is also a
very extreme case as almost any kind of delay between sending
commands will drain the queue.
> I do not think you need a queue. I believe the nature of LEDs and rumble
> force feedback effect is such that you can discard all requests but the
> latest that arrived between the moment you submitted a request to the
> device and the moment you are ready submit a new one.
So your suggestion is to only keep a single item in the queue?
>
> Thanks.
>
Thanks,
Laura
next prev parent reply other threads:[~2015-08-25 4:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-11 0:26 [PATCHv2] Input: xpad - Fix double URB submission races Laura Abbott
2015-08-21 16:50 ` Dmitry Torokhov
2015-08-25 4:22 ` Laura Abbott [this message]
2015-08-26 17:19 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DBED78.6060709@redhat.com \
--to=labbott@redhat.com \
--cc=dmitry.torokhov@gmail.com \
--cc=labbott@fedoraproject.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).