Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Memory Allocation
@ 1999-01-07  5:00 vinny_in_vancouver
  0 siblings, 0 replies; 3+ messages in thread
From: vinny_in_vancouver @ 1999-01-07  5:00 UTC (permalink / raw)


Hello,

I need to know how much memory my process has
allocated at a particular moment.  I have been
told that checking virtual memory size using 'ps'
won't work as the operating system may still
let the process keep the memory just in case the
process needs that piece of memory later on.
Does anyone know of a system call I can use?
Thanks a lot.

Vinny

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 3+ messages in thread
* memory allocation
@ 1996-11-06  5:00 Jim Largent
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Largent @ 1996-11-06  5:00 UTC (permalink / raw)



Does anyone know what is the size of the overhead (in bytes) when you do a new 
in C++ on DEC unix 3.2?




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Memory allocation
@ 1994-09-19 15:27 Wuxu Peng
  0 siblings, 0 replies; 3+ messages in thread
From: Wuxu Peng @ 1994-09-19 15:27 UTC (permalink / raw)


Machine: DEC Alpha 3000/300, OSF2.0 (rev.250).

Problems: Too much swapping space allocated.  The program is
	  memory intensive. Since UNIX (or just OSF?) does not
	  immediately return space freed by "free" to system
	  (it claims new swapping space, not reuses those
	  freed space),  I have to maintain a pool of free nodes.
	  My program will first examine if the free pool is empty,
	  and will only do "malloc" when the pool is empty.

	  The main body of my program is a loop. It may loop
	  from 1 to 100 times, depending upon some command-line
	  parameter.
	
          The problem is that, every iteration of that loop
	  demands more swapping space.  This happens even if
	  the program does not do any new "malloc".  Each iteration
	  requires new swapping space, pure and simple.  As
	  a result, for some input, my program eventually exhausts
	  the entire 128M swapping space.

          Any way getting around this problem?

Thanks.


--

--wuxu peng (peng@pirates.cs.swt.edu)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-01-07  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-07  5:00 Memory Allocation vinny_in_vancouver
  -- strict thread matches above, loose matches on Subject: below --
1996-11-06  5:00 memory allocation Jim Largent
1994-09-19 15:27 Memory allocation Wuxu Peng

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