mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Buell <alex.buell@munted.org.uk>
To: Mailing Lists - Kernel Developers <linux-kernel@vger.kernel.org>
Subject: Atom N270 more efficent with int 0x80 than with syscalls
Date: Sat, 26 Jun 2010 10:20:11 +0100	[thread overview]
Message-ID: <1277544011.24284.14.camel@lithium.local.net> (raw)

Recently I rewrote a small assembler program to test timings and print
out timing informations for various assembly routines. Then I thought to
add tests for timings on int 0x80 and calling via syscalls. 

Now I know int 0x80 calls are expensive on processors such as the
Pentium IV but someone has tested my assembly program with their Atom
N270 1.6GHz system, and int 0x80s calls are actually much quicker than
syscalls on these processors. 

Here's the test program that exposed the timing differences with these
int 0x80 calls and syscalls:
http://www.munted.org.uk/programming/newtimer.zip

Perhaps the kernel could be greatly speeded up on certain processors if
it dynamically adapts to use the quickest type of system calls? 
-- 
http://www.munted.org.uk

One very high maintenance cat living here.

                 reply	other threads:[~2010-06-26  9:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1277544011.24284.14.camel@lithium.local.net \
    --to=alex.buell@munted.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome