🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sequent
Article #173

Difference in access time between local and shared vars?

#173
From: amehta
Date: Mon, 23 Oct 1989 19:10
37 lines
1397 bytes
Hi,

	Can someone tell me if there is a difference in performance
between the following types of data (I am programming in C, on
a Balance 21000):

   Local data, allocated:
	a) at compile time.
	b) by function invokation
	   (ie, a variable declared inside a function).
	c) by a call to "malloc".

   Shared data, allocated:
	a) at compile time.
	b) by a call to "shmalloc".

   Shared data, that is, 
	a) read/updated by one processor.
	b) read by many; updated by one.
	c) read by many; updated by many.


I understand that each processor has 8K of local RAM, 8K of cache
RAM, and the rest is Shared Memory, which is accessed through a
common bus.

Does all local data get stored in a process's Local RAM?
Does the time for accessing/updating data depend on any of the 
above factors, and if so, by how much?

Inquiring minds want to know...

Thanks in advance for your time and help!!

Alok Mehta
mehtaa@cs.rpi.edu
Technical Details
Message-ID: <1989Oct23.191013.27655@rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!rpi!euclid.rdrc.rpi.edu!amehta

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!rpi!euclid.rdrc.rpi.edu!amehta
From: amehta@euclid.rdrc.rpi.edu
Newsgroups: comp.sys.sequent
Subject: Difference in access time between local and shared vars?
Message-ID: <1989Oct23.191013.27655@rpi.edu>
Date: 23 Oct 89 19:10:13 GMT
Reply-To: amehta@euclid.rdrc.rpi.edu ()
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 37