Article View: comp.sys.sequent
Article #895Re: timing parallel programs
From: Ian Dickinson
Date: Mon, 12 Feb 1990 10:28
Date: Mon, 12 Feb 1990 10:28
21 lines
1432 bytes
1432 bytes
In article <1324@csisles.Bristol.AC.UK> beaumont@CompSci.Bristol.AC.UK (Tony Beaumont) writes:
>Is there a way to get a processor to exclusively run a process?
Yes.
If you are running the code as setuid.
There is a system call called tmp_affinity or similar
(try 'man -k affinity' and you should get something in section 2)
This call will make a process have exclusive use of a single processor.
If you make all the parallel processes call this,
then spin until they are synchronised,
you should be able to conduct reasonable tests
without an other process intervening.
It might still be worthwhile running the tests during light load periods
so bus congestion, paging etc are less of a problem.
Hokay!
--
\/ato. vato@uk.ac.warwick. *NIX gives good head. Support the FSF. Plinth.
"When it's a smoking charred stump, that's too much.
Mine hasn't charred yet." - entropy@alembic.acs.com
Technical Details
Message-ID:
<398@clover.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!warwick!cudepReferences:
<1324@csisles.Bristol.AC.UK>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!warwick!cudep From: cudep@warwick.ac.uk (Ian Dickinson) Newsgroups: comp.sys.sequent Subject: Re: timing parallel programs Keywords: timing, sequent, multi-processor Message-ID: <398@clover.warwick.ac.uk> Date: 12 Feb 90 10:28:17 GMT References: <1324@csisles.Bristol.AC.UK> Reply-To: cudep@warwick.ac.uk (Ian Dickinson) Organization: Team Limpid's Death Mollusc From Hell Tour - Europe 1992 Lines: 20