Memory Leak in Kernel 2.2.19 and 2.4.20

Dag Gruneau dag.gruneau at zobra.se
Sun Jan 19 09:24:40 PST 2003


Richard Lightman wrote:

> 
> The chances are that you have not read up enough on what the output
> of these commands mean. From the linux point of view, free memory is
> wasted memory. Instead of marking released memory as free, the kernel
> prefers to call it cached  - if it is a copy of some file.
> 
> The reasoning is that is is much quicker to convert a clean cache page
> into free memory than to convert free memory into a clean cache page.
> 

Thanks for your reply, I hope I have misinterpreted the output.

I have looked at the ouput from the utility top and at /proc/meminfo and 
have noticed how the used-field inreaces over time.

/Dag


dag at gruneau:/proc> cat meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  518701056 157863936 360837120        0 30941184 64114688
Swap: 271425536        0 271425536
MemTotal:       506544 kB
MemFree:        352380 kB
MemShared:           0 kB
Buffers:         30216 kB
Cached:          62612 kB
SwapCached:          0 kB
Active:          41160 kB
Inactive:        96652 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       506544 kB
LowFree:        352380 kB
SwapTotal:      265064 kB
SwapFree:       265064 kB
BigFree:             0 kB
dag at gruneau:/proc> cat meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  518701056 157949952 360751104        0 31023104 64114688
Swap: 271425536        0 271425536
MemTotal:       506544 kB
MemFree:        352296 kB
MemShared:           0 kB
Buffers:         30296 kB
Cached:          62612 kB
SwapCached:          0 kB
Active:          41160 kB
Inactive:        96732 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       506544 kB
LowFree:        352296 kB
SwapTotal:      265064 kB
SwapFree:       265064 kB
BigFree:             0 kB
dag at gruneau:/proc>


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list