Re: Clarification needed reg Linux behaviour of Swap space and Swap activity

Glynn Clements <[email protected]> Sat, 15 May 2010 19:18:46 +0100
Newsgroups org.kernel.vger.linux-admin
Message-ID <[email protected]>
query wrote:

> 1    Can there be any impact in performance as there is no swap
> activity .

No.

> Also , would like to know why swap space is getting
> consumed when there is no swap activity being taken place .

If a program has a large number of subsystems, many of these may
rarely be used, resulting in the associated memory getting swapped out
and remaining swapped out.

This is more common for interpreted languages, as they often read
and/or generate data in memory, whereas a compiled program would just
map the data from the executable or library.

This isn't really a problem, it just means that you need sufficient
swap space. Storing data in swap space doesn't impact performance if
it isn't being accessed.

> Is it a sign of application leaking memory.

Not necessarily.

> 2. Will disabling memory overcommit will help in improving memory usage .

No.

-- 
Glynn Clements <[email protected]>