From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: Force app to use single CPU
Date: Wed, 19 Jan 2000 10:44:46 -0600 [thread overview]
Message-ID: <3885E9FE.ACCFEFEF@paralleldata.com> (raw)
In-Reply-To: 15AD5D7936F8D21198240000F831776E3E812B@dboexc1.dbo.cpqcorp.net
"Jakma, Paul" wrote:
>
> > that seems to spend a lot of time context
> > switching between
> > the processors (judging from xosview).
>
> or maybe a case of the observed system being influenced by the measuring
> tool?
>
> ie xosview needs cpu time aswell. (and quite a lot of it).
>
> consider the unobserved system, where your app and the X server are the main
> loads. The linux scheduler will correctly try to keep X on one cpu, and your
> app on the other.
>
> Now introduce xosview. You have 3 processes fighting for cpu_time, and only
> 2 cpu's. The linux scheduler will still try maintain cpu affinity, but if a
> cpu becomes free, there's no point in wasting that slot.
>
> what you are seeing is correct scheduler behaviour.
>
Using affinity though, if the scheduler weights things reasonably,
would put the cpu constrained task on one cpu and leave it there
while putting things like X/xosview/your favorite window manager/the
clock/xterms/etc. on the other. If you want to look at a minimally
cluttered environment, run things from a text screen, not X. If your
program needs X, maybe you should separate the compute part from
the display part. (Works for me... YMMV)
Wes
next prev parent reply other threads:[~2000-01-19 16:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-19 11:34 Force app to use single CPU Jakma, Paul
2000-01-19 16:44 ` Wes Bauske [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-01-18 23:14 Blake Carlson
2000-01-18 23:11 ` Greg Lindahl
2000-01-18 23:46 ` Blake Carlson
2000-01-19 15:13 ` Sean Hunter
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox