mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Weird wasting of time between ioctl() and ioctl dispatcher
@ 2006-11-27  8:24 Cestonaro, Thilo (external)
  2006-11-27  8:50 ` Arjan van de Ven
  2006-11-27 11:10 ` Andi Kleen
  0 siblings, 2 replies; 3+ messages in thread
From: Cestonaro, Thilo (external) @ 2006-11-27  8:24 UTC (permalink / raw)
  To: linux-kernel

Hey,

I'm a developer for Fujitsu Siemens Computers, working on a program which has it's own kernel modules and userland components.
Now cause the program should be released we have done some testing and during this testphase a wierd wasting of time occured
during the call of the ioctl() in the userland component and the actuall entering of the dispatcher function in the module.
It takes 3 min. until the call at last enters my dispatcher. (Debugging output with printf on line before ioctl() and printk as first line in the 
dispatch function points that out). The dispatch function is the ioctl part of the fileoperations struct which defines the module stuff.

The kernel I'm running is the 2.6.16.21-0.8-default of SLED10 (32Bit), but installed on a 64Bit machine.
Can anyone point me to, where I can have a look where the waste of time comes from?

The ioctl itself works fine afterwards, but the whole process is time-critical so the 3 min. do hurt :(.

Ciao Thilo 

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

* Re: Weird wasting of time between ioctl() and ioctl dispatcher
  2006-11-27  8:24 Weird wasting of time between ioctl() and ioctl dispatcher Cestonaro, Thilo (external)
@ 2006-11-27  8:50 ` Arjan van de Ven
  2006-11-27 11:10 ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Arjan van de Ven @ 2006-11-27  8:50 UTC (permalink / raw)
  To: Cestonaro, Thilo (external); +Cc: linux-kernel

On Mon, 2006-11-27 at 09:24 +0100, Cestonaro, Thilo (external) wrote:
> Hey,
> 
> I'm a developer for Fujitsu Siemens Computers, working on a program which has it's own kernel modules and userland components.
> Now cause the program should be released we have done some testing and during this testphase a wierd wasting of time occured
> during the call of the ioctl() in the userland component and the actuall entering of the dispatcher function in the module.
> It takes 3 min. until the call at last enters my dispatcher. (Debugging output with printf on line before ioctl() and printk as first line in the 
> dispatch function points that out). The dispatch function is the ioctl part of the fileoperations struct which defines the module stuff.
> 
> The kernel I'm running is the 2.6.16.21-0.8-default of SLED10 (32Bit), but installed on a 64Bit machine.
> Can anyone point me to, where I can have a look where the waste of time comes from?
> 
> The ioctl itself works fine afterwards, but the whole process is time-critical so the 3 min. do hurt :(.


Hi,

unfortunately you did not post the source code of at least your kernel
driver, nor did you provide an URL to the source, so it's really hard
for us to help you. Would you mind correcting this oversight?

Greetings,
   Arjan van de Ven
-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


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

* Re: Weird wasting of time between ioctl() and ioctl dispatcher
  2006-11-27  8:24 Weird wasting of time between ioctl() and ioctl dispatcher Cestonaro, Thilo (external)
  2006-11-27  8:50 ` Arjan van de Ven
@ 2006-11-27 11:10 ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2006-11-27 11:10 UTC (permalink / raw)
  To: Cestonaro, Thilo (external); +Cc: linux-kernel

"Cestonaro, Thilo \(external\)"    <Thilo.Cestonaro.external@fujitsu-siemens.com> writes:

> I'm a developer for Fujitsu Siemens Computers, working on a program which has it's own kernel modules and userland components.
> Now cause the program should be released we have done some testing and during this testphase a wierd wasting of time occured
> during the call of the ioctl() in the userland component and the actuall entering of the dispatcher function in the module.
> It takes 3 min. until the call at last enters my dispatcher. 

Something else is holding the big kernel lock for that long. Most likely
it's your own code. Consider using a ->unlocked_ioctl

-Andi

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

end of thread, other threads:[~2006-11-27 11:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-27  8:24 Weird wasting of time between ioctl() and ioctl dispatcher Cestonaro, Thilo (external)
2006-11-27  8:50 ` Arjan van de Ven
2006-11-27 11:10 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®