From: Victor Huerta <vhuerta () iie ! org ! mx>
To: tru64-unix-managers
Subject: Q: CPU consumption
Date: Sat, 21 Feb 1998 01:55:24 +0000 [thread overview]
Message-ID: <96078694111501.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1998-02-21 1:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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