mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Gross <mgross@unix-os.sc.intel.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>, dan@debian.org (Daniel Jacobowitz)
Cc: vamsi@in.ibm.com (Vamsi Krishna S .),
	pavel@suse.cz (Pavel Machek),
	linux-kernel@vger.kernel.org, alan@lxorguk.ukuu.org.uk,
	marcelo@conectiva.com.br, tachino@jp.fujitsu.com,
	jefreyr@pacbell.net, vamsi_krishna@in.ibm.com,
	richardj_moore@uk.ibm.com, hanharat@us.ibm.com,
	bsuparna@in.ibm.com, bharata@in.ibm.com,
	asit.k.mallick@intel.com, david.p.howell@intel.com,
	tony.luck@intel.com, sunil.saxena@intel.com
Subject: Re: [PATCH] multithreaded coredumps for elf exeecutables
Date: Thu, 21 Mar 2002 09:10:25 -0500	[thread overview]
Message-ID: <200203211707.g2LH7XW10116@unix-os.sc.intel.com> (raw)
In-Reply-To: <E16o5o5-0005gM-00@the-village.bc.nu>

On Thursday 21 March 2002 11:52 am, Alan Cox wrote:
> You need interrupts to handle this, even if you don't wrap it in the top
> layer of signals it will be able to use much of the code I agree. The nasty
> case is the "currently running on another cpu" one. Especially since you
> can't just "trap it" - if you IPI that processor it might have moved by the
> time the IPI arrives 8)

This why I grabbed all those locks, and did the two sets of IPI's in the 
tcore patch.  Once the runqueue lock is grabbed, even if that process on the 
other CPU tries to migrate, it won't get swapped in or looked at by the 
scheduler until its cpus_allowed member has been marked.   After cpus_allowed 
has been marked it won't run. 

I don't think there is any faster way of getting the other CPU's into 
schedule and a specific running process to be swapped out than what was done 
here.

The only risk with this type of code is if other code or drivers attempt 
similar maneuvers at the same time.  Having a standard mechanism or API for 
this in the scheduler would be a "good thing".

--mgross
ps.
I've just started considering how to do this with the 2.5 O(1) scheduler, and 
I'm not sure yet how I can accomplish this process "pausing" behavior just 
yet.

  reply	other threads:[~2002-03-21 17:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-15 11:37 Vamsi Krishna S .
2002-03-19 15:29 ` Pavel Machek
2002-03-19 18:49   ` Mark Gross
2002-03-20  6:06     ` Vamsi Krishna S .
2002-03-20 18:37       ` Daniel Jacobowitz
2002-03-20 16:14         ` Mark Gross
2002-03-21 10:03           ` Vamsi Krishna S .
2002-03-22 16:19             ` Mark Gross
2002-03-21 10:16         ` Vamsi Krishna S .
2002-03-21 16:27           ` Daniel Jacobowitz
2002-03-21 16:52             ` Alan Cox
2002-03-21 14:10               ` Mark Gross [this message]
2002-03-21 17:34                 ` Alan Cox
2002-03-21 14:59                   ` Mark Gross
2002-03-21 20:25                 ` Pavel Machek
2002-03-22  6:06 Suparna Bhattacharya
2002-03-29  5:43 ` Jeff Jenkins
2002-03-29 12:50   ` Mark Gross

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=200203211707.g2LH7XW10116@unix-os.sc.intel.com \
    --to=mgross@unix-os.sc.intel.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=asit.k.mallick@intel.com \
    --cc=bharata@in.ibm.com \
    --cc=bsuparna@in.ibm.com \
    --cc=dan@debian.org \
    --cc=david.p.howell@intel.com \
    --cc=hanharat@us.ibm.com \
    --cc=jefreyr@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=pavel@suse.cz \
    --cc=richardj_moore@uk.ibm.com \
    --cc=sunil.saxena@intel.com \
    --cc=tachino@jp.fujitsu.com \
    --cc=tony.luck@intel.com \
    --cc=vamsi@in.ibm.com \
    --cc=vamsi_krishna@in.ibm.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

all inboxes | Powered by JetHome®