Re: Kernel preemption -- demo does not work

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

 



Hello,

Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> [2006-04-09]:
> 
> > I have a simple kernel module with a 10 seconds loop in the
> > init_module() function. This function should be preemptible because
> > it's the insmod process in the init_module system call.
> >
> > But another process with SCHED_FIFO (prio 99) isn't run until the
> > init function exits.
> 
> First of all, what is your kernel version? And, are you sure you have 
> enabled the kernel level preemption (CONFIG_PREEMPT if I remember 
> correctly)? 

 $ cat /proc/config.gz |gunzip -c|grep PREEMPT
 # CONFIG_PREEMPT_NONE is not set 
 # CONFIG_PREEMPT_VOLUNTARY is not set
 CONFIG_PREEMPT=y
 CONFIG_PREEMPT_BKL=y
 CONFIG_DEBUG_PREEMPT=y

and version 2.6.15.6.


Regards,
 Bernhard

PS: Same effect in a write() syscall.
-- 
Es wird Wagen geben, die von keinem Tier gezogen werden und mit
unglaublicher Gewalt daherfahren.
	-- Leonardo da Vinci

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux