tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Q: CPU consumption
@ 1998-02-21  1:55 Victor Huerta
  0 siblings, 0 replies; only message in thread
From: Victor Huerta @ 1998-02-21  1:55 UTC (permalink / raw)
  To: tru64-unix-managers

Hello Managers,

I work at the Electrical Research Institute in Mexico, where we have
developed a simulator on AlphaStation DEC computers. All processes
use shared memory that is accessed using general read and write
routines. These routines use semaphores to synchronize the access.
When I execute a process with 25 threads (each one calling the write
or read rotines), the CPU consumption arises from 35% to 95%, 25% user
and 70% system. If I eliminate the semaphores at the threads process,
the CPU consumption is only 37% aprox. I think there is a conflict when
using threads and semaphores simultaneously that arises the CPU consum-
ption of the system. I have to say that each thread calls to the read/
write routines.
In other AlphaStations of the same simulator where we don't use threads,
we do not have this consumption problem.

Do you know how to solve this problem ?


Ismael Daza

idaza@iie.org.mx

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-02-21  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-21  1:55 Q: CPU consumption Victor Huerta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox