linux-um archives
 help / color / mirror / Atom feed
From: "Young K" <young_uml@hotmail.com>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] slow execution in uml?
Date: Mon, 04 Oct 2004 17:35:00 -0400	[thread overview]
Message-ID: <BAY22-F38Fm15k4R9xC00023711@hotmail.com> (raw)

hi, folks,

i was comparing uml network performance with genuine linux. the experiment i 
did was to insert time-stamping code in network stack, and see how slower 
uml is. i was sending 32-byte udp packets to another machine every 10 msec, 
and used rdtsc to measure the elapsed cpu cycles between sendto() and 
nf_hook_slow() (which is called inside ip_build_xmit()).

what i found was that it took around 29,000 cycles from sendto() to 
nf_hook_slow() in uml whereas only 2,000 cycles in genuine linux. it looks 
like a big difference. but i think it's purely code execution without any 
I/O operation between sendto() to nf_hook_slow(). then, why is it so slow in 
uml? is there any possible factors that make uml slower? (more cache 
misses?)

i used 2.4.22 for guest os(tt mode) and 2.4.25 for host os, but numbers were 
pretty much the same when i used other versions of 2.4 kernels for both 
guest and host. the computer i used for test was P4 2.2 GHz single processor 
with 512MB, FYI.

_________________________________________________________________
Check out Election 2004 for up-to-date election news, plus voter tools and 
more! http://special.msn.com/msn/election2004.armx



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2004-10-04 21:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-04 21:35 Young K [this message]
2004-10-05 18:21 ` [uml-devel] slow execution in uml? BlaisorBlade
  -- strict thread matches above, loose matches on Subject: below --
2004-10-05 18:41 Young K

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=BAY22-F38Fm15k4R9xC00023711@hotmail.com \
    --to=young_uml@hotmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox