From: jlm_devel <jlm_devel@laposte.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: How to notify app of changed cpu/mem/io node configuration?
Date: Wed, 30 Jun 2004 11:57:17 +0000 [thread overview]
Message-ID: <40E2AB64.5030306@laposte.net> (raw)
In-Reply-To: <20040628173808.04718b83.pj@sgi.com>
Paul Jackson wrote:
>>But speaking with another OS which uses this approach, they found that
>>vendors preferred the "run a script" approach anyway
>>
>>
>
>Why are the "script" and the "signal" exclusive? We seem to need both.
>
>I'd expect that the 'batch manager' or such would want a "script" of its
>choosing executed, as you describe.
>
>But I also expect that a signal mechanism is required to deliver notice:
>
> from: the system service or its script (a batch manager, for example)
>
> to: the target task (a long running Fortran job, for example)
>
>that some special code linked in the target task needs to make sense of
>the situation and invoke the appropriate mbind/set_mempolicy calls.
>
>Perhaps that "other OS" didn't have the difficulty we have of having to
>get the target task to issue a call or two on its own behalf that can
>not be issued 'by proxy'.
>
>
>
>>The real killer was that we can't add signals without breaking glibc,
>>
>>
>
>Yeah - I agree. Don't count on glibc for anything. Hence no new
>signals, and expect to be overloading an existing signal for these
>purposes, if it comes to that.
>
>
>
I'm not uptodate but if Icorrectly remember hotplug executes scripts
when recieving an event from the kernel.... nothing prevent then to
create a script that do
for PID in $(ls /var/run/hotplug/signals); do
kill -10 $PID;
done
which will send a SIGUSR1 to any process listed in /var/run/hotplug/signals
more you can write a small aplication using POSIX extended signal to
pass some value to the processes.....
(by the way I perfer this method rather than DBUS.... because this is
more "standard" and don't create again the wheel)
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-06-30 11:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-29 0:38 How to notify app of changed cpu/mem/io node configuration? Paul Jackson
2004-06-29 6:24 ` Greg KH
2004-06-29 8:37 ` Paul Jackson
2004-06-29 22:41 ` Dave Hansen
2004-06-29 23:15 ` Paul Jackson
2004-06-29 23:39 ` Dave Hansen
2004-06-29 23:53 ` Rusty Russell
2004-06-30 1:22 ` Paul Jackson
2004-06-30 1:38 ` Dave Hansen
2004-06-30 1:40 ` Paul Jackson
2004-06-30 2:16 ` Paul Jackson
2004-06-30 11:57 ` jlm_devel [this message]
2004-06-30 12:26 ` Paul Jackson
2004-06-30 13:08 ` Paul Jackson
2004-06-30 17:37 ` jlm_devel
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=40E2AB64.5030306@laposte.net \
--to=jlm_devel@laposte.net \
--cc=linux-hotplug@vger.kernel.org \
/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.