Re: [PATCH] input: allocate event circular buffer separately

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mika,

On Tue, May 15, 2012 at 03:46:24PM +0300, Mika Kuoppala wrote:
> If struct evdev_client is added to the already power of two
> buffer allocation and the buffer is large, for multitouch devices,
> the allocation will spill over into the the next page.
> Alloc buffer separately instead of binding it to evdev_client struct
> to avoid multipage kmalloc.

Not counting the event buffer, size of evdev_client is fairly small
(under 100 bytes?) so I wonder how often this split actually helps (i.e.
buffer and client each are less than page size but combined are more).

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux