From: Robert Love <rml@tech9.net>
To: "Shaheed R. Haque" <srhaque@iee.org>
Cc: Felipe Alfaro Solana <yo@felipe-alfaro.com>,
Andrew Morton <akpm@digeo.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: 2.6 must-fix list, v2
Date: 15 May 2003 11:32:24 -0400 [thread overview]
Message-ID: <1053012743.899.5.camel@icbm> (raw)
In-Reply-To: <1052990397.3ec35bbd5e008@netmail.pipex.net>
On Thu, 2003-05-15 at 05:19, Shaheed R. Haque wrote:
> These are the distros I am interested in too. I knew it was in RH AS/ES, but
> are you saying it is in RH9.0? That would be good news.
No, I am saying with luck it will be in the next RH release.
> On the technical point, I tried out taskset in rc.sysinit, and as you said, it
> works just fine.
Good :)
> On reflection, I feel that editing rc.sysinit is not the right
> answer given the confidence/competence level of our customers' typical
> sysadmins: but I can see that a carefully crafted rc5.d/S00aaaaa script could
> set the affinity of the executing shell, and its parent(s) upto init to fix all
> subsequent rcN.d children in the desired manner.
>
> I do suspect that other commercial users will also baulk at editing rc.sysint,
> and so have to brew the same rcN.d solution. Now, the rcN.d script hackery
> would be greatly simplified if taskset had a mode of "set the affinity of the
> identified process, and all its parent processes upto init". Would you accept a
> patch to taskset along those lines?
It is racey to do this, so its something that should remain a hack and
not part of taskset, I think.
If you do it in rc.d, you don't need to set all the parents. rc.d is the
first thing run, so if you do it at the top of the script, nothing else
is running. Just put:
taskset <mask> 1
taskset <mask> $$
at the top of rc.d.
Another consideration is modifying init (and hopefully having said
changes merged back). Init could call sched_setaffinity() when it is
first created, based on a setting in /etc/inittab or a command line
parameter passed during boot.
My reservation is against doing it in the kernel. I do not particularly
care _how_ its done in user-space.
Robert Love
next prev parent reply other threads:[~2003-05-15 15:17 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-12 11:20 Processor sets (pset) for linux kernel 2.5/2.6? Shaheed R. Haque
2003-04-12 12:11 ` Dave Jones
2003-04-12 12:24 ` Antonio Vargas
2003-04-12 14:54 ` Martin J. Bligh
2003-04-12 18:23 ` Robert Love
2003-04-12 19:56 ` Shaheed R. Haque
2003-04-12 20:02 ` Robert Love
2003-04-13 8:30 ` Shaheed R. Haque
2003-04-13 14:28 ` Robert Love
2003-05-13 11:49 ` 2.6 must-fix list, v2 Shaheed R. Haque
2003-05-13 20:02 ` Andrew Morton
2003-05-13 22:46 ` Shaheed R. Haque
2003-05-14 2:42 ` Steven Cole
2003-05-14 11:49 ` Shaheed R. Haque
2003-05-14 13:08 ` Steven Cole
2003-05-13 22:49 ` Shaheed R. Haque
2003-05-14 11:02 ` Felipe Alfaro Solana
2003-05-14 15:59 ` Robert Love
2003-05-14 16:04 ` Robert Love
2003-05-14 21:01 ` shaheed
2003-05-14 21:15 ` Robert Love
2003-05-15 9:19 ` Shaheed R. Haque
2003-05-15 15:32 ` Robert Love [this message]
2003-05-15 20:07 ` shaheed
2003-05-15 20:20 ` Robert Love
2003-05-15 20:24 ` Robert Love
2003-05-15 21:30 ` shaheed
2003-04-13 3:52 ` Re: Processor sets (pset) for linux kernel 2.5/2.6? Martin J. Bligh
2003-07-15 11:39 ` [HOWTO] Emulate processor sets (pset) for linux kernel 2.5/2.6 \"shaheed r. haque\"
2003-04-14 22:40 ` [RFC] patch to allow CPUs to be reserved to callers of sys_setaffinity [was Processor sets (pset) for linux kernel 2.5/2.6?] shaheed
2003-05-01 20:19 ` Working .config for a Dell 2650 for 2.5.6x? (was Re: Processor sets (pset) for linux kernel 2.5/2.6?) shaheed
-- strict thread matches above, loose matches on Subject: below --
2003-05-12 22:54 2.6 must-fix list, v2 Andrew Morton
2003-05-12 22:55 ` Andrew Morton
2003-05-13 4:05 ` viro
2003-05-13 5:00 ` Greg KH
2003-05-13 11:36 ` Trond Myklebust
2003-05-13 13:57 ` Dave Jones
2003-05-13 15:16 ` Trond Myklebust
2003-05-13 15:22 ` Dave Jones
2003-05-13 15:32 ` Trond Myklebust
2003-05-13 15:47 ` Dave Jones
2003-05-13 16:02 ` Trond Myklebust
2003-05-13 16:09 ` Dave Jones
2003-05-13 16:27 ` Trond Myklebust
2003-05-13 16:45 ` Dave McCracken
2003-05-13 16:53 ` Trond Myklebust
2003-05-13 22:50 ` Andrew Morton
2003-05-13 17:38 ` Dave Jones
2003-05-13 17:59 ` Trond Myklebust
2003-05-13 15:59 ` Daniel Jacobowitz
2003-05-13 16:11 ` Trond Myklebust
2003-05-13 18:09 ` Daniel Jacobowitz
2003-05-13 20:15 ` Chris Friesen
2003-05-13 20:25 ` Trond Myklebust
2003-05-13 13:57 ` Alan Cox
2003-05-13 15:00 ` Jeff Garzik
2003-05-13 15:12 ` Jens Axboe
2003-05-13 15:38 ` Christoph Hellwig
2003-05-13 15:50 ` Jeff Garzik
2003-05-13 16:59 ` Sam Ravnborg
2003-05-13 20:07 ` Geert Uytterhoeven
2003-05-13 20:12 ` Sam Ravnborg
2003-05-13 19:51 ` Geert Uytterhoeven
2003-05-13 20:17 ` Andrew Morton
2003-05-13 22:25 ` Dave Jones
2003-05-13 22:52 ` William Lee Irwin III
2003-05-13 23:43 ` Russell King
2003-05-14 8:09 ` Geert Uytterhoeven
[not found] ` <mailman.1052866140.9783.linux-kernel2news@redhat.com>
2003-05-14 2:32 ` Pete Zaitcev
2003-05-14 16:21 ` Tom Rini
2003-05-17 8:58 ` Pavel Machek
2003-05-13 15:47 ` Trond Myklebust
2003-05-13 15:06 ` Alan Cox
2003-05-13 16:20 ` Trond Myklebust
2003-05-13 17:52 ` Miquel van Smoorenburg
2003-05-13 18:11 ` Trond Myklebust
2003-05-17 8:56 ` Pavel Machek
2003-05-13 0:22 ` Greg KH
2003-05-13 1:57 Chuck Ebbert
[not found] <20030512155417.67a9fdec.akpm@digeo.com.suse.lists.linux.kernel>
[not found] ` <20030512155511.21fb1652.akpm@digeo.com.suse.lists.linux.kernel>
2003-05-13 6:00 ` Andi Kleen
2003-05-13 17:12 James Bottomley
2003-05-13 18:11 ` Mike Anderson
2003-05-13 18:18 ` James Bottomley
2003-05-13 19:14 ` Mike Anderson
2003-05-13 20:04 Chuck Ebbert
2003-05-14 2:05 Perez-Gonzalez, Inaky
2003-05-14 2:43 ` Zwane Mwaikambo
2003-05-14 12:05 ` Shaheed R. Haque
2003-05-14 18:21 Perez-Gonzalez, Inaky
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=1053012743.899.5.camel@icbm \
--to=rml@tech9.net \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srhaque@iee.org \
--cc=yo@felipe-alfaro.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