public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Toggling preemption on a running kernel
@ 2008-03-07  0:04 Matthew Hodgson
  2008-03-07 18:46 ` Bill Davidsen
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Hodgson @ 2008-03-07  0:04 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm trying to compare the performance of some networking code 
(throughput and latency when receiving various volumes of UDP streams) 
between a preemptible and non-preemptible 2.6.24 kernel, and was 
wondering if it is possible to temporarily disable preemption on a 
running preemptible kernel.  Is it just a matter of loading a module 
which calls preempt_enable() at load and preempt_disable() at unload - 
or is that too naive?  Is there an existing way of doing this?

thanks,

Matthew.


-- 
Matthew Hodgson <matthew@mxtelecom.com>
Media & Systems Project Manager
Tel: +44 (0) 845 666 7778
http://www.mxtelecom.com

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

* Re: Toggling preemption on a running kernel
  2008-03-07  0:04 Toggling preemption on a running kernel Matthew Hodgson
@ 2008-03-07 18:46 ` Bill Davidsen
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Davidsen @ 2008-03-07 18:46 UTC (permalink / raw)
  To: Matthew Hodgson; +Cc: linux-kernel

Matthew Hodgson wrote:
> Hi,
> 
> I'm trying to compare the performance of some networking code 
> (throughput and latency when receiving various volumes of UDP streams) 
> between a preemptible and non-preemptible 2.6.24 kernel, and was 
> wondering if it is possible to temporarily disable preemption on a 
> running preemptible kernel.  Is it just a matter of loading a module 
> which calls preempt_enable() at load and preempt_disable() at unload - 
> or is that too naive?  Is there an existing way of doing this?
> 
That wouldn't get rid of all the code to support preempt, so it wouldn't 
be useful for comparing much of anything. I think you need to build two 
identical kernels here, with only one difference.

-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

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

end of thread, other threads:[~2008-03-07 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-07  0:04 Toggling preemption on a running kernel Matthew Hodgson
2008-03-07 18:46 ` Bill Davidsen

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