From mboxrd@z Thu Jan 1 00:00:00 1970 From: rcpilot2010@gmail.com (Abu Rasheda) Date: Fri, 8 Jun 2012 18:52:45 -0700 Subject: Module vs Kernel main performacne In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org I modified my module (m.c). Still sending buffer from user space using ioctl, but instead of copying data from buffer provided by user, I have allocated (kmalloc) a buffer and I copy from this buffer to another kernel buffer which is allocated each time this module ioclt is invoked. copy_from_user is now replaced with memcpy. I still see processor stall. This means the buffer allocated per call is the cause. Abu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120608/43f027cc/attachment.html