All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Adam Heath <doogie@brainfood.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] uml, ptrace, and BKL
Date: Sat, 18 Sep 2004 09:18:14 -0400	[thread overview]
Message-ID: <20040918131814.GA2942@ccure.user-mode-linux.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0409172129180.1171@gradall.private.brainfood.com>

On Fri, Sep 17, 2004 at 09:30:53PM -0500, Adam Heath wrote:
> No, I'm not.
> 
> UML ptraces it's children, to do it's emulation.  However, only one UML
> tracing thread can be doing a ptrace of one of it's children at a time.  If
> there are 50 UML instances running on the host, then that BKL inside
> sys_ptrace is a bottleneck.

OK, just your comment on preemption was a bit strange.

You're still wrong, just for different reasons.

The scalability of a lock depends on the number of processors on the system,
not the number of processes.  So, for a given host, increasing the number of
UMLs on the system won't increase the pressure on the BKL, assuming that
number is greater than the number of processors.  And in any case, on a UP
system, there is no BKL.

Increasing the number of processors will increase the pressure on the BKL,
again assuming there are more UMLs than processors.  So, 50 UMLs on a 2P
system won't be a problem, but 50 UMLs on a 50P system could be.

The UML systems that I am aware of are 2P, at most.  I think that it is
generally OK to run with the entire kernel under the BKL with 2 processors.
This being the case, it follows that ptrace won't be an issue either.

Also, the ptrace paths are pretty short.  Get in, copy a small amount of data
or change some state of the child, and get out.  On a 2P system, I have a 
hard time seeing that being a bottleneck.

However, it would be interesting to see if UML is causing lock contention
anywhere.  Running lockmeter on an SMP box running UMLs would show if there's
any problems.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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-09-18 12:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-18  0:23 [uml-devel] uml, ptrace, and BKL Adam Heath
2004-09-18  3:30 ` Jeff Dike
2004-09-18  2:30   ` Adam Heath
2004-09-18 13:18     ` Jeff Dike [this message]
2004-09-18 18:20       ` Adam Heath
2004-09-18 20:50         ` Jeff Dike

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=20040918131814.GA2942@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=doogie@brainfood.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 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.