Re: kernel preemption does not work

2008-04-16 Thread Scott Lovenberg
Peter Teoh wrote: On Fri, Apr 11, 2008 at 4:57 PM, Scott Lovenberg <[EMAIL PROTECTED]> wrote: Yeah, FWIW, none of the server distros compile preemption in; it's only really for desktop responsiveness, and even then, I think its value may be marginal (at this time - I think it will mature).

Re: kernel preemption does not work

2008-04-13 Thread Peter Teoh
On Sat, Apr 12, 2008 at 11:58 PM, Patrick McManus <[EMAIL PROTECTED]> wrote: > Hi, > > > On Sat, 2008-04-12 at 23:10 +0800, Peter Teoh wrote: > > On Sat, Apr 12, 2008 at 9:53 PM, Patrick McManus <[EMAIL PROTECTED]> wrote: > > > no. without CONFIG_PREEMPT kernel code is not pre-emptable. Userspa

Re: kernel preemption does not work

2008-04-12 Thread Peter Teoh
On Fri, Apr 11, 2008 at 4:56 PM, Roberto A. Foglietta <[EMAIL PROTECTED]> wrote: > 2008/4/11, Peter Teoh <[EMAIL PROTECTED]>: > > > On Thu, Apr 10, 2008 at 3:32 PM, bhanu nani <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > > > > I am trying to test kernel preemption in my driver. When I

Re: kernel preemption does not work

2008-04-11 Thread Peter Teoh
On Sat, Apr 12, 2008 at 2:29 PM, Peter Teoh <[EMAIL PROTECTED]> wrote: > > For sure is not advisable on a server but in an embedded devices some > > I/O locks the system too long if preemption is not configured and > > adding a real-time layer is too much effort in order to reduce > > resp

Re: kernel preemption does not work

2008-04-11 Thread Mulyadi Santosa
Hi... I hope I give you truly correct answer... On Fri, Apr 11, 2008 at 11:40 PM, bhanu nani <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I am not sure whether this API is avialable to user space but this > code snippet is part of Kernel module. > > > > > Test code: > > > -- > > >

Re: kernel preemption does not work

2008-04-11 Thread Patrick McManus
On Fri, 2008-04-11 at 09:40 -0700, bhanu nani wrote: > code snippet is part of Kernel module. > > > > Test code: > > > -- > > > read() > > > { > > >if(down_interruptible()) > > >return error; > > >mdelay(1); > > >up(); > > > } > > > > This is my my r

Re: kernel preemption does not work

2008-04-11 Thread bhanu nani
Hi Guys, I am not sure whether this API is avialable to user space but this code snippet is part of Kernel module. > > Test code: > > -- > > read() > > { > >if(down_interruptible()) > >return error; > >mdelay(1); > >up(); > > } > > > > With this code

Re: kernel preemption does not work

2008-04-11 Thread Roberto A. Foglietta
2008/4/11, Peter Teoh <[EMAIL PROTECTED]>: > On Thu, Apr 10, 2008 at 3:32 PM, bhanu nani <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > I am trying to test kernel preemption in my driver. When I first > > compiled the Linux kernel and tested it, I found it to be > > non-preemptible. Later

Re: kernel preemption does not work

2008-04-11 Thread Scott Lovenberg
Peter Teoh wrote: On Thu, Apr 10, 2008 at 3:32 PM, bhanu nani <[EMAIL PROTECTED]> wrote: Hi all, I am trying to test kernel preemption in my driver. When I first compiled the Linux kernel and tested it, I found it to be non-preemptible. Later I realised that my kernel was build with prem

Re: kernel preemption does not work

2008-04-11 Thread Peter Teoh
On Thu, Apr 10, 2008 at 3:32 PM, bhanu nani <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to test kernel preemption in my driver. When I first > compiled the Linux kernel and tested it, I found it to be > non-preemptible. Later I realised that my kernel was build with > premption disable

Re: kernel preemption does not work

2008-04-10 Thread Mulyadi Santosa
Hi... On Thu, Apr 10, 2008 at 2:32 PM, bhanu nani <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to test kernel preemption in my driver. When I first > compiled the Linux kernel and tested it, I found it to be > non-preemptible. Later I realised that my kernel was build with > premption

RE: kernel preemption does not work

2008-04-10 Thread Rajat Jain
Hi, > Test code: > -- > read() > { >if(down_interruptible()) >return error; >mdelay(1); >up(); > } > > With this code in place, I try to do a 'CTRL+C' when it hangs at that > delay. It does not respond to my 'CTRL + C'. > > Where am I missing the preempt