* RE: About _real_ free memory
@ 2003-10-16 9:04 Frederick, Fabian
2003-10-16 11:44 ` Jakob Oestergaard
0 siblings, 1 reply; 4+ messages in thread
From: Frederick, Fabian @ 2003-10-16 9:04 UTC (permalink / raw)
To: mru, linux-kernel
If a process tries to allocate and use more than the really free
amount, some cache will be dropped automatically. From a performance
point of view, this could of course be undesirable, but normally
there's no need to think about it.
<Why don't we have a command to drop some cache ? or maybe some
<kernel rules to do it ? we could gain some more scalability doing that kind
of
<stuff during low load.Another problem is end-user point of view :
< -What's available on a box before swapping ?
< -Do I have to add RAM right now ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About _real_ free memory
2003-10-16 9:04 About _real_ free memory Frederick, Fabian
@ 2003-10-16 11:44 ` Jakob Oestergaard
0 siblings, 0 replies; 4+ messages in thread
From: Jakob Oestergaard @ 2003-10-16 11:44 UTC (permalink / raw)
To: Frederick, Fabian; +Cc: mru, linux-kernel
On Thu, Oct 16, 2003 at 11:04:14AM +0200, Frederick, Fabian wrote:
> If a process tries to allocate and use more than the really free
> amount, some cache will be dropped automatically. From a performance
> point of view, this could of course be undesirable, but normally
> there's no need to think about it.
>
> <Why don't we have a command to drop some cache ? or maybe some
> <kernel rules to do it ? we could gain some more scalability doing that kind
> of
> <stuff during low load.
No - you would throw out disk cache with the risk of throwing out
potentially useful data. The data can be thrown out *immediately*
anyway if someone needs it.
So: gain: zero
loss: likely noticable
------------------------------
total: bad idea
>Another problem is end-user point of view :
>
> < -What's available on a box before swapping ?
> < -Do I have to add RAM right now ?
[albatross:joe] $ free
total used free shared buffers
cached
Mem: 1033944 902036 131908 0 41120
446456
-/+ buffers/cache: 414460 619484
Swap: 2101000 294552 1806448
I have 619 MB of free memory now, if you do not count in the caches.
The free physical memory is around 132 MB - this number tells me how
much memory the kernel could not find a use for (for either processes or
cache) - e.g. the amount of memory that I paid for but is not doing
anything useful.
You want the physical free memory to be as low as possible - it is the
amount of memory that is being wasted in the system by not doing
anything useful. If the user cannot understand this, they should learn
not to care either. Certainly, you should never ruin the workings of
the VM subsystem by freeing useful cache memory, just so a user who has
no understanding of what is actually going on, can get a nice big number
in his 'free' output.
Maybe one could patch the 'free' utility instead? ;)
--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............:
^ permalink raw reply [flat|nested] 4+ messages in thread
* About _real_ free memory
@ 2003-10-16 7:23 Frederick, Fabian
2003-10-16 7:48 ` Måns Rullgård
0 siblings, 1 reply; 4+ messages in thread
From: Frederick, Fabian @ 2003-10-16 7:23 UTC (permalink / raw)
To: Linux-Kernel (E-mail)
Hi,
Someone could tell me how to know exactly how much free mem is
available on a box ?
I mean free memory drops quickly to default min_free (4 or 8mb).
Is there a way to clean cache from unwanted data or something to unlink the
stuff and
regain some more 'free' mem. ?
Regards,
Fabian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About _real_ free memory
2003-10-16 7:23 Frederick, Fabian
@ 2003-10-16 7:48 ` Måns Rullgård
0 siblings, 0 replies; 4+ messages in thread
From: Måns Rullgård @ 2003-10-16 7:48 UTC (permalink / raw)
To: linux-kernel
"Frederick, Fabian" <Fabian.Frederick@prov-liege.be> writes:
> Is there a way to clean cache from unwanted data or something to
> unlink the stuff and regain some more 'free' mem. ?
If a process tries to allocate and use more than the really free
amount, some cache will be dropped automatically. From a performance
point of view, this could of course be undesirable, but normally
there's no need to think about it.
--
Måns Rullgård
mru@users.sf.net
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-10-16 11:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-16 9:04 About _real_ free memory Frederick, Fabian
2003-10-16 11:44 ` Jakob Oestergaard
-- strict thread matches above, loose matches on Subject: below --
2003-10-16 7:23 Frederick, Fabian
2003-10-16 7:48 ` Måns Rullgård
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.