From: Laurent Vivier <LaurentVivier@wanadoo.fr>
To: roland <for_spam@gmx.de>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [PATCH] host context switch reduction
Date: Tue, 18 May 2004 00:00:52 +0200 [thread overview]
Message-ID: <1084831251.1230.4.camel@chartreuse> (raw)
In-Reply-To: <02dc01c43c4a$bb7c0490$2000000a@schlepptopp>
[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]
Hi,
find hereunder the measurements I sent to Jeff.
If someone think this patch is really useful for 2.6 I can make the
port.
Regards,
Laurent
Please CC: me, as I'm not in the mailing list.
Le lun 17/05/2004 à 22:08, roland a écrit :
> hi !
> has this / will this be ported to 2.6 ?
> have there been made further performance comparisons ?
> regards
> roland
>
>
> >Well, we just looked at the context switches. We started 3 UMLs which
> >were doing a make world for xfree. Without patches the number of
> >context switches per second was around 60k, with the patch it was around
> >40k - so it's noticeable, at least from the cs.
> >Sven
>
> ----- Original Message -----
> From: "Jeff Dike" <jdike@addtoit.com>
> To: <user-mode-linux-devel@lists.sourceforge.net>
> Sent: Sunday, February 29, 2004 6:35 AM
> Subject: [uml-devel] [PATCH] host context switch reduction
>
>
> > The patches below are from Laurent Vivier who didn't make them public. They
> > add a new feature to ptrace on the host which cuts down on the number of
> > context switches needed for a UML system call, plus makes UML use it.
> >
> > There's some interest in this, so I'm putting it out as-is. I haven't played
> > with it.
> >
> > Laurent did some performance testing and found ~40% speedup on a getpid
> > loop, and a 3.5% speedup on a kernel build.
> >
> > Jeff
> >
> >
[-- Attachment #2: measure-getpid.txt --]
[-- Type: text/plain, Size: 1050 bytes --]
#include <stdio.h>
int main(int argc, char** argv)
{
int i;
int loop = atol(argv[1]);
for (i = 0; i < loop; i++)
{
getpid();
}
}
NATIF:
time ./getpid 10000000
real 0m7.920s
user 0m3.990s
sys 0m3.940s
UML with sysemu
real 3m55.052s
user 0m5.962s
sys 0m46.385s
real 3m56.964s
user 0m5.846s
sys 0m42.635s
real 3m54.179s
user 0m5.981s
sys 0m47.154s
UML w/o sysemu
real 6m16.956s
user 0m5.250s
sys 0m58.462s
real 6m17.126s
user 0m4.846s
sys 1m1.731s
real 6m16.461s
user 0m5.077s
sys 0m59.365s
---------------------------------------
original UML:
time make dep > /dev/null
real 4m51.669s
user 0m37.462s
sys 0m51.846s
time make bzImage modules > /dev/null
real 13m35.457s
user 4m18.885s
sys 1m40.481s
UML with sysemu:
time make dep > /dev/null
real 3m52.486s
user 0m37.981s
sys 0m50.808s
time make bzImage modules > /dev/null
real 13m5.980s
user 4m18.096s
sys 1m40.115s
next prev parent reply other threads:[~2004-05-17 22:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-29 4:35 [uml-devel] [PATCH] host context switch reduction Jeff Dike
2004-02-29 16:48 ` BlaisorBlade
2004-03-15 11:42 ` Sven 'Darkman' Michels
2004-03-15 19:13 ` Jeff Dike
2004-05-17 20:08 ` roland
2004-05-17 22:00 ` Laurent Vivier [this message]
2004-05-17 22:22 ` roland
2004-05-18 17:59 ` Jeff Dike
2004-05-19 17:27 ` Laurent Vivier
2004-05-19 18:01 ` roland
2004-05-19 18:17 ` Laurent Vivier
2004-05-19 19:39 ` roland
2004-05-19 19:49 ` Laurent Vivier
2004-05-20 2:30 ` roland
2004-05-20 12:49 ` Laurent Vivier
2004-05-23 0:42 ` [uml-devel] [PATCH] commandline switch for sysemu patch roland
2004-05-23 13:31 ` [uml-devel] [PATCH] host context switch reduction roland
2004-05-19 23:54 ` Jeff Dike
2004-05-20 1:01 ` roland
2004-05-20 14:12 ` Henrik Nordstrom
2004-05-20 15:27 ` roland
2004-05-20 15:35 ` Henrik Nordstrom
2004-05-19 22:40 ` Nuno Silva
2004-05-20 18:28 ` roland
2004-05-20 18:47 ` Henrik Nordstrom
2004-05-27 6:16 ` Christopher S. Aker
2004-05-27 8:22 ` Laurent Vivier
2004-05-27 9:25 ` Christopher S. Aker
2004-05-27 11:50 ` Laurent Vivier
2004-05-28 4:53 ` [uml-devel] [PATCH] host context switch reduction Benchmarks Christopher S. Aker
-- strict thread matches above, loose matches on Subject: below --
2004-05-20 2:34 [uml-devel] [PATCH] host context switch reduction roland
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=1084831251.1230.4.camel@chartreuse \
--to=laurentvivier@wanadoo.fr \
--cc=for_spam@gmx.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.