public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Matthew Hodgson <matthew@mxtelecom.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Toggling preemption on a running kernel
Date: Fri, 07 Mar 2008 13:46:51 -0500	[thread overview]
Message-ID: <47D18D9B.9080907@tmr.com> (raw)
In-Reply-To: <47D086A4.6090103@mxtelecom.com>

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

      reply	other threads:[~2008-03-07 18:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-07  0:04 Toggling preemption on a running kernel Matthew Hodgson
2008-03-07 18:46 ` Bill Davidsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47D18D9B.9080907@tmr.com \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@mxtelecom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox