* where does the memory go?
@ 1999-03-09 16:14 Matt Nelson
1999-03-09 17:29 ` Paul B. Brown
0 siblings, 1 reply; 9+ messages in thread
From: Matt Nelson @ 1999-03-09 16:14 UTC (permalink / raw)
To: axp-list
quick question: after a night of doing nothing, memory usage on our LX164
looks like:
munch:mnelson> free
total used free shared buffers cached
Mem: 515112 506632 8480 34744 27728 454752
-/+ buffers/cache: 24152 490960
Swap: 523640 232 523408
but after working all day, the used memory goes from ~20M up to ~110M,
even though the memory usage of all the processes don't add up to that
much (i.e., during an idle period).
where's it going?
-matt
-----------------------------------------------------------------------------
Matthew Nelson
Dynamics Technology, Inc.
21311 Hawthorne Blvd., Suite 300, Torrance, CA 90503-5610
Voice: (310) 543-5433 FAX: (310) 543-2117 Email: mnelson@dynatec.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 16:14 where does the memory go? Matt Nelson
@ 1999-03-09 17:29 ` Paul B. Brown
1999-03-09 18:43 ` Daniel J. Frasnelli
0 siblings, 1 reply; 9+ messages in thread
From: Paul B. Brown @ 1999-03-09 17:29 UTC (permalink / raw)
To: Matt Nelson; +Cc: axp-list
Matt,
A number of programs are designed to grab memory and hang onto it based on
events that occur. Some grab a pretty big chunk at the initialization
phase while others try to play nice and only grab chucks as requirements
dictate.
Do your have X running? It's a resource hog.
How about a commercial web server like Netscape?
How about DNS?
How about Squid or other NAT/Firewalling/Security type package.
Review your list of deamons and see where the memory is being used.
ps -auxwww | more
Let us know what you find . . . .
Paul
---------------------------------------------------------------------------
Paul B. Brown pbrown@btechnet.com
President
Brown Technologies Network, Inc. http://www.btechnet.com/
Unix Systems Administration "Sailing is a state of mind . . . ."
---------------------------------------------------------------------------
On Tue, 9 Mar 1999, Matt Nelson wrote:
> quick question: after a night of doing nothing, memory usage on our LX164
> looks like:
>
> munch:mnelson> free
> total used free shared buffers cached
> Mem: 515112 506632 8480 34744 27728 454752
> -/+ buffers/cache: 24152 490960
> Swap: 523640 232 523408
>
> but after working all day, the used memory goes from ~20M up to ~110M,
> even though the memory usage of all the processes don't add up to that
> much (i.e., during an idle period).
>
> where's it going?
>
> -matt
>
> -----------------------------------------------------------------------------
> Matthew Nelson
> Dynamics Technology, Inc.
> 21311 Hawthorne Blvd., Suite 300, Torrance, CA 90503-5610
> Voice: (310) 543-5433 FAX: (310) 543-2117 Email: mnelson@dynatec.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 17:29 ` Paul B. Brown
@ 1999-03-09 18:43 ` Daniel J. Frasnelli
1999-03-09 19:16 ` Matt Nelson
0 siblings, 1 reply; 9+ messages in thread
From: Daniel J. Frasnelli @ 1999-03-09 18:43 UTC (permalink / raw)
To: axp-list
Gentlemen,
> A number of programs are designed to grab memory and hang onto it based on
> events that occur. Some grab a pretty big chunk at the initialization
> phase while others try to play nice and only grab chucks as requirements
> dictate.
True, but what Matt's system is experiencing is completely normal.
See below.
> Review your list of deamons and see where the memory is being used.
"daemons" - the BSD people would have your head in a basket if
they ever saw that spelling of the word :-)
> > munch:mnelson> free
> > total used free shared buffers cached
> > Mem: 515112 506632 8480 34744 27728 454752
> > -/+ buffers/cache: 24152 490960
> > Swap: 523640 232 523408
And let's compare this to my system with 128M ram:
[dfrasnel@relativity /tmp]$ free
total used free shared buffers cached
Mem: 127312 115416 11896 73936 13832 61216
-/+ buffers/cache: 40368 86944
Swap: 131064 632 130432
If you look at both of these 'free' outputs, you will notice that a good
amount of memory is tied up in both cached and shared memory allocation.
My system shows approx. 11M of physical memory free. However, if I were to
launch Netscape 4.51 (memory footprint of what, 30M?) I could do so
without dipping into swap space. This is one of many beautiful features of
Linux - I'll leave it at that without ruining the moment by dissecting the
mechanism :-)
The only time you should be concerned about how much memory is available
(per the output of free, top, etc.) is when your swap space is almost run
out yet the machine is doing "nothing". At that point, you probably have a
process out of control (memory leak likely) and not addressing the problem
leads to a system crash or at best, serious drop in responsiveness.
Best regards,
Daniel
--
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 18:43 ` Daniel J. Frasnelli
@ 1999-03-09 19:16 ` Matt Nelson
1999-03-09 21:57 ` M. Nicklaus
0 siblings, 1 reply; 9+ messages in thread
From: Matt Nelson @ 1999-03-09 19:16 UTC (permalink / raw)
To: axp-list
On Tue, 9 Mar 1999, Daniel J. Frasnelli wrote:
> And let's compare this to my system with 128M ram:
> [dfrasnel@relativity /tmp]$ free
> total used free shared buffers cached
> Mem: 127312 115416 11896 73936 13832 61216
> -/+ buffers/cache: 40368 86944
> Swap: 131064 632 130432
>
> If you look at both of these 'free' outputs, you will notice that a good
> amount of memory is tied up in both cached and shared memory allocation.
> My system shows approx. 11M of physical memory free. However, if I were to
> launch Netscape 4.51 (memory footprint of what, 30M?) I could do so
> without dipping into swap space.
what you say is true, but i was more concerned with the -/+ buffers/cache
line of the free(1) output. that line, if i understand it correctly,
indicates what your are using and have available if you dont count buffers
and cache. in your example, it shows that you have about 40M used and
about 87M free. *those* are the numbers that i'm wondering about. on my
machine, the -/+ buffers/cache used climbs to ~110M during the activity of
the day, then drops down to ~25M during the night.
when i compare the 110M to the output of "ps axm" during a quiet time in
the day (i.e., no user jobs running), i see that the the total memory used
doesn't seem to add up to the 110M that free(1) indicates. and yes, X has
the biggest memory footprint on an idle machine...
at first i thought there was a memory leak somewhere, but when it went
back down to something reasonable over night, i figure that i must not be
understanding something.
any other ideas?
-matt
-----------------------------------------------------------------------------
Matthew Nelson
Dynamics Technology, Inc.
21311 Hawthorne Blvd., Suite 300, Torrance, CA 90503-5610
Voice: (310) 543-5433 FAX: (310) 543-2117 Email: mnelson@dynatec.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 19:16 ` Matt Nelson
@ 1999-03-09 21:57 ` M. Nicklaus
1999-03-09 23:32 ` Matt Nelson
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: M. Nicklaus @ 1999-03-09 21:57 UTC (permalink / raw)
To: axp-list; +Cc: M. Nicklaus
Matt,
On Tue, 9 Mar 1999, Matt Nelson wrote:
> On Tue, 9 Mar 1999, Daniel J. Frasnelli wrote:
> > And let's compare this to my system with 128M ram:
> > [dfrasnel@relativity /tmp]$ free
> > total used free shared buffers cached
> > Mem: 127312 115416 11896 73936 13832 61216
> > -/+ buffers/cache: 40368 86944
> > Swap: 131064 632 130432
> >
> > If you look at both of these 'free' outputs, you will notice that a good
> > amount of memory is tied up in both cached and shared memory allocation.
> > My system shows approx. 11M of physical memory free. However, if I were to
> > launch Netscape 4.51 (memory footprint of what, 30M?) I could do so
> > without dipping into swap space.
>
> what you say is true, but i was more concerned with the -/+ buffers/cache
> line of the free(1) output. that line, if i understand it correctly,
> indicates what your are using and have available if you dont count buffers
> and cache. in your example, it shows that you have about 40M used and
> about 87M free. *those* are the numbers that i'm wondering about. on my
> machine, the -/+ buffers/cache used climbs to ~110M during the activity of
> the day, then drops down to ~25M during the night.
>
> when i compare the 110M to the output of "ps axm" during a quiet time in
> the day (i.e., no user jobs running), i see that the the total memory used
> doesn't seem to add up to the 110M that free(1) indicates. and yes, X has
> the biggest memory footprint on an idle machine...
>
> at first i thought there was a memory leak somewhere, but when it went
> back down to something reasonable over night, i figure that i must not be
> understanding something.
>
> any other ideas?
>
> -matt
We've seen this kind of effect repeatedly on our various Alpha/Linux
boxes. Often, as was pointed out, it has no real negative effects.
But we've definitely had cases where we couldn't start up certain
applications any more, or could not even telnet into the system any more.
Often, it seems that network-related processes contribute to this
behavior, especially if there's a problem with the network, or some faulty
network setup etc. We've had cases where a 512 MB machine came up with
4 kB free memory after RPC'ing like crazy during boot-up.
Without being experts in this, we've attributed this to some kind of
memory fragmentation caused by processes that may be long dead, and which
is possibly not cleaned up optimally. The size of the swap space seems to
play an important role here: with swap space smaller than physical
memory, it appears that the system has more difficulties moving large
applications (and buffers etc.?) in and out of memory without causing
memory fragmentation. After setting swap space to at least physical RAM
size on all machines, this problem has become much less frequent.
Be that as it may, we've solved this problem by writing a little "RAM
scrubber" application that allocates, and actually accesses, progressively
larger chunks of memory, up to a user-defined limit (it doesn't pay much
to go all the way into swap space, obviously). This little program has
solved the above problems for us in all cases.
An example I just ran on one of our Alphas:
"before"
total used free shared buffers cached
Mem: 515320 506744 8576 14880 383880 13424
-/+ buffers: 109440 405880
Swap: 590176 144 590032
"after"
total used free shared buffers cached
Mem: 515320 12264 503056 5216 208 3184
-/+ buffers: 8872 506448
Swap: 590176 1992 588184
If there's interest, I can post this program here.
(BTW, this effect doesn't seem to be unique to Alpha/Linux. We've seen it
on x86/Linux as well as SGI IRIX, albeit to some lesser extent. In any
event, we've installed our little "RAM scrubber", or "fragbuster",
program, on *all* our Linux/Unix systems.)
Hope this was of some use,
Marc
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 21:57 ` M. Nicklaus
@ 1999-03-09 23:32 ` Matt Nelson
1999-03-10 9:30 ` Dr . David Alan Gilbert
1999-03-10 15:05 ` Greg Lindahl
2 siblings, 0 replies; 9+ messages in thread
From: Matt Nelson @ 1999-03-09 23:32 UTC (permalink / raw)
To: axp-list; +Cc: M. Nicklaus
glad to see i'm not going crazy.
please do post your fragbuster. i don't have time at the moment to hack
one together myself!
-matt
-----------------------------------------------------------------------------
Matthew Nelson
Dynamics Technology, Inc.
21311 Hawthorne Blvd., Suite 300, Torrance, CA 90503-5610
Voice: (310) 543-5433 FAX: (310) 543-2117 Email: mnelson@dynatec.com
On Tue, 9 Mar 1999, M. Nicklaus wrote:
> Matt,
>
> On Tue, 9 Mar 1999, Matt Nelson wrote:
>
> > On Tue, 9 Mar 1999, Daniel J. Frasnelli wrote:
> > > And let's compare this to my system with 128M ram:
> > > [dfrasnel@relativity /tmp]$ free
> > > total used free shared buffers cached
> > > Mem: 127312 115416 11896 73936 13832 61216
> > > -/+ buffers/cache: 40368 86944
> > > Swap: 131064 632 130432
> > >
> > > If you look at both of these 'free' outputs, you will notice that a good
> > > amount of memory is tied up in both cached and shared memory allocation.
> > > My system shows approx. 11M of physical memory free. However, if I were to
> > > launch Netscape 4.51 (memory footprint of what, 30M?) I could do so
> > > without dipping into swap space.
> >
> > what you say is true, but i was more concerned with the -/+ buffers/cache
> > line of the free(1) output. that line, if i understand it correctly,
> > indicates what your are using and have available if you dont count buffers
> > and cache. in your example, it shows that you have about 40M used and
> > about 87M free. *those* are the numbers that i'm wondering about. on my
> > machine, the -/+ buffers/cache used climbs to ~110M during the activity of
> > the day, then drops down to ~25M during the night.
> >
> > when i compare the 110M to the output of "ps axm" during a quiet time in
> > the day (i.e., no user jobs running), i see that the the total memory used
> > doesn't seem to add up to the 110M that free(1) indicates. and yes, X has
> > the biggest memory footprint on an idle machine...
> >
> > at first i thought there was a memory leak somewhere, but when it went
> > back down to something reasonable over night, i figure that i must not be
> > understanding something.
> >
> > any other ideas?
> >
> > -matt
>
> We've seen this kind of effect repeatedly on our various Alpha/Linux
> boxes. Often, as was pointed out, it has no real negative effects.
> But we've definitely had cases where we couldn't start up certain
> applications any more, or could not even telnet into the system any more.
>
> Often, it seems that network-related processes contribute to this
> behavior, especially if there's a problem with the network, or some faulty
> network setup etc. We've had cases where a 512 MB machine came up with
> 4 kB free memory after RPC'ing like crazy during boot-up.
>
> Without being experts in this, we've attributed this to some kind of
> memory fragmentation caused by processes that may be long dead, and which
> is possibly not cleaned up optimally. The size of the swap space seems to
> play an important role here: with swap space smaller than physical
> memory, it appears that the system has more difficulties moving large
> applications (and buffers etc.?) in and out of memory without causing
> memory fragmentation. After setting swap space to at least physical RAM
> size on all machines, this problem has become much less frequent.
>
> Be that as it may, we've solved this problem by writing a little "RAM
> scrubber" application that allocates, and actually accesses, progressively
> larger chunks of memory, up to a user-defined limit (it doesn't pay much
> to go all the way into swap space, obviously). This little program has
> solved the above problems for us in all cases.
>
> An example I just ran on one of our Alphas:
>
> "before"
> total used free shared buffers cached
> Mem: 515320 506744 8576 14880 383880 13424
> -/+ buffers: 109440 405880
> Swap: 590176 144 590032
>
> "after"
> total used free shared buffers cached
> Mem: 515320 12264 503056 5216 208 3184
> -/+ buffers: 8872 506448
> Swap: 590176 1992 588184
>
>
> If there's interest, I can post this program here.
>
> (BTW, this effect doesn't seem to be unique to Alpha/Linux. We've seen it
> on x86/Linux as well as SGI IRIX, albeit to some lesser extent. In any
> event, we've installed our little "RAM scrubber", or "fragbuster",
> program, on *all* our Linux/Unix systems.)
>
> Hope this was of some use,
>
> Marc
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 21:57 ` M. Nicklaus
1999-03-09 23:32 ` Matt Nelson
@ 1999-03-10 9:30 ` Dr . David Alan Gilbert
1999-03-10 15:05 ` Greg Lindahl
2 siblings, 0 replies; 9+ messages in thread
From: Dr . David Alan Gilbert @ 1999-03-10 9:30 UTC (permalink / raw)
To: axp-list
At 04:57 PM 3/9/99 -0500, you wrote:
>If there's interest, I can post this program here.
>
>(BTW, this effect doesn't seem to be unique to Alpha/Linux. We've seen it
>on x86/Linux as well as SGI IRIX, albeit to some lesser extent. In any
>event, we've installed our little "RAM scrubber", or "fragbuster",
>program, on *all* our Linux/Unix systems.)
One thing that might be worth checking is for the use of shared memory; do
an ipcs -a and see if there are any big chunks allocated.
I've seen this happen with AVS on Irix boxes, if AVS crashes for some
reason or is killed unceremoniously it tends to lead big globs of shared
memory around. There may be other apps with the problem.
Dave
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
1999-03-09 21:57 ` M. Nicklaus
1999-03-09 23:32 ` Matt Nelson
1999-03-10 9:30 ` Dr . David Alan Gilbert
@ 1999-03-10 15:05 ` Greg Lindahl
2 siblings, 0 replies; 9+ messages in thread
From: Greg Lindahl @ 1999-03-10 15:05 UTC (permalink / raw)
To: axp-list
> We've seen this kind of effect repeatedly on our various Alpha/Linux
> boxes. Often, as was pointed out, it has no real negative effects.
> But we've definitely had cases where we couldn't start up certain
> applications any more, or could not even telnet into the system any more.
I could imagine that this could be due to a lack of zeroed pages. But
your fix is pretty drastic for a problem that I've never seen. So this
bug has to be fairly obscure.
> Often, it seems that network-related processes contribute to this
> behavior, especially if there's a problem with the network, or some faulty
> network setup etc. We've had cases where a 512 MB machine came up with
> 4 kB free memory after RPC'ing like crazy during boot-up.
So? That doesn't mean anything. The only symptom you've described
that's alarming is that you can't start some processes. Having low
"free" memory is a feature of Linux disk buffering, not a bug.
-- g
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: where does the memory go?
@ 1999-03-10 21:40 M. Nicklaus
0 siblings, 0 replies; 9+ messages in thread
From: M. Nicklaus @ 1999-03-10 21:40 UTC (permalink / raw)
To: axp-list; +Cc: M. Nicklaus
On Tue, 9 Mar 1999, Daniel J. Frasnelli wrote:
> Hmmmmmm. I bet your performance dropped like a rock after running
> that. You realize that the kernel will throw out cached data only
> when it needs to put more data in, correct? This is what keeps the
> "free" count low.
In fact, if you tell fragbuster to allocate all of physical memory, the
kernel will swap out your application(s) entirely, which will reduce their
speed to zero. But this slowdown lasts essentially only for the duration
of the fragbuster run, typically <2 min (just clocked 1:44 on a 512 MB
500 MHz machine), and the applications recover very quickly thereafter as
their pages are loaded back into memory.
I can live very happily with this side effect if it gives me the benefit
of not having to, e.g., reboot the system. Not being able to telnet into
it any more is not just "alarming", it may prevent me from using the
system altogether in the way I want to. In particular for our
"number-crunching" runs, which may take up days or even weeks of CPU time,
losing a few minutes is totally insignificant. But the situation may of
course be different if you're running a Web server, or a database server
etc. So YMMV.
On Wed, 10 Mar 1999, Greg Lindahl wrote:
> I could imagine that this could be due to a lack of zeroed pages. But
> your fix is pretty drastic for a problem that I've never seen. So this
> bug has to be fairly obscure.
>
> > Often, it seems that network-related processes contribute to this
> > behavior, especially if there's a problem with the network, or some faulty
> > network setup etc. We've had cases where a 512 MB machine came up with
> > 4 kB free memory after RPC'ing like crazy during boot-up.
>
> So? That doesn't mean anything. The only symptom you've described
> that's alarming is that you can't start some processes. Having low
> "free" memory is a feature of Linux disk buffering, not a bug.
See above. Let me just add: If you have never experienced any ill effect
from this bug/feature/whatever, count yourself lucky, and simply ignore
this whole issue. I'm not even claiming that our interpretation of the
problem is correct. But our little program has repeatedly bailed us out,
and that's good enough for me.
For those who asked for fragbuster, the C code is appended below.
No guarantees of any kind are made, so use it at your own risk.
We've also never tested what happens if you tell it to allocate more
than physical memory + swap space combined -- so, in every respect,
caveat emptor.
Marc
-------------------------- fragbuster.c --------------------------
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define BOOL int
#define LONG long
#define KILO (double)1024
#define MEGA (KILO * KILO)
#define GIGA (KILO * MEGA)
double memory_size = 0 ;
double Chunk = 10 * MEGA ;
double Max_memory = 128 * MEGA;
char *p = NULL ;
double bytes_to_mega( double mem) ;
double mega_to_bytes( double mem) ;
double find_largest_block( double max_size_bytes, double chunk);
double progressive_alloc_blocks( double max_size_bytes, double chunk, BOOL write_flag);
void main(int argc, char *argv[])
{
double start_memory = -1 ;
double end_memory = - 1 ;
assert( sizeof( LONG) >=4) ;
assert( (size_t)Max_memory > 0) ;
assert( argc > 0) ;
assert( argv[0] ) ;
printf("---------------------------------------------------------------------\n");
printf("Usage: %s [Max_memoryMb]\n",argv[0] );
printf("Max_memoryMb should be the size of the physical memory. The default value is %.0f Mb\n", bytes_to_mega(Max_memory));
printf("---------------------------------------------------------------------\n");
if( argc == 2 )
{
assert( argv[1] ) ;
if( (sscanf( argv[1], "%lf",&Max_memory) != 1) || (Max_memory < bytes_to_mega(Chunk)) )
{
printf(" Invalid max memory parameter. Must be a number >= %g. Exiting\n", bytes_to_mega(Chunk)) ;
exit(EXIT_FAILURE) ;
}
Max_memory = mega_to_bytes(Max_memory) ;
}
start_memory = find_largest_block(Max_memory, Chunk);
printf("---------------------------------------------------------------------\n");
progressive_alloc_blocks( Max_memory, Chunk, 0) ;
printf("---------------------------------------------------------------------\n");
find_largest_block(Max_memory, Chunk);
printf("---------------------------------------------------------------------\n");
progressive_alloc_blocks( Max_memory, Chunk, 1) ;
printf("---------------------------------------------------------------------\n");
end_memory = find_largest_block(Max_memory, Chunk);
printf("---------------------------------------------------------------------\n");
printf("Results summary:\n");
printf(" Difference between up and down allocations:\n\
%.0f - %.0f => %.0f (should be 0 in absence of memory fragmentation)\n",
bytes_to_mega(end_memory), bytes_to_mega(start_memory), bytes_to_mega(end_memory - start_memory));
printf("---------------------------------------------------------------------\n");
exit( EXIT_SUCCESS) ;
}
/******************************************************************/
double find_largest_block( double max_size_bytes, double chunk)
{
double memory = 0 ;
assert( max_size_bytes > 0) ;
printf( "Trying to allocate the largest memory block starting from %.0f Mb by %.0f Mb decrements\n",
bytes_to_mega( max_size_bytes), bytes_to_mega( chunk)) ;
for( memory = max_size_bytes ; memory > 0 ; memory -= Chunk )
{
char * p = malloc( memory ) ;
if( p )
{
free( p) ; p = NULL ;
break ;
}
}
assert( memory <= max_size_bytes) ;
printf( "The largest memory block is %.0f Mb.\n", bytes_to_mega( memory)) ;
return memory ;
}
/******************************************************************/
double progressive_alloc_blocks( double max_size_bytes, double chunk, BOOL write_flag)
{
double memory = 0 ;
assert( max_size_bytes > 0) ;
assert( chunk > 0) ;
printf( "Progressive allocation of the memory block starting from %.0f Mb to %.0f Mb step:%.0f Mb \n",
bytes_to_mega(chunk), bytes_to_mega( max_size_bytes), bytes_to_mega(chunk) ) ;
if( write_flag )
printf( "The memory blocks will be written\n");
else
printf( "Allocation will be performed without real memory access\n");
for( memory = chunk ; memory <= max_size_bytes ; memory += chunk )
{
char * p = malloc( memory ) ;
if( p )
{
printf( "%.0f Mb", bytes_to_mega( memory)) ;
assert( memory <= max_size_bytes) ;
if( write_flag )
{
LONG i = 0 ;
for( i = 0 ; i < memory ; i += 1000 )
{
p[i] = 'm' ;
}
printf( " W ") ;
}
printf( "\n") ;
free( p) ;
} else
break ;
}
printf( "\n") ;
return memory ;
}
/******************************************************************/
double bytes_to_mega( double mem)
{
return mem /MEGA ;
}
/******************************************************************/
double mega_to_bytes( double mem)
{
return mem * MEGA ;
}
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-03-10 21:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-09 16:14 where does the memory go? Matt Nelson
1999-03-09 17:29 ` Paul B. Brown
1999-03-09 18:43 ` Daniel J. Frasnelli
1999-03-09 19:16 ` Matt Nelson
1999-03-09 21:57 ` M. Nicklaus
1999-03-09 23:32 ` Matt Nelson
1999-03-10 9:30 ` Dr . David Alan Gilbert
1999-03-10 15:05 ` Greg Lindahl
-- strict thread matches above, loose matches on Subject: below --
1999-03-10 21:40 M. Nicklaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox