kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Sleep and Wake up
@ 2011-05-02 18:32 Abu Rasheda
  2011-05-02 19:28 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Abu Rasheda @ 2011-05-02 18:32 UTC (permalink / raw)
  To: kernelnewbies

I am testing my driver on much faster host processor and facing
following issues:

My host is too powerful and it can fill up device buffer queue very fast.

I get best performance when I do busy wait, but this is not desirable
and is bad design.

I need to sleep and wake up quickly and predictability. Indication
from device that queue has space, is coming in form of memory write
(device writes to a memory location of i86 processor).

I tried using wait_event_interruptible_timeout, I am depending on 2nd
parameter of the function but it wake up is too slow, even tried using
value of 1.

Any suggestions ?

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Sleep and Wake up
@ 2011-05-03  2:13 Vikram Narayanan
  0 siblings, 0 replies; 10+ messages in thread
From: Vikram Narayanan @ 2011-05-03  2:13 UTC (permalink / raw)
  To: kernelnewbies

>> On Mon, May 02, 2011 at 11:32:32AM -0700, Abu Rasheda wrote:
>>> I am testing my driver on much faster host processor and facing
>>> following issues:
>>>
>>> My host is too powerful and it can fill up device buffer queue very fast.
>>
>> What kind of device is this?
>
> its a networking device
>
>>> I get best performance when I do busy wait, but this is not desirable
>>> and is bad design.
>>>
>>> I need to sleep and wake up quickly and predictability. Indication
>>> from device that queue has space, is coming in form of memory write
>>> (device writes to a memory location of i86 processor).
>>>
>>> I tried using wait_event_interruptible_timeout, I am depending on 2nd
>>> parameter of the function but it wake up is too slow, even tried using
>>> value of 1.
>>
>> Why not try increasing the buffer in your driver to handle any amount of
>> data needed?
>
> Problem come from the fact that remote end can be slow, so device /
> driver cannot do much. If I increase buffer size, than running on
> (even) faster host processor will bring back same issue. I am looking
> for solution which will scale.
AFAIK, These scaling things will be taken care by the protocol.
BTW, Which protocol you are communicating with?
It would be good if you try to give more information on what you are
trying to achieve.

Thanks,
Vikram

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-10  3:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-02 18:32 Sleep and Wake up Abu Rasheda
2011-05-02 19:28 ` Greg KH
2011-05-02 21:02   ` Abu Rasheda
2011-05-02 22:04     ` Greg KH
2011-05-02 23:04       ` Fwd: " Abu Rasheda
2011-05-02 19:40 ` Kernel compilation Ezequiel García
2011-05-05 14:15   ` Pico Geyer
2011-05-03  7:10 ` Sleep and Wake up Mulyadi Santosa
2011-05-10  3:14 ` Peter Teoh
  -- strict thread matches above, loose matches on Subject: below --
2011-05-03  2:13 Vikram Narayanan

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).